Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #499618

    I have added the following code to disable any alt/title text from showing when hovering over an image. It works fine using it this way

    Hi!
    Please add following code to bottom of Avia.js file inside wp-content\themes\enfold\js folder
    jQuery(document).ready(function($){
    jQuery(‘img’).removeAttr(‘title’);
    });
    Greetings E! :)
    Best regards,
    Yigit

    Taken from this thread https://kriesi.at/support/topic/hiding-all-image-alttitle-attributes/

    All works part from on the page in the private links over these Two images the names pop up when hovered over…? It seems only here that it does it.. They are portfolio ajax with links..

    Any ideas?

    You can see “Music Business Course” shows up when hovered over before clicked as a link.. Its the same on the “Event Management Courses” next to it. But not on the portfolios at the bottom of the page, however they are not ajax..

    #499936

    Hi midischool!

    Try switching it to this.

    jQuery(document).ready(function($){
    jQuery('img').removeAttr('title').removeAttr('alt');
    });

    Best regards,
    Elliott

    • This reply was modified 9 years, 2 months ago by Elliott.
    #500120

    That code just broke the whole site, no images loaded and the menu too..

    I put back the original and it works on all pages part from those Two in the original post above..

    But i have fixed it, if the portfolio is set to show “Title and Excerpt” Then on the hover over the title shows on hover, if you set it to just show Excerpt, like the portfolio was below it, then the title does not show on hover, so in a away it no longer show the title on hover over, but i can’t set it to show “Title and Excerpt” No big drama i can live with out it showing the Title as the image has the Title on it..

    Not ideal but its got rid of the title on hover..

    #500461

    Hi!

    When I copied it the single quotes looked weird. I fixed those now.

    Cheers!
    Elliott

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