Hi I need to create a second, smaller menu to also appear in the footer, but under ‘Menus’ it says my theme only supports one menu. How can I do this? I need one that is separate from the primary navigation menu, as this is a publication. Please let me know how to add one on, so they can both appear, asap. Thanks!
To resolve this issue, you can open the footer.php file in the folder path “wp-content\themes\dw-focus” Find the line 23.Add the following code:
<nav class="secondary-menu hidden-phone">
<div class="container">
<?php
$params = array(
'theme_location' => 'secondary',
'container' => '',
'menu_class' => '',
'depth' => 1,
);
wp_nav_menu($params);
?>
</div>
</nav>
See the screenshot: http://i.imgur.com/feIZVeh.png
— Open the functions.php file then add folloing code to the line 123
'secondary' => __( 'secondary Menu', 'dw_focus' ),
See the screenshot: http://i.imgur.com/rQ6vRn4.png
Hope this helps !
can we get the css for this secondary menu
@irfan, Please send me your site for further checking.
@dazzy, I have provided this code for the DW Focus theme, I have checked your site and it not our product. If you want to style for your site, I am ready to help you as a custom work with a charge of fee is $50.
Regards,
I would like to thank you for the efforts you have put in penning this site. I’m hoping to view the same high-grade content by you later on as well. In fact, your creative writing abilities has inspired me to get my own site now .and it will be very useful for my
Please login or Register to submit your answer
replied 10 years ago
Never Mind I figured it out