- February 20, 2018 at 4:34 am #148299
I’m adding Glyphicons to my menu. As the documentation states, I am adding the icons in the Title Attribute.
I want to have a two line menu, but the output of the title attribute is including the html. In the attached pics, the title should read “Ghost Lake Quiet Lakes”. Not
Ghost Lake<br> <span>Quiet Lakes</span>.
If I remove the
<br> and <span>then the title reads “Ghost Lake Quiet Lakes”. But I need the
<br> and <span>to create a second line, and style it.
Below is the code it is outputting. TIA
<a title="History<br><span>About Us</span>" href="/our-history/"><span class="fa fa-history"></span> History<br><span>About Us</span></a>
- This topic was modified 7 months ago by Avalanche.
Attachments:February 20, 2018 at 5:37 am #148332
Hope you are having a good day and thank you for your question 🙂
I think HTML tags are not allowed on the menu and that’s the reason why the output contains HTML tags
Can I see the website? please provide URL and I will take a lookFebruary 20, 2018 at 5:46 am #148356
I don’t have a url yet, It’s currently on a localhostFebruary 20, 2018 at 5:59 am #148360
If html tags are not allowed on the menu, then how would you suggest creating a multi line navigation?February 20, 2018 at 6:12 am #148364
You can resolve this nav menu title attribute issue by using the attached custom child theme of Sparkling theme that contains some custom code.
Attachments:February 20, 2018 at 6:28 am #148372February 20, 2018 at 10:47 am #148449
Nice, to hear your problem is fixed:) thanks to Movin 🙂
Now I will now close the topic and mark it as resolved. Feel free to contact us again Thanks!
The topic ‘Nav Menu Title Attribute Issue’ is closed to new replies.