-
AuthorPosts
-
February 15, 2023 at 12:53 pm #1398063
Hello,
I would like to ask how it is possible to remove the name of the image in the gallery. Thank youFebruary 15, 2023 at 6:50 pm #1398118Hey martinmoravek1,
Thanks for the screenshot. Could you post a link to where we can see the actual element as well please?
Best regards,
RikardFebruary 15, 2023 at 7:50 pm #1398127February 16, 2023 at 4:36 am #1398157Hi martinmoravek1,
Please try to add this in your child themes functions.php file:
function temporary_removal_title_tags(){ ?> <script> window.onload = function() { var links = document.querySelectorAll('a, img, *[title]'); for (var i = 0; i < links.length; i++) { var link = links[i]; link.onmouseover = function() { this.setAttribute("data-tooltip", this.title); this.title = ""; }; link.onmouseout = function() { this.title = this.getAttribute("data-tooltip"); }; link.onmousedown = function() { this.title = this.getAttribute("data-tooltip"); }; } }; </script> <?php } add_action('wp_footer', 'temporary_removal_title_tags');
If you don’t have a child theme yet, then go to https://kriesi.at/documentation/enfold/child-theme/ and download the child theme there (instructions on how to use it is also there)
Hope it helps.Best regards,
NikkoFebruary 16, 2023 at 10:42 am #1398194Thanks for your answer.
I downloaded the child theme, set it up according to the instructions, inserted it into functions.php, deleted the cache, but no change. I tried to enter it in functions.php in the main theme, but also with no result.
February 18, 2023 at 6:15 pm #1398456Hi,
Thank you for your patience, Please try this code in the General Styling ▸ Quick CSS field:.mfp-content .mfp-title { display: none; }
After applying the css, please clear your browser cache and check.
Best regards,
MikeFebruary 18, 2023 at 7:00 pm #1398463thank you very much, now it´s ok :-)
February 18, 2023 at 7:03 pm #1398465Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘name of image in gallery’ is closed to new replies.