Forums

Adding navigation tabs (7 posts)

  1. veryloka
    Member
    Posted 5 years ago #

    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

  2. Zoutesnor
    Member
    Posted 5 years ago #

    <li><a href="http://www.laloka.com/klik">klik</a></li>
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
  3. Zoutesnor
    Member
    Posted 5 years ago #

    (removed double something)

  4. veryloka
    Member
    Posted 5 years ago #

    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!

  5. veryloka
    Member
    Posted 5 years ago #

    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?

  6. peiqinglong
    Member
    Posted 5 years ago #

    You have to implement code like this:

    http://codex.wordpress.org/Dynamic_Menu_Highlighting

  7. Zoutesnor
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic