WordPress.org

Support

Support » Themes and Templates » Horizontal menu’s problem – 404

Horizontal menu’s problem – 404

  • Hi there. Im using the BLIX theme, created by Sebastian Schmieg http://www.kingcosmonaut.de/blix/preview/

    The problem I have is with Archives, About and Contact pages in the horizonatl menu.

    According to the readme file they are activated like this

    Archives
    Select Write > Write Page
    Fill in Page Title
    Select archives as Page Template
    Select archives as Page slug
    Click Create New Page

    etc.

    When I do so, the new part of the menu appears, called “Achives”, and has the URL of http://www.site.com/archives/, however I get 404 when I click on it.

    In the header.php, which comes with the theme this menu goes this way

      <li<?php if (is_home()) echo ” class=\”selected\””; ?>>“>Index

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

    Any help?
    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I am just wondering if your .htaccess is writeable?

    Hm… well I have permalinks set to this /%year%/%monthnum%/%day%/%postname%/

    and the .htaccess is 644, should I CHMOD to something different?
    thx

    Oh thx. a lot, I changed it to 777, edited the categories, and now it works fine! There is nothing in the readme about this so thank you Root!

    erm, I highly recommened you NOT have htaccess set to 777 unless you want some bored little git trying to find away to access your site and finds he can change the rules using th htaccess

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Horizontal menu’s problem – 404’ is closed to new replies.