Custome Menus: What am I doign wrong?
-
So I’m producing my second WP theme and I’ve struck a problem. As well as the standard Nav menu at the top of my pages, the Footer element contains three individual sub-menus that can be loaded with individual entries. These are broken into three areas: Product Range, Industry Type and Services. The source code on footer.php is thus:
<div class="col-sm-3" style="float:left"><h3>Product Range</h3><?php wp_nav_menu( array( 'footer' => 'product-range', 'container_class' => 'footer-menu' ) ); ?></div> <div class="col-sm-3" style="float:left"><h3>Industry Type</h3><?php wp_nav_menu( array( 'footer' => 'industry-type', 'container_class' => 'footer-menu' ) ); ?></div> <div class="col-sm-3" style="float:left"><h3>Services</h3><?php wp_nav_menu( array( 'footer' => 'services', 'container_class' => 'footer-menu' ) ); ?></div>In functions.php I have included:
*Add footer Menus */ function register_my_menus() { register_nav_menus( array( 'product-range' => __( 'Product Range' ), 'industry-types' => __( 'Industry Types' ), 'services' => __( 'Services' ) ) ); } add_action( 'init', 'register_my_menus' );The output to all three menus is identical, and it is not what I want:
Product Range
COVID19 Policy
Latest and Greatest
About Us
Contact us1
Customer Service
Our GuaranteeIndustry Type
COVID19 Policy
Latest and Greatest
About Us
Contact us1
Customer Service
Our GuaranteeServices
COVID19 Policy
Latest and Greatest
About Us
Contact us1
Customer Service
Our GuaranteeThe top two items I added in the CMS, the remainder are automatically generated form somewhere else?
What gives?
The blog I need help with is: (visible only to logged in users)
-
Update: I’ve just re-configured ‘Industry types’ menu and loaded one page. The result:
Product Range
Military
Industry Type
Military
Services
Military
-
It gets weirder still – I completely deleted the ‘Industry Types’ menu and set up again from scratch. NOW ALL 3 MENUS are showing the same name…
-
… which has changed from what was there before. I have two other names set under ‘Product Range’ (which I have just wiped and set up afresh. WP isn’t even looking at these… ???
-
Hi there,
To get help with that you need to post in the WordPress.org forums:
https://wordpress.org/support/forums/
The forum you have posted is for the WordPress.com hosting platform which is different than the WordPress software that your site is using. You can learn more about these differences here:
- The topic ‘Custome Menus: What am I doign wrong?’ is closed to new replies.