HELP with wordpress menu

8 replies
  • WEB DESIGN
  • |
Hello Everyone,
Thanks in advance for checking my thread, I have to say that I am desperate, when I put the menu on the Main Navigation panel, it shows all the coding for the page, and the menu just won't work, anyone knows what could be causing the problem?
You can see it yourself at: www.gagsolutions.net

The codes from header.php is as follows:
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php truethemes_meta_hook();// action hook, see truethemes_framework/global/hooks.php ?>
<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?>" href="<?php bloginfo('rss2_url'); ?>" />
<?php wp_head(); ?>
<!--[if lte IE 8]>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/lt8.css" media="screen"/>
<![endif]-->
</head>
<body <?php body_class(); ?>>
<div id="wrapper" <?php if (is_page_template('template-homepage-3D.php') || is_page_template('template-homepage-jquery-2.php')) {echo 'class="big-banner"';} ?>>
<div id="header" <?php if (is_page_template('template-homepage-3D.php')){echo "style='height: 560px;'";} ?>>

<?php
// retrieve values from site options panel
global $ttso;
$ka_sitelogo = $ttso->ka_sitelogo;
$ka_logo_icon = $ttso->ka_logo_icon;
$ka_logo_text = $ttso->ka_logo_text;
$ka_toolbar = $ttso->ka_toolbar;

// show the toolbar if selected by the user :
if ($ka_toolbar == "true"):
?>
<div class="top-block">
<div class="top-holder">

<?php truethemes_before_top_toolbar_menu_hook();// action hook, see truethemes_framework/global/hooks.php ?>
<?php if(has_nav_menu('Top Toolbar Navigation')): ?>
<div class="toolbar-left">
<ul>
<?php wp_nav_menu(array('theme_location' => 'Top Toolbar Navigation' , 'depth' => 0 , 'container' =>false )); ?>
</ul>
</div><!-- end toolbar-left -->

<?php
//if top toolbar menu not set, we show dynamic sidebar
elseif(is_active_sidebar(1)):
?>
<div class="toolbar-left">
<ul><?php dynamic_sidebar("Toolbar - Left Side"); ?></ul>
</div><!-- end toolbar-left -->
<?php endif; ?>

<?php if(is_active_sidebar(2)): ?>
<div class="toolbar-right">
<?php dynamic_sidebar("Toolbar - Right Side"); ?>
</div><!-- end toolbar-right -->
<?php endif; ?>

<?php truethemes_after_top_toolbar_menu_hook();// action hook, see truethemes_framework/global/hooks.php ?>
</div><!-- end top-holder -->
</div><!-- end top-block -->
<?php endif; //end if($toolbar == 'true') ?>




<?php truethemes_before_header_holder_hook();// action hook, see truethemes_framework/global/hooks.php ?>
<div class="header-holder">
<div class="rays">
<div class="header-area<?php if (is_search()) {echo ' search-header';} ?><?php if (is_404()) {echo ' error-header';} ?><?php if (is_page_template('template_sitemap.php')) {echo ' search-header';} ?>">

<?php // Website Logo
if ($ka_logo_text == ''){
?>
<a href="<?php echo home_url(); ?>" class="logo"><img src="<?php echo $ka_sitelogo; ?>" alt="<?php bloginfo('name'); ?>" /></a>
<?php }else{?>
<a href="<?php echo home_url(); ?>" class="custom-logo"><img src="<?php echo get_template_directory_uri(); ?>/images/_global/<?php echo $ka_logo_icon; ?>" alt="<?php bloginfo('name'); ?>" /><span class="logo-text"><?php echo $ka_logo_text; echo '</span></a>';}?>



<?php truethemes_before_primary_navigation_hook();// action hook, see truethemes_framework/global/hooks.php ?>
<?php if(has_nav_menu('Primary Navigation')): ?>
<ul id="menu-main-nav">
<?php wp_nav_menu(array('theme_location' => 'Primary Navigation' , 'depth' => 0 , 'container' =>false , 'walker' => new description_walker() )); ?>
</ul>
<?php endif; ?>

<?php truethemes_after_primary_navigation_hook();// action hook, see truethemes_framework/global/hooks.php ?>

Thanks for looking into it, I really appreciate all your help!! Thanks in advance, thanks thanks thanks!
#menu #wordpress
  • Profile picture of the author rosetrees
    I think (???) the problem isn't in the header section, which seems to be displaying ok. I think the problem is at the start of the body section.

    Of course, someone who understands code better than me might see that I'm talking rubbish!

    Have you tried reinstallling the theme? Change back to 2010/11 and see if that cures the problem. If it does, delete the theme and reinstall it.

    If changing back to 2010 doesn't cure the problem then it could be a plug-in. Deactive ALL of them and see if that cures the problem. If it does, reactivate them one at a time to see if you can find out which one is doing the damage.
    {{ DiscussionBoard.errors[5183221].message }}
    • Profile picture of the author Johnny Optimo
      I think I see what the problem is here but I'd need to get access/more info to be sure.

      send me a message and I'll see what I can do
      {{ DiscussionBoard.errors[5183768].message }}
      • Profile picture of the author bmillionaire324
        Thanks for the info, I tried disabling every widget and still the same problem...

        Originally Posted by Johnny Optimo View Post

        I think I see what the problem is here but I'd need to get access/more info to be sure.

        send me a message and I'll see what I can do
        Ok thanks. I'll msg you, anyone else knows what could be the problem?
        {{ DiscussionBoard.errors[5189531].message }}
  • Profile picture of the author bmillionaire324
    I haven't got any reply from Johnny Optimo, anyone else knows what could be the problem? Please I need help!
    {{ DiscussionBoard.errors[5191942].message }}
    • Profile picture of the author Steven Dybka
      I'm not sure what the problem is,looks like something with the menus,is that problem area a widget area?,did you put a menu widget in that area?,it looks like it's conflicting with your theme somehow.


      Steve
      Signature

      {{ DiscussionBoard.errors[5192135].message }}
      • Profile picture of the author bmillionaire324
        Originally Posted by Steven Dybka View Post

        I'm not sure what the problem is,looks like something with the menus,is that problem area a widget area?,did you put a menu widget in that area?,it looks like it's conflicting with your theme somehow.


        Steve
        It comes as part of the theme, I have every plugin deactivated, I dunno what could be, but obviously looks like something wrong in the coding string, I am not that much of a programmer to know what it is =(
        {{ DiscussionBoard.errors[5193170].message }}
  • Profile picture of the author GPLPress
    Go into Appearance > Menus, then first click the "Screen Options" tab in the upper-right of the screen and check the "Description" checkbox.

    You should then be able expand each item in your custom menu and see the "Description" which, I suspect, will contain all this junk code you're seeing. Delete the contents of the Description field, save your menu, and you should be good to go.
    {{ DiscussionBoard.errors[5193249].message }}
    • Profile picture of the author bmillionaire324
      Originally Posted by GPLPress View Post

      Go into Appearance > Menus, then first click the "Screen Options" tab in the upper-right of the screen and check the "Description" checkbox.

      You should then be able expand each item in your custom menu and see the "Description" which, I suspect, will contain all this junk code you're seeing. Delete the contents of the Description field, save your menu, and you should be good to go.
      OOOOOOMMMMMMMMMMGGGGGGGGGGGGGGG
      that was it!!! THANK YOU VERY MUCH, I really appreciate it!! I loved this theme since I first saw it and I was very dissapointed thinking that maybe I would have to change it, again... that was exactly the problem and I was able to solve it in 10 seconds, thanks to you, awesome! thank you again, god bless you!
      {{ DiscussionBoard.errors[5193561].message }}

Trending Topics