Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1310019

    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

    #1310097

    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

    #1310169

    Thanks! Do you think it’s possible to put this in the child’s functions.php? If yes, what would the code be?

    #1310604

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Possibility to remove 'closed' in URL-Parameter for active toggles e.g.?’ is closed to new replies.