WordPress.org

Ready to get started?Download WordPress

Forums

GT Tabs (formerly postTabs)
How to link to Tab 3 from Tab 1 without reloading browser? (2 posts)

  1. thestormtrooper
    Member
    Posted 2 years ago #

    Hi,

    I have a page that is like:

    TAB 1 / TAB 2 / TAB 3 / TAB 4

    If I am on Tab 1, I would like to link to content within Tab 3 and Tab 4 without the page having to reload.

    Can anyone let me know how I do this?

    I added the contents at the foot and it shows: #GTTabs_ul_41 in the address bar when I hover but it seems to show that for all tabs and somehow goes to the appropriate tab? However the problem is I want this link to work as an image or text in Tab 1 linking to Tab 2 or 3 etc.

    I think it might be some kind of javascript?

    I've no idea what I'm doing and would just like a link, then its a case of replicating the page once built so no problem once I know how to link to another tab?!

    Any help is greatly appreciated!

    Thanks.

    http://wordpress.org/extend/plugins/gt-tabs/

  2. thestormtrooper
    Member
    Posted 2 years ago #

    I figured out how to do what I wanted, not sure if the right way or not but it works well enough:

    Link to Tab 2:
    <a id="41_1" href="#GTTabs_ul_41" class="GTTabsLinks">Link Text Here</a>

    Link to Tab 3:
    <a id="41_2" href="#GTTabs_ul_41" class="GTTabsLinks">Link Text Here</a>

    and so on...

    Hope that helps someone else.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic