Use this forum to help each other on the Freebies offered at luiszuno.com.
NOVA WP theme - tabs names do not work
  • Hy. I have one small problem which I do not know how to resolve by my self.

    It's tabs in WP Nova theme. I would like to name them and then call for them. To open a page for an instance on a second tab and not the first one. Or to put a link button on a bottom of a tab 1 and when clicked it goes on a tab 2.

    I read about it at a source page (http://flowplayer.org/tools/demos/tabs/anchors.html#second) and did exactly as they recommended.

    It didn't work. I tried many possibilities and nothing worked so far. I inspected theme further and concluded (although I might be wrong and problem lies completely elsewhere:) ) that problem must be in tabs.js file.

    I suspect that problem lies exactly here:

    // cross tab anchor link
    panes.find("a[href^=#]").bind("click.T", function(e) {
    self.click($(this).attr("href"), e);
    });

    // open initial tab
    if (location.hash && conf.tabs == "a" && root.find("[href=" +location.hash+ "]").length) {
    self.click(location.hash);

    } else {
    if (conf.initialIndex === 0 || conf.initialIndex > 0) {
    self.click(conf.initialIndex);
    }
    }

    Anchors do exist but obviously I don't know how to reference them correctly.

    By now I have tried:


    <li><a href="#tab1"><span>Tab 1</span></a></li>
    <li><a href="http://www.domain.com/page/#tab1"><span>Tab 1</span></a></li>
    <li><a href="tab1"><span>Tab 1</span></a></li>
    ...


    As it seams it never finds right anchor. What am I doing wrong?

    Is it possible that problem lies in WP format of URL? That it doesn't say ''page.html#tab1'' instead of ''page/#tab1''!? If so, how do I solve this?

    Any guidance or perhaps even solution is greatly appreciated :)!
  • Ok, problem found! Problem is in plug in Google Analytics for Wordpress.

    It automatically changes links before # in full domain name. I'm posting it up here for future reference if anybody will face the same problem!