Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #296498

    There are some posts titles where I have had to add a little bit of html like a img src for a quick small icon…its great and simple as it adds a little flag for the origin of a post right in front of the title.The problem is that any mouseover the thumbnail in the masonry or on the latest post or on the story itself shows a title mouseover with the html (obviously)

    I need to remove all these titles on mouseover from showing at all anywhere on the site.
    Recommendations?
    Thanks in advance

    #296708

    Hey Monsoon!

    Please add following code to Functions.php file in Appearance > Editor

    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('img').removeAttr('title');
    jQuery('a').removeAttr('title');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    Regards,
    Yigit

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