November 20, 2011 at 3:53 pm #7099
When I originally set up my site I added “title attributes” under each menu option on the left nav. They all displayed properly, but then I changed the description on one and it no longer displays. I’ve tried all the basic stuff to troubleshoot it, but can’t get it to work. The site is http://www.georgianaphotography.com. Would appreciate your help on this.
LarryNovember 20, 2011 at 6:20 pm #56631
you can change this behaviour in flashlightincludesadminregister-menu-walker.php – open up the file and search for following line:
$attributes = ! empty( $item->attr_title ) ? ' title="' . esc_attr( $item->attr_title ) .'"' : '';
You can replace it with any title content of your choice – i.e. the link text:
$attributes = ! empty( $item->title ) ? ' title="' . esc_attr( $item->title ) .'"' : '';November 20, 2011 at 7:55 pm #56632
Maybe I’m not clear on how to use the line of code. I replace the original with the new line – as is with no changes. This didn’t resolve the issue. I even tried creating a new full menu by replacing all the buttons, and none of the new menu options have the text underneath them (title attributes). In fact, I tried updating the text on an existing menu and it doesn’t update when viewed on the home page – the original text remains. It’s as if the code is not referencing the title attributes on the menus any longer. I wonder if this is a bug introduced with version 1.3 of the Flashlight theme. Let me know what info I can send you to help troubleshoot this…
LarryNovember 21, 2011 at 8:35 am #56633
Please revert the change above and create me an admin account and send me the login data to: (Email address hidden if logged out) – I’ll look into it.November 21, 2011 at 3:00 pm #56634
The info you requested has been sent and the code change has been reverted.
Thank you.November 21, 2011 at 3:34 pm #56635January 9, 2012 at 11:06 am #56636
Hello, I have the similar issue with this theme bug (small text under the menu title). I would like to customize this small text for each menu title without showing it after mouse hovering (as it is in the original Flashlight theme) or at least get it off for all menu. It is not allow me to do that now. Thank you for your help.January 11, 2012 at 5:17 am #56637
I’m not sure what you mean but under Appearance > Menu’s you can edit the small text. To hide it when you hover it you can add this to your Quick CSS in the theme options:
opacity: 0 !important;
}January 14, 2012 at 1:28 am #56638
Hello Chris, sorry maybe I didn’t explain it correctly. I have the similar problem as llasalle have had above but I don’t know how did you solved it. Please have a look at my webpage http://www.branislavnovak.com. For example there is a small text in the Kontakt menu saying “Get in Touch”. I would like to change it as well as I would like to add text under each main menu buttons. Thank you.January 15, 2012 at 4:08 am #56639
In Appearance>Menus under Theme Locations (you’ll see “Your theme supports 1 menu. Select which menu you would like to use.”) You have to activate a menu. Then, you’ll be able to edit the description of the menu – which will show below your Menu Item as small/sub-text.January 15, 2012 at 11:43 pm #56640
Chris, I’m not sure where I can edit Menu sub-text. If you mean in the “Title Attribute” option – it’s not working… The Kontak menu sub-text on my webpage still says “Get in Touch”, even though the “Title Attribute” option is empty. When I tried to alter the “Title Attribute”, the Menu sub-text wouldn’t show up. So I’m stuck. Would really appreciate your help.January 16, 2012 at 1:02 pm #56641
You need to activate the “description” input field. On the menu manager page click on the “Screen Options ” tab (right top corner) and select/check the checkbox for “Description”. Afterwards a new option field for each menu item will appear which allows you to add a description text or to modify the existing one.January 16, 2012 at 6:10 pm #56642January 16, 2012 at 6:35 pm #56643
The topic ‘"Title Attribute" on menu is not displaying’ is closed to new replies.