Menu via shortcode isn't indenting
-
Hello
I am having an issue with a menu that isn’t indenting on the page when I cut and paste the menu in via shortcode.
The page that the menu is pasted at is:
https://s441383657.websitehome.co.uk/?page_id=35and the menu is meant to look like the one at this page:
https://www.leappartnership.co.uk/contact.phpI’ve configured the menu to look like it does in the page in the link just above here from within the Appearance/Menus section, but for some reason it isn’t indenting at all.
The shortcode I’m using is:
<?php wp_nav_menu( $defaults ); ?>Which has the following code above it, just under the get header tag:
<?php $defaults = array(
‘theme_location’ => ”,
‘menu’ => ‘Sub Page Menu’,
‘container’ => ‘div’,
‘container_class’ => ‘menu-{menu slug}-container’,
‘container_id’ => ”,
‘menu_class’ => ‘menu’,
‘menu_id’ => ”,
‘echo’ => true,
‘fallback_cb’ => ‘wp_page_menu’,
‘before’ => ”,
‘after’ => ”,
‘link_before’ => ”,
‘link_after’ => ”,
‘items_wrap’ => ‘<ul id=”%1$s” class=”%2$s”>%3$s’,
‘depth’ => 0,
‘walker’ => ”
); ?>I’m sure that this is really obvious as to what I’m doing wrong, but I can’t spot it! Can anybody assist?
Many thanks in advance.
Kind regards
Julian
- The topic ‘Menu via shortcode isn't indenting’ is closed to new replies.