• Resolved edithmayerhofer

    (@edithmayerhofer)


    For styling issues I have to hardcode the open/close link. I have an additional close link at the end of the layer, too. I have learned, that however it would not work without the shortcode. So I have put the shortcode without text (not visible).

    <a href="#" onclick="showhide_toggle('teil3', 972, 'Kapitel 15 - 20 schliessen', 'Kapitel 15 - 20 zeigen'); return false;"><span id="teil3-toggle-972">Kapitel 15 - 20 zeigen</span></a>[/feature_left]
    
    [/features][showhide type="teil3" more_text="" less_text=""]

    I have 3 different layers on the page working fine.

    But if I have to change content on that page, it happens that the ID of the layer is changing – usually from 972 to 938 or viceversa – so my toggle won´t work and I have to change all my links again.

    Any ideas how I can avoid this?

    https://wordpress.org/plugins/wp-showhide/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘id changing’ is closed to new replies.