You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is how our website has title tags on menu items and also on our brand. You need to look for your own menu item IDs from the developer console to add the same functionality to your website. You need to separate titles with IDs and also with commas.
<script>functionsiteBrandTitle(){vari=document.querySelector(".navbar-brand");if(i){i.title="YOUR TITLE FOR SITE NAME";}}functionmenuItemTitles(){varmenuItems=[{id: "menu-item-41",title: "Mikä on lohkoketju ja mihin sitä käytetään?"}// Add more items here as needed];menuItems.forEach(function(item){varmenuItem=document.getElementById(item.id);if(menuItem){varlink=menuItem.querySelector("a");if(link){link.title=item.title;}}});}document.addEventListener("DOMContentLoaded",function(){siteBrandTitle();menuItemTitles();});</script>
documentationImprovements or additions to documentation
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Adding Title Tags to Your Menu Items & Brand
Here is how our website has title tags on menu items and also on our brand. You need to look for your own menu item IDs from the developer console to add the same functionality to your website. You need to separate titles with IDs and also with commas.
Beta Was this translation helpful? Give feedback.
All reactions