ronM-3
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
| Status | Topic | Supporter | Voix | Publications | Nouveauté |
|---|---|---|---|---|---|
|
Block editor blank page still after upgrade to Toolset blocks 1.6.15
Commencé par : ronM-3 in: Toolset Professional Support |
|
2 | 11 | Il y a 1 year, 11 months | |
|
Author and category suddenly in header
Commencé par : ronM-3 in: Toolset Professional Support |
|
2 | 3 | Il y a 3 years, 5 months | |
|
Change Custom field filter on different pages
Commencé par : ronM-3 in: Toolset Professional Support |
|
2 | 9 | Il y a 4 years, 2 months | |
|
Custom Search / Custom text in stead of empty search Criterium
Commencé par : ronM-3
in: Toolset Professional Support
Problem: How to add a value for the search dropdown default item instead of the blank label? Solution: Add the Javascript code below to the view:
function setDropdownDefaultValue() {
jQuery('select[name="wpv-category"] > option:first-child').text('LABEL');
}
jQuery(document).ready(function() {
setDropdownDefaultValue();
});
jQuery(document).ajaxComplete(function() {
setDropdownDefaultValue();
});
replace LABEL with the label you want to add. Relevant Documentation: https://toolset.com/course-lesson/adding-custom-javascript-to-views-templates-and-archives/ |
|
2 | 5 | Il y a 4 years, 3 months |