• Hello,

    when I create a new page the title of the page appears in the menu on the frontpage. Is there a way to inhibit this? I don’t want to have every page in the menu….

    Thanks in advance

    modelsblog

Viewing 5 replies - 1 through 5 (of 5 total)
  • The reason it does so is because the header.php tells it to in the theme you are using (Blix). Open that up and look for the navigation section to delete the call to the page list. Should be something like this:


    <?php wp_list_pages ()?>

    Remove that and you should be fine. Of course, to have only the page links you want, you can add them with html.

    Thread Starter modelsblog

    (@modelsblog)

    Hi. I can’t find that string in the header.php .
    Instead I found this:

      <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”;
      }
      }
      }
      ?>

    Thank you so far

    Thread Starter modelsblog

    (@modelsblog)

    When I try to remove this code and add normal HTML I get an error on line 61 ??

    Thread Starter modelsblog

    (@modelsblog)

    I know how to add the links to the single pages but I don’t see then on which page I am.

    Thread Starter modelsblog

    (@modelsblog)

    Ok, I found a solution… for those who have the same problem and don’t get help ??

    Blix-theme, file header.php
    after
    elseif ($page_name == “about_short”) {/*ignore*/}
    add a line like this
    elseif ($page_name == “nameofpage”)

    It works for me!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how to make menu-option invisible’ is closed to new replies.