I was trying to print the menu item description under the menu name.
I add this into the menu.inc under bootstrap theme, where the function bootstrap_menu_link(array $variables) is:
if ($element['#original_link']['menu_name'] == "main-menu" && isset($element['#localized_options']['attributes']['title'])){
$element['#title'] .="<br> " . $element['#localized_options']['attributes']['title'];
}
my interface then showed something like product<br>LED Drivers
as the menu item - the <br>
tag is printed out directly. I looked at the source code, that area shows: <br>
, so I then tried using <br>
in the php string, but the source code showed &lt;br&gt;
this time. How can I correctly insert html tag into $element['#title']?
return
s the value or constructs the<a>
html? It should be possible just to pass inarray('html' => TRUE)
to the options of theurl()
function.