• Resolved Archie Makuwa

    (@archie22is)


    Hey guys,

    I am using the following scripts to generate a footer navigation:

    <?php
    	wp_nav_menu(
    		array(
    			'theme_location'  => 'nav_menu',
    			'depth' => 1,
    			'menu_id'	  => 'main-nav',
    			'menu_class'	  => 'footer-menu',
    			)
    		);
    ?>

    Everything works expect that my first footer link (which is home) has no id and thus makes it very difficult to even style in uniquely. My html code is as follows –

    <div class="footer-menu">
    	<ul>
    		<li class="current_page_item">
    			<a title="Home" href="https://excelprint/">Home</a>
    		</li>
    	<li class="page_item page-item-5">
    	<li class="page_item page-item-8">
    	<li class="page_item page-item-10">
    	<li class="page_item page-item-12">
    	</ul>
    </div>

    All the menu links are coloured differenty. The home page also need to be coloured differently. At the moment it overwrites my default header menu, is there a way around this?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Footer Menu has no Id’ is closed to new replies.