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 Pageetc.
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.
The topic ‘Horizontal menu’s problem – 404’ is closed to new replies.