• Hi, I am new to wordpress and having just got my site setup the Page options at the top of the menu have gone all odd. ( see ; http://www.thecityquarter.com ) You will notice that I have my page “About CQ” which is fine but then there is an empty space where a page should be that says “No Categories” that is blacked out. This is not an actual page and I dont know how to get rid of this ? Help please ????

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Can you paste the code you are using in the [header.php] file to create the menu and I will see if I can see the problem.

    Regards
    Peter

    Thread Starter nickcarter

    (@nickcarter)

    Thanks, the code is as below : ( incidentally if I use other themes I dont get this problem so it must be something with this specific one@. Also when I first uploaded the theme it was fine so not sure if I have deleted something by accident although certainly not from the script or CSS as I have not touched these,

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; <?php language_attributes(); ?>>

    <head profile=”http://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />

    <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
    <link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <!–[if IE 6]>
    <link rel=”stylesheet” type=”text/css” media=”all” href=”<?php bloginfo(‘stylesheet_directory’); ?>/ie6.css” />
    <![endif]–>

    <style type=”text/css” media=”screen”> </style>

    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’);?>/js/jquery.js”></script>

    <?php wp_head(); ?>

    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’);?>/js/superfish.js”></script>

    <script type=”text/javascript”>
    jQuery(function(){
    jQuery(‘ul.superfish’).superfish();
    });
    </script>

    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’);?>/js/slideshow.js”></script>

    <script type=”text/javascript”>
    jQuery(function() {
    //Execute the slideShow
    slideShow();
    });
    </script>

    </head>

    <body>
    <div id=”container”>

    <div id=”header”>

    <div id=”headin”>

    <?php
    global $options;
    foreach ($options as $value) {
    if (get_settings( $value[‘id’] ) === FALSE) { $$value[‘id’] = $value[‘std’]; } else { $$value[‘id’] = get_settings( $value[‘id’] ); }
    }
    ?>

    <?php if ($rep_logo_disable == “No”) { ?>

    <div id=”logo”> /”> <img src=” <?php bloginfo(‘template_url’); ?>/images/logo.png” alt=”logo” />
    <h2><?php bloginfo(‘description’); ?></h2>
    </div>
    <?php } else { ?>
    <div id=”logo”><h1>/”><?php bloginfo(‘name’); ?></h1></div>
    <?php } ?>

    <?php if ($rep_search_disable == “No”) { ?>
    <?php include (TEMPLATEPATH.”/searchform.php”);?>
    <?php } ?>

    </div>
    <div id=”menudiv”>
    <div id=”mainmenu”>
    <ul class=”mainnav superfish”> <li <?php if (is_home()) echo “id=\”current\””; ?> > /”>Home
    <?php if ($rep_blog_disable == “No”) { ?>
    <?php wp_list_cats(“title_li=&depth=1&include=$rep_blog_id”); ?>
    <?php } ?>
    <?php wp_list_pages(“title_li=&depth=4&exclude=$rep_page_exclude”); ?>

    </div>
    </div>
    </div>

    do you use categories in your blog?

    looks to me like this line
    <?php wp_list_cats("title_li=&depth=1&include=$rep_blog_id"); ?>

    is looking to list categories in your nav

    so if you have no categories, that would explain it I guess….

    I’d think you can delete/comment out that line, but if ya wanna make sure that’s kosher, someone else can tell ya for sure

    (of course if ya have a backup, then you can play around at will)

    Hi,

    RVoodoo is correct, its trying to list your categories at this line.

    <?php if ($rep_blog_disable == "No") { ?>
    <?php wp_list_cats("title_li=&depth=1&include=$rep_blog_id"); ?>
    <?php } ?>

    What is the name of your theme, it looks like there is a setting that you can change. If you tell me the name of your theme i’ll take a look
    .

    Regards
    Peter

    Thread Starter nickcarter

    (@nickcarter)

    Hi, I have deleted that line now and it is all working fine. Thanks for all your help Peter, Nick

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Menu Problems’ is closed to new replies.