WordPress.org

Ready to get started?Download WordPress

Forums

Arconix Shortcodes
[resolved] Anchor Links between Tabs (5 posts)

  1. wasanajones
    Member
    Posted 1 year ago #

    I've been stumped trying to figure out how to add html anchor links between tabs -- so that clicking a link opens a closed tab and scrolls to the named anchor. tried following variety of tuts and editing shortcode.js but nothing working for me. have any suggestions? Thanks (really like the arconixpc.com plugins.

    http://wordpress.org/extend/plugins/arconix-shortcodes/

  2. John Gardner
    Member
    Plugin Author

    Posted 1 year ago #

    Hi wasanajones,

    Thank you for using my plugin and for the kind words. You wouldn't have to edit any of the javascript files to get that linking working.

    Assuming you haven't set the id parameter of the shortcode, it will default to name. To set an anchor link to a tab called Business on a Page called About on domain mydomain.com, here's the anchor link you'd create:
    < a href="mydomain.com/about#business" >My Link< /a >

    Removing the spaces, of course. Hopefully that helps.

  3. wasanajones
    Member
    Posted 1 year ago #

    thanks for the prompt reply, still have troubles with this. seems like it should be simple, but can't get things working for a link from one tab to another, or a same page link. and using /about#business/ (with the href and quotes and slashes, but without domain) is breaking the tabs

  4. John Gardner
    Member
    Plugin Author

    Posted 1 year ago #

    If the linking occurs on the same page, then the href link should only point to "tab" plus the tab title

    I was incorrect in my initial example, the href link should have been /about#tab-business

    Check out http://test.arconixpc.com/tabs/#tab-tab-2 as an example

  5. wasanajones
    Member
    Posted 1 year ago #

    thanks, appreciate the help. "/page#tab-tabtitle"

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.