Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
pauldurand
tagDiv Member
pauldurand
tagDiv Member

Hey anastasios,

can you explain how you dit it ?

I can see this code in your page source, but don’t know what to do with it ?

// Fix all search forms
var forms = document.querySelectorAll(‘form.tdb-search-form, form.td-search-form’);
forms.forEach(function(form) {
if (!form.dataset.fixed) {
form.setAttribute(‘action’, ‘https://greekreporter.com/search_gcse/’);
var input = form.querySelector(‘input[name=”s”]’);
if (input) {
input.setAttribute(‘name’, ‘q’);
}
form.dataset.fixed = ‘true’;
}
});

// Fix “View all results” links
var links = document.querySelectorAll(‘.result-msg a[href*=”?s=”]’);
links.forEach(function(link) {
if (!link.dataset.fixed) {
var query = new URL(link.href).searchParams.get(‘s’);
if (query) {
link.href = ‘https://greekreporter.com/search_gcse/?q=’ + encodeURIComponent(query);
}
link.dataset.fixed = ‘true’;
}
});

would be much appreciated !

thank you !

pauldurand
tagDiv Member

OK but there must be a shortcode to put in functions.php to enable WPBakery in categories…

On another theme it was something like “add_filter( ‘term_description’, ‘do_shortcode’ );”

Please… I need to add tabbed content in categories !!

pauldurand
tagDiv Member

Hello

yes I can, but I have hundreds categories, so I’ll have to create hundreds of template (categories descriptions are unique)…

Hundreds of templates for categories will have any impact on performance / speed ?

Viewing 4 posts - 1 through 4 (of 4 total)