Support Forum

Weird "Forum" showing up in nav menu

GR gringojason
gringojason
Member

Hello…

When you go to my forum page, it puts the word “Forum” in my main nav menu, next to my home button. You can see it here:

Home Page

Forum Page

Any idea what could be causing this and how to resolve it? Thanks…

18 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Most probably caused by a very old bug in WordPress.

Go to the forum admin > Integration panel and turn on the option to filter wp_list_pages(). See if that resolves it.

YS Yellow Swordfish
Yellow Swordfish
Member

OK – so do you know how the menu is formed? WHat code creates it?

GR gringojason
gringojason
Member

My theme uses the standard WP menu set-up. I created the menus in the WP Dashboard, under Appearance > Menus.

YS Yellow Swordfish
Yellow Swordfish
Member

A bit lost here at the moment as clearly something is putting the page name in there.
Can I assume you have checked all the settings in the menu and that it is, currently, correct and ‘uncontaminated’?

GR gringojason
gringojason
Member

I double-checked the menus and yes, they seem uncontaminated. The only place that “Forum” is listed is in the correct spot, under the “Community” tab. I also checked the forum page in WP and did not see anything unusual either. I am at a loss as well. 

MP Mr Papa
Mr Papa
Member

quite odd… assume you checked the call in your theme where its output for standard wp menu nav template tag?

what happens if you go to forum – options – global display settings and removed the page title completely?

GR gringojason
gringojason
Member

The Forum – options – global display settings already has the page title removed. It gave me an idea, because I have the page template set to a “No Title – Full Width” template I made. I thought there might be a conflict with the template and SP both removing the title. But, no luck. I switched templates to a regular “full width” template, cleared cache, and still had the same issue.

I checked my theme’s header.php file and I did not notice anything that looked out of place. But I am not good with PHP, so maybe I am missing something. Here is the nav code… 

<div id=”navigation”>
<img src=”<?php bloginfo(‘template_url’); ?>/images/men_crn_left.png” width=”2″ height=”29″ alt=”” class=”alignleft” />
<img src=”<?php bloginfo(‘template_url’); ?>/images/men_crn_right.png” width=”2″ height=”29″ alt=”” class=”alignright” />
<?php if (option::get(‘social_icons_show’) == ‘on’) { ?>
<div id=”menuSocial”>
<ul>
<?php if (option::get(‘social_icons_facebook’)) { ?><li><a target=”_blank” href=”<?php echo option::get(‘social_icons_facebook’); ?>” rel=”external,nofollow”><img src=”<?php bloginfo(‘template_url’); ?>/images/icons/ic_facebook.png” width=”16″ height=”16″ alt=”Facebook Icon” /></a></li><?php } ?>
<?php if (option::get(‘social_icons_twitter’)) { ?><li><a target=”_blank” href=”<?php echo option::get(‘social_icons_twitter’); ?>” rel=”external,nofollow”><img src=”<?php bloginfo(‘template_url’); ?>/images/icons/ic_twitter.png” width=”16″ height=”16″ alt=”Twitter Icon” /></a></li><?php } ?>
<li><a target=”_blank” href=”http://pinterest.com/livefitrev/” rel=”external,nofollow”><img src=”<?php bloginfo(‘template_url’); ?>/images/icons/pinteresticon.png” width=”16″ height=”16″ alt=”Pinterest” /></a></li>
<li><a target=”_blank” href=”https://www.youtube.com/user/livefitrevolution” rel=”external,nofollow”><img src=”<?php bloginfo(‘template_url’); ?>/images/icons/youtubeicon.jpeg” width=”16″ height=”16″ alt=”YouTube” /></a></li>
<li><a target=”_blank” href=”http://www.amazon.com/?_encoding=UTF8&tag=liverevo-20&linkCode=ur2&camp=1789&creative=9325″ rel=”external,nofollow”><img src=”<?php bloginfo(‘template_url’); ?>/images/icons/amazonicon.jpeg” width=”16″ height=”16″ alt=”Amazon” /></a></li>

</ul>
</div><!– end #menuSocial –>
<?php } ?>

<div id=”menu” class=”dropdown”>
<?php 
$homeLink = ‘<a href=”‘ . get_option(‘home’) . ‘ “rel=”nofollow”><img src=”‘ . get_bloginfo(‘template_url’) .’/images/men_icon_home.png” width=”16″ height=”14″ alt=”” /></a>’;
$menu = wp_nav_menu(array(
‘container’ => ”,
‘container_class’ => ”,
‘menu_class’ => ‘home’,
‘menu_id’ => ‘nav’,
‘echo’ => false,
‘sort_column’ =>’menu_order’,
‘theme_location’ =>’primary’,
‘items_wrap’=>'<ul id=”%s”><li class=”%s”>’.$homeLink.'</li>%s<li class=”cleaner”> </li></ul>’
));
print $menu;
?>
</div>

</div><!– end #navigation –>

YS Yellow Swordfish
Yellow Swordfish
Member

Well the problem is clearly with the wp_nav_menu() call but I have to be honest and say I have absolutely no idea what is going here! And I don’t probably know enough about the Wp menuing system!

So – clutching at straws and as I have no idea what it is supposed to do! – at the top of the admin menu pane is an option to ‘Automatically add new top-level pages’. is that checked and, if so,  does it make any difference if you uncheck it?

GR gringojason
gringojason
Member

It is unchecked. I am going to post this in the forum of the theme author as well to see if they have any suggestions. 

YS Yellow Swordfish
Yellow Swordfish
Member

Yes – that might be interesting.
if it comes down to it perhaps you would let us have a look at your admin to see if we can spot anything. But try the theme authors first just in case they have an idea…

GR gringojason
gringojason
Member

Update from the theme authors: I tested the plugin (with default settings) with the theme (using custom menu) on my test server and I cannot replicate the behavior. So, it might be because of some customization you made.

I sent them my admin info and they are going to check it out and see if they find anything…

YS Yellow Swordfish
Yellow Swordfish
Member

I am impressed. We so often here that theme authors never respond.
If you want us to do the same then we can. Just PM credentials to both myself and to ‘Mr Papa’. Please include in the PM a link to your site, a link to this thread and brief reminder of the problem. And one of us will take a look for you. Oh – and irt would have to be an SP admin as well of course to look at your Sp settings.

GR gringojason
gringojason
Member

This is from the theme authors…

“It is possible that the forum has some filter that tries to capture any home links in the registered navigation areas and it overwrites the link with their own “Forum” anchor text.”

Just throwing it out there to see if it strikes a chord with you guys.

I sent you both a PM with the info you requested. Thanks again for your help…