Hi!
So we are using your custom code (add_theme_support(‘avia_template_builder_custom_tab_toogle_id’);) which provides us to fill in custom ID’s for the toggles, but when a toggle is closed, the parameter turns in [custom-id-CLOSED]. That ‘closed’ part we want to remove, how can we do that?
Yours Faithfully,
Gillian
Hey Jillian,
Thank you for the inquiry.
This is possible but you have to modify the enfold/config-templatebuilder/avia-shortcodes/toggles/toggles.js script file directly and remove this code around line 82.
location.replace(thisheading.data('fake-id') + "-closed");
Best regards,
Ismael
Thanks! Do you think it’s possible to put this in the child’s functions.php? If yes, what would the code be?
Hi,
Yes, we could place a copy of the toggle.js script in the child theme directory but you have to deregister the original script first, then register or enqueue it back. Examples can be found in the following threads.
// https://kriesi.at/support/topic/tabs-select-on-hover/#post-1307497
// https://kriesi.at/support/topic/google-map-marker-size-increase/#post-1308434
Best regards,
Ismael