Viewing 7 replies - 1 through 7 (of 7 total)
  • I haven’t used blix, but I’m guessing it is using an inline unordered list of your pages, plus the home page. So in your header file (I’m guessing that’s where it is) there is going to be something like <ul>
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
    </ul>

    You either delete that, and simply add your unordered list such as <li>
    <a href="www.somelink.com">Link</a>
    </li>

    or add that after the list of pages, if you want both. Be sure to leave the li items between the ul and /ul though.

    Thread Starter MindReality

    (@mindreality)

    The part of the code in the header.php of blix that deals with the header links is:

      <li<?php if (is_home()) echo ” class=\”selected\””; ?>>“>Home
      <?php
      $pages = BX_get_pages();
      if ($pages) {
      foreach ($pages as $page) {
      $page_id = $page->ID;
      $page_title = $page->post_title;
      $page_name = $page->post_name;
      if ($page_name == “archives”) {
      (is_page($page_id) || is_archive() || is_search() || is_single())?$selected = ‘ class=”selected”‘:$selected=”;
      echo “<li”.$selected.”>Archives\n”;
      }
      elseif($page_name == “about”) {
      (is_page($page_id))?$selected = ‘ class=”selected”‘:$selected=”;
      echo “<li”.$selected.”>About\n”;
      }
      elseif ($page_name == “contact”) {
      (is_page($page_id))?$selected = ‘ class=”selected”‘:$selected=”;
      echo “<li”.$selected.”>Contact\n”;
      }
      elseif ($page_name == “about_short”) {/*ignore*/}
      else {
      (is_page($page_id))?$selected = ‘ class=”selected”‘:$selected=”;
      echo “<li”.$selected.”>$page_title\n”;
      };
      }
      }
      ?>

    Adding

    • Link
    • like you mentioned causes an error as my blog can’t load.

    I’ll finish putting together a tutorial I’ve been working on for an easier dynamic menu highlighting, which would replace that code and make it easier to add more links. I’ll reply with a link when I’m done.

    Thread Starter MindReality

    (@mindreality)

    my wp blog is at https://blog2.mindreality.com

    There is a home and about category in the header nav bar. How do I edit it to include a button that will point to another site of mine?

    Btw how do I check what version of wordpress I am using?

    And also, when I write a page, how do I edit the colors of the words like the way blogger’s compose editor does? It’s the highlight and click a color feature.

    Hi!

    I’m using blix too. As you add pages the page buttons will automatically show up in the horizontal nav bar beside Home and About.

    for an example see my site:
    https://careerspaceezine.com

    There is really only 4-5 spaces for buttons though so if you want to create more pages you will have to create a secondary nav bar (which is detailed in the Blix readme.html file), if you haven’t located it already…..

    There is a cheat sheet for Blix that comes with your theme although you have to dig for it in your theme files. It will show you how to hook up your archive and contact (with a handy contact form) that is included with your theme. It will also show you how to add an “about” shorty in your side nav bar as well as the secondary nav bar.

    The version of wordpress will be in the wordpress readme.html file. It will also say in the main template.

    For editing the color of the words my guess would be to try an inline class of CSS. An inline will override the set CSS font color for the website.

    Thread Starter MindReality

    (@mindreality)

    How do I add a button in the nav bar that links to another site instead of a page of my blog?

    Simplest way to do that is to use this plugin:

    https://www.redalt.com/downloads/#redirectify

    With it you can create a Page but have it redirect to anywhere else.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How do I add in more categories in my header nav bar?’ is closed to new replies.