You are here:Home»KB»Web Design»CMS»Joomla»Add a 'Link Title Attribute' to a Joomla Menu 'Text Seperator'
Sunday, 19 June 2016 17:22

Add a 'Link Title Attribute' to a Joomla Menu 'Text Seperator'

Written by

In Joomla occasionally you might want to a SubText Message underneath the menu item (Link Title Attribute), but Joomla does not support this feature currently (Joomla 3.51).

Solution

To add a 'Link Title Attribute' to a  'Text Seperator' you need to edit the database directly, preferably using PHPMyAdmin.

Get a working copy of a menu item with a 'Link Title Attribute' to look at

  • Configure a menu with a 'Link Title Attribute'
  • Goto the Joomla Database via phpmyadmin
  • Goto #___menu table
  • Find the menu item you are looking for, here it is 'Home'
  • Edit params

This is a normal menu item configured with a sub text and css styling

{"show_title":"","link_titles":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_vote":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_hits":"","show_tags":"","show_noauth":"","urls_position":"","menu-anchor_title":"Life Coaching","menu-anchor_css":"teststyle","menu_image":"","menu_text":1,"menu_show":1,"page_title":"","show_page_heading":"","page_heading":"Stuart Downing : Professional Life Coach","pageclass_sfx":"","menu-meta_description":"","menu-meta_keywords":"","robots":"","secure":0}

Edit your 'Text Separator' and add a 'Link Title Attribute'

NB: if you have just created your menu item, it will be at the end of the table.

  • Goto the Joomla Databse via phpmyadmin
  • Goto #___menu table
  • Find the menu item you are looking for
  • In the item's parameters you will see
    {"menu-anchor_css":"","menu_image":"","menu_text":1,"menu_show":1}
  • Add/Edit the menu item with the following parameters. You only need to add what you want. if the tag is already there just edit it
    ,"menu-anchor_title":"Life Coaching","menu-anchor_css":"teststyle",

Alternative Solution not using a 'Text Sperator'

Although this is not exactly what the article is about, this solution will give you the same effect.

  • use External URL instead of a 'Text Seperator'
  • Edit the 'Link Title Attribute' in the menu item as normal and as required.
  • Use # as the link/Target URL

Links

Read 2150 times Last modified on Sunday, 19 June 2016 17:37