I have some items in my menu that I would like to be set on two lines.
For example I have these items : Home - Get in touch - Contact us
For the item "Get in touch" i would like the "in touch" to be on a second line. I would also like the second line to be smaller.
I tried this directly on the menu label :
Get <br> <small> in touch </small>
But only "small" is working, not the break line...
Edit: Following the recommandations I get theses errors :
Fatal error: Uncaught Error: Call to a member function get_page_permastruct() on null in /XXXXX/wp-includes/link-template.php:435 Stack trace: #0 /XXXXX/wp-includes/link-template.php(397): _get_page_link(Object(WP_Post), false, false)
#1 /XXXXX/wp-includes/link-template.php(197): get_page_link(Object(WP_Post), false, false)
#2 /XXXXX/wp-includes/nav-menu.php(878): get_permalink(Object(WP_Post))
#3 [internal function]: wp_setup_nav_menu_item(Object(WP_Post))
#4 /XXXXX/wp-includes/nav-menu.php(732): array_map('wp_setup_nav_me...', Array)
#5 /XXXXX/wp-includes/nav-menu-template.php(151): wp_get_nav_menu_items(Object(WP_Term), Array)
#6 /XXXXX/wp-content/plugins/code-snippets/php/snippet-ops.php(582) : eval()'d code(3): wp_nav_menu(Object(stdClass))
#7 /XXXXX/wp-content/plugins/code-snippets/php/sn in /XXXXX/wp-includes/link-template.php on line 435