Home Forums WoodMart support forum How to disable alt text in products page

How to disable alt text in products page

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

    rusakovs2005
    Participant

    Hello!
    How i can disable alt text in my product page? and how i can also disable save us pictures in products.

    For disable alt text i use code, but not work.

    /*—————————————-
    // Remove Image Title on hover
    //————————————–*/

    function removeImageTitleOnHover(){
    ?>
    <script>
    jQuery(document).ready(function() {
    var imgTitle;
    jQuery(“img”).hover(function(){
    imgTitle = jQuery(this).attr(“title”);
    jQuery(this).removeAttr(“title”);
    }, function(){
    jQuery(this).attr(“title”, imgTitle);
    });
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘removeImageTitleOnHover’);

    #365223

    Artem Temos
    Keymaster

    Hello,

    The only right way to remove the title attribute from your images is to edit each image via Dashboard -> Media and make sure that all title fields are empty.
    Unfortunately, our theme doesn’t have an option to block images from being downloaded.

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)