• Since I upgraded to wordpress3.0, there have been two same menu contents on the header like this. https://blog.syussankinen.com/ (it’s written in Japanese)

    I use theme of Constructor ver. 1.02.
    I suppose <?php get_constructor_menu() ?> creates the menu but I have no idea how to fix it.

    Could anyone help me to fix the problem?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Looks like it must be calling the menu twice. Don’t know that theme but might want to look at the header.php or post the code from that for the menu here.

    Thread Starter tomfujii

    (@tomfujii)

    Yes, I thought so too.
    But it looks calling menu just once. This is the source of header.php.

    I think menu is called by <?php get_constructor_menu() ?> but
    I don’t know where this function exists.

    <?php
    /**
    * @package WordPress
    * @subpackage Constructor
    */
    ?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml&#8221; <?php language_attributes(); ?>>
    <head profile=”https://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
    <title><?php wp_title(‘»’, true, ‘right’); ?> <?php bloginfo(‘name’); ?></title>
    <link rel=”stylesheet” type=”text/css” media=”screen” href=”<?php bloginfo(‘stylesheet_url’); ?>”/>
    <link rel=”stylesheet” type=”text/css” media=”print” href=”<?php echo get_template_directory_uri(); ?>/print.css” />
    <link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”<?php bloginfo(‘name’); ?> Atom Feed” href=”<?php bloginfo(‘atom_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php wp_get_archives(‘type=monthly&format=link’); ?>
    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>

    <div id=”body”>
    <div id=”wrapheader” class=”wrapper”>
    <div id=”header”>
    <?php get_constructor_menu() ?>
    <div id=”title”>
    <?php if (is_home() || is_front_page()) { ?>
    <h1 id=”name”>/” title=”<?php bloginfo(‘name’); echo ” » “; bloginfo(‘description’);?>”><?php bloginfo(‘name’); ?></h1>
    <?php } else { ?>
    <div id=”name”>/” title=”<?php bloginfo(‘name’); echo ” » “; bloginfo(‘description’);?>”><?php bloginfo(‘name’); ?></div>
    <?php } ?>
    <div id=”description”><?php bloginfo(‘description’);?></div>
    </div>
    </div>
    </div>

    <div id=”wrapcontent” class=”wrapper”>
    <?php get_constructor_slideshow() ?>

    What about the Rest of the header.php???

    Thread Starter tomfujii

    (@tomfujii)

    This is the whole source I have in the header.php.

    I think “get_constructor_menu()” has some problem but I don’t know where it exists.

    Thread Starter tomfujii

    (@tomfujii)

    I found get_constructor_menu() function.( it is in function.php. I am not so familiar with codes. Forgive me…)

    It seems nothing wrong as following.
    ====================
    function get_constructor_menu($before = ”, $after = ”)
    {
    global $main;
    $main->getMenu($before, $after);
    }
    ==============

    Is there possibility the database broken?
    Should I rewrite the databese?( If that’s the case, where to rewrite?)
    Or, should I simply put the backup data? ( I don’t know if it makes another problem.)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘There are two menus on the top’ is closed to new replies.