Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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,
    Rob

    #657587

    Hi 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,
    Yigit

    #657593

    Thank 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

    #657599

    Hey!

    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,
    Yigit

    #657625

    Yigit, wooo hoo! That worked perfectly!!! Thank you!!!!!!!!!

    #657889

    Hi,

    Great, glad we could help. Please let us know if you should need any more help on the topic.

    Thanks,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.