WordPress.org

Ready to get started?Download WordPress

Forums

Horizontal menu's problem - 404 (6 posts)

  1. xer47
    Member
    Posted 9 years ago #

    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.

  2. xer47
    Member
    Posted 9 years ago #


  3. Root
    Member
    Posted 9 years ago #

    I am just wondering if your .htaccess is writeable?

  4. xer47
    Member
    Posted 9 years ago #

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

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

  5. xer47
    Member
    Posted 9 years ago #

    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!

  6. Jinsan
    Member
    Posted 9 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic