Tagged: easy slider, easyslider
-
AuthorPosts
-
July 6, 2016 at 4:37 pm #657579
Hi, I would like to eliminate the text that appears during my Easy Slider slideshows on my website… I think it’s displaying the ALT text?
I searched and found a post from Yigit that recommended modifying functions.php as below:
function add_custom_tooltip(){
?>
<script>
jQuery(window).load(function(){
jQuery(‘a’).removeAttr(‘title’);
jQuery(‘img’).removeAttr(‘title’);
});
</script>
<?php
}
add_action(‘wp_footer’, ‘add_custom_tooltip’);Is this still the best way to do this?
Thanks,
RobJuly 6, 2016 at 4:41 pm #657587Hi Rob!
That will remove titles globally. If you would like to target certain sliders/elements, please turn on custom CSS field for ALB elements – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then edit your elements to give them a custom class and then change the code to following one
function remove_title_attr(){ ?> <script> jQuery(window).load(function(){ jQuery('.your-custom-class a').removeAttr('title'); jQuery('.your-custom-class img').removeAttr('title'); }); </script> <?php } add_action('wp_footer', 'remove_title_attr');
Regards,
YigitJuly 6, 2016 at 4:45 pm #657593Thank you Yigit!!!
So if I want to turn off all the titles on all the sliders I just use your original code in my original post, right? I don’t ever want to have text slide titles / alt tags popup over the photos…. not sure why anyone would? But just want to make sure I am clear before I start making mods to my site.
Now about that Mailchimp…. ;)
Thanks!!!
Rob
July 6, 2016 at 4:49 pm #657599Hey!
Yes, in that case you can use the code as is – http://kriesi.at/documentation/enfold/remove-image-titles-that-show-up-when-you-hover-on-images/ :)
Sorry about that other thread. We informed our devs and have not heard from them yet :/
Best regards,
YigitJuly 6, 2016 at 5:13 pm #657625Yigit, wooo hoo! That worked perfectly!!! Thank you!!!!!!!!!
July 7, 2016 at 11:02 am #657889 -
AuthorPosts
- You must be logged in to reply to this topic.