Hi @elenio,
That code should still work, but it looks like your tab doesn’t have any visible content in it. I can see the html changing to open the tab’s content when you click on that tab, but the html in there isn’t displaying anything.
Jon
Thread Starter
elenio
(@elenio)
mhh. but there is actually content (trusted shop) ?!
Thread Starter
elenio
(@elenio)
hi, using the other tab (tab-title-additional_information) it is also not working. so I guess I’m doing something wrong π
Hi @elenio,
Okay! I’m going to close this out, but feel free to re-open if it’s still not working after you sort that out.
Thanks,
Jon
Thread Starter
elenio
(@elenio)
Hi Jon,
sorry. must be a misunderstanding. I am still struggling, even with another tab that is populated manually.
any idea is much appreciated.
elenio
Hi @elenio,
I’m sorry, I completely misunderstood. My mistake.
The code can be fixed by changing it to the following:
jQuery('body').on(
'click',
'a[href^="#tab-title-trusted_shops_reviews"]',
function () {
var tab = jQuery(this.hash);
tab.children('a').click();
}
);
This will correctly grab the tab and click it. Please let me know if that works for you.
Jon
Thread Starter
elenio
(@elenio)
Hi @elenio,
No worries. You don’t need to wrap it in <script> tags unless you’re adding it to the html of the page. It looks like you’re using a plugin to add the js, so you can just drop the code itself into the plugin’s box.
Let me know if that works,
Jon
Thread Starter
elenio
(@elenio)
Hi,
i am using
Simple Custom CSS and JS
i Have removed the tags but it still does not open:/