Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   span tag rendered inside menu title tags - bug? (http://forum.bytesforall.com/showthread.php?t=16753)

cdrice Feb 14, 2012 02:23 AM

span tag rendered inside menu title tags - bug?
 
Little bug/quirk I noticed in 3.7.3 (may exist in previous versions; I have not verified):

Header Area
-> Menu 1
-> Title tags in Page Menu Bar - Include a "title" tag for each item in the page menu? These will pop up when hovering over a menu item

When set to "Yes", menu entries are generated as follows (note the span tags inside the a title tags):
Code:

<li class="page_item page-item-XXX"><a href="http://.../xxx" title="<span>XXX</span>"><span>XXX</span></a></li>
<li class="page_item page-item-YYY"><a href="http://.../yyy" title="<span>YYY</span>"><span>YYY</span></a></li>

The desired output would be:
Code:

<li class="page_item page-item-XXX"><a href="http://.../xxx" title="XXX"><span>XXX</span></a></li>
<li class="page_item page-item-YYY"><a href="http://.../yyy" title="YYY"><span>YYY</span></a></li>

so the actual "<span>" and "</span>" text does not appear in the hover popup text.

juggledad Feb 14, 2012 05:35 AM

Doesn't happen to me in a plain vanilla site (WP 3.2.1 Atahualpa 3.7.1)

it is probably caused by a plugin - try disabling all your plugins and see wht happens.

cdrice Feb 16, 2012 01:54 AM

Good call. It appears to be related to All-In-One SEO Pack.

However, perhaps even more curiously, the Atahualpa feature (title tags in menu bar) doesn't appear to work at all without AIO SEO activated. I set up a quick dev site with a fresh WP 3.3.1 and Atahualpa 3.7.3, and toggling the "Title Tags in Menu Bar" option made *no difference* in the generated HTML (neither had any title tags in the menu bar at all). I installed AIO SEO, and the title tags appeared (including the span tags). I deactivated AIO SEO, and the behavior went back to no title tags at all, regardless of the "Title Tags in Menu Bar" setting. Behavior was unaffected by toggling the "Use Bytes For All SEO options" toggle as well.

juggledad Feb 16, 2012 05:04 AM

Works fine for me - make sure you are using the Atahualpa menu not a WordPress Custom Menu

If you are using the WordPress Custom menu, you have to add your 'titles' manually in the 'Title Attribute' field for each menu item

flyboy May 23, 2012 02:09 PM

I have the same issue as cdrice (clean dev site). I have noticed this a while back after one of the updates to Atahualpa (can't quite recall which one, been a year or so). In fact, here is the link: http://www.mlmrogue.com/

Theme is Atahualpa 3.7.7, no plugins and title tags are set to "yes":
http://img140.imageshack.us/img140/6...53ead7cdd7.png

No custom menus either:
http://img13.imageshack.us/img13/900...8689704fe8.png

Code shows no titles appended to the menu links whether the "Title tags in Page Menu Bar" option is set to Yes or No. My first thought was to change the "Use Post / Page Options" to "Yes", but that didn't make any dif either.

juggledad May 23, 2012 05:42 PM

turns out that only the first menu item is getting a title and it seems (in my testing) to have been this way since at least 3.4.3. I'll look again tomorrow if my head feels better (17mth grandson has been over since Sunday night and he was so nice as to give me his cold)

juggledad May 24, 2012 07:12 AM

It seems this has never worked. The first menu item, gets the 'site' title but that's it. If you use a WP custom menu and fill in the tags then they show up.

In the theme it doesn't make sense to have the titles since there is no option to add a title for the menu item so the only thing the theme could do is display the page name which is the menu label.


All times are GMT -6. The time now is 09:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.