• Resolved stylebutton

    (@stylebutton)


    Hi,

    how i can use anchor links to jump to specific tabs?
    With “normal” tabs, everything is working, but with your enabled plugin, the link jumps everytime to the product description and not to the correct id.

    Best regards
    Holger

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    Hello Holger,

    on my side the anchor links, as for example “#tab-description” or “#tab-reviews” work alright.

    Could you please explain what you mean by “correct id”? The link to your website and an example would be helpful.

    Thread Starter stylebutton

    (@stylebutton)

    Hi Diana,

    i have a link href=”#tab-ux_custom_tab” and a <div id=”tab-ux_custom_tab”>…
    But the anchor link is not working correct.
    Following example.
    Below product picture and shortdescription is an accordion “Wie kommt das Bild auf den Button?” with the link under “Dateiupload” > druckfertige Daten

    Thanks and regards
    Holger

    Plugin Author SilkyPress

    (@diana_burduja)

    There is a JS code on your website that opens the custom tab (“tab-ux_custom_tab”) once the link with a hash and with the “switchtab” CSS class is clicked. See this screenshot. I don’t know where the JS code is coming from (from a plugin, or the theme, or it’s a custom code). Most probably it comes from the plugin or script that adds the custom tab.

    One of the following will make the anchored link work as expected:
    1. Remove the aforementioned JS code, if it is added by a custom JS code.
    2. Remove the “switchtab” CSS class from the “druckfertige Daten” link.

    Note that the whole issue has nothing to do with the WooCommerce Expand Tabs plugin, but with the JS code from the screenshot.

    Thread Starter stylebutton

    (@stylebutton)

    Thanks a lot for this solution!

    Best regards
    Holger

    Plugin Author SilkyPress

    (@diana_burduja)

    You’re welcome ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘anchor links to tabs’ is closed to new replies.