• veryloka

    (@veryloka)


    I have been searching for a way to add navigation tabs that link to directories outside of wordpress.
    My site is here: laloka.com/english. I am using Regulus and have found where the tabs in the header.php file are created, the code looks like this:

    <ul id=”nav”>
    <li <?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { echo “class=\”current_page_item\””; } ?> >” ><?php _e(‘english’,’regulus’); ?>

    I want to add a tab that will link to laloka.com/klik and will highlight accordingly on both pages.
    I started hacking but don´t know where to add the path to the “klik” directory.I also need to know how to make a tab highlight depending on whether you are on that tab or not..This is what I have:

    <li <?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { echo “class=\”current_page_item\””; } ?> >” ><?php _e(‘klik’,’regulus’); ?>
    <?php wp_list_pages(‘sort_column=menu_order&depth=1&title_li=’); ?>

    Can someone please help?
    Thank you__Sara

Viewing 6 replies - 1 through 6 (of 6 total)
  • zoutesnor

    (@zoutesnor)

    <li><a href="http://www.laloka.com/klik">klik</a></li>
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
    zoutesnor

    (@zoutesnor)

    (removed double something)

    Thread Starter veryloka

    (@veryloka)

    erm…something has gone VERY wrong…all the css has disappeared from my site, I tried taking out the code you gave me but it looks like I´ve f*¡ked something else up by mistake.
    HELP!

    Thread Starter veryloka

    (@veryloka)

    OK COOL I recovered everything and your code is working. Cheers Zoutesnor_
    Does anyone know what I have to do to get the KLIK tab to change colour to show that you are on the KLIK page?

    peiqinglong

    (@peiqinglong)

    You have to implement code like this:

    http://codex.wordpress.org/Dynamic_Menu_Highlighting

    zoutesnor

    (@zoutesnor)

    Assuming you have different html file in the klik dir, in that html file edit the link I provided earlyer. Change <a href="http://www.laloka.com/klik"> to <a href="http://www.laloka.com/klik" class="current_page_item">. That should do it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding navigation tabs’ is closed to new replies.