Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Weird "Forum" showing up in nav menu
Avatar
gringojason
Member
Free Members
sp_UserOfflineSmall Offline
Jun 23, 2012 - 3:47 pm

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...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 23, 2012 - 4:04 pm

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
gringojason
Member
Free Members
sp_UserOfflineSmall Offline
Jun 23, 2012 - 4:06 pm

Thanks. That option is already turned on.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 23, 2012 - 4:22 pm

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
gringojason
Member
Free Members
sp_UserOfflineSmall Offline
Jun 24, 2012 - 4:43 pm

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 25, 2012 - 4:11 am

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'?

andy-signature.png
YELLOW
SWORDFISH
Avatar
gringojason
Member
Free Members
sp_UserOfflineSmall Offline
Jun 25, 2012 - 3:53 pm

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. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 25, 2012 - 8:19 pm

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?

Avatar
gringojason
Member
Free Members
sp_UserOfflineSmall Offline
Jun 26, 2012 - 4:59 pm

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 -->

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 27, 2012 - 9:02 am

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?

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626