I am looking for a way to hide (or comment out) the Title and ALT text for gallery images when viewed full size within the Coalition theme.
Hide Title and ALT text on Pretty Photo gallery images
8 posts from 3 voices-
Posted 1 year ago #
-
hm. I think the easiest solution would be to use a jquery script that removes the alt tags and titles alltogether.
adding this to the JS/avia.js file at line 32 could work:
jQuery(.gallery-item img).attr('title','').attr('alt','');
Posted 1 year ago # -
Thanks for the reply, however, the addition of the code did not work. When I added it to the file, Dreamweaver indicated there was an issue with the code - I uploaded the file to the server anyhow. When I went to preview the gallery with the newly added code, instead of opening up the image in a lightbox, it simply showed the image in a blank page.
I inquired about this same topic with the Brightbox theme and from what I can recall you said something about commenting out the code. Unfortunately, I cannot fine the support post that referenced that, nor remember the file and changes you suggested.
Posted 1 year ago # -
Hey,
I'd just use css to hide it. Open up css/custom.css and add:
div.ppt, .pp_description { display: none !important; }Posted 1 year ago # -
Almost there! The addition of the code successfully hid the ALT text, however, the TITLE still appears next to the controller in the bottom area of the image.
Posted 1 year ago # -
I corrected the code above (small typo - I forgot a dot . :)
Posted 1 year ago # -
That did it... thanks for the help!
Posted 1 year ago # -
Glad that I could help you :)
Posted 1 year ago #
Reply
You must log in to post.














