Gazza Green
|
I am trying to get rid of the pop up tags that appear when hovering over menu buttons in Artisteer 3.1 themes. They look a bit ametaurish and interfear with drop down menus.
Any avise on what code to use for this I would think "Simple" task.
Many thanks.
Great forum
|
|
speedyp
|
Gazza - I hadn't even noticed this until you pointed it out! Yeah I guess it is kind of annoying...
Not sure it's anything to do with Aritisteer, but more a wordpress thing.
I believe you could create your own custom menu source in wordpress (very easy to do), and leave the alt text field blank:
http://codex.wordpress.org/WordPress_Menu_User_Guide
Or maybe try this plugin: http://wordpress.org/support/topic/turn-off-alt-text-in-menu-system
|
|
Abland
|
Hi, Gazza Green,
Add this to the bottom of your theme's "functions.php":
function my_menu_notitle( $menu ){
return $menu = preg_replace('/ title=\"(.*?)\"/', '', $menu );
}
add_filter( 'wp_nav_menu', 'my_menu_notitle' );
add_filter( 'wp_page_menu', 'my_menu_notitle' );
add_filter( 'wp_list_categories', 'my_menu_notitle' );
|
|
Gazza Green
|
Hi Folks
Just to let you know that none of the solutions above have worked. The plug in suggested didn't work either, and there was no option to stop the pop up appearing in a menu, though everything else maybe.
It's definitely Artisteer3 doing it because version 2 (which I had before this one) the pop up on the menu never happened.
Anyone found a solution?
|
|
gcm
|
I think you can get rid of it by modifying navigation.php Look for $items[] = new theme_MenuItem(array( (see image below) and get rid of "'title' => strip_tags($title)"
|
|
speedyp
|
Genius GCM
I also tried the previous solutions & found they didn't work. Wasted an hour googling but something must have changed with recent WP or something?
Used your suggestion (Note: I had to remove that code from 2 locations in my navigation.php) and it worked like a charm
|
|
Christine
|
Never noticed either, but now that I've seen this, I'll be removing them every time.
Thank you, gcm.
|
|
Gazza Green
|
I contacted support about it that has given me the solution as above.
They tell me that the tags are to aid the sites SEO, I'm guessing tio help search engines to navigate the menu's easier.
However I always have access to links at the bottom of my pages so I would rather the tags weren't there, getting in the way.
Thats all for the help with this
|
|
rolandos
|
None of the solutions have worked for me in vertical menu. Removing that piece of code does nothing. But I found that commenting out the line 85 in navigation.php does the trick. //'title' => strip_tags(empty($el->attr_title) ? $title : $el->attr_title),
Is it safe to do it this way ?
|
|
Thepipe
|
Artisteer should not force "tool tips" on users. Yes, it may help with SEO, but the user should decide if and how specific SEO tactics are implemented. Ideally, users should be able to edit the tool tip text for each menu item and decide if they should be enabled/disabled on a global level or for each individual menu item. It would also be good if the user could specify if tool tips should be enabled/disabled for each menu level - e.g: primary vs. sub menus.
Also - it would be really nice if this forum sent an email whenever members replied to comments. Kinda dumb that it doesn't.
|
|
Subzero
|
Thank you gcm !!!
Sub
|
|
Greg
|
add this to your functions.php
function remove_tool_tip_title($input) {
return preg_replace_callback('#\stitle=["|\'].*["|\']#',
create_function(
'$matches',
'return "";'
),
$input
);
}
add_filter('wp_list_pages','remove_tool_tip_title');
|
|
Greg
|
Sorry my code needs some work
|
|