Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
  • #1274528

    Hi, I’ve set masonry gallery and need image titles to be shown below photos, however I obviously do not want titles to be seen after mouse hovering.
    I’ve found dozen of forum topics with answers “put some code into functions.php with official Krisi documentation. I’ve tried like zillion solutions and still those titles are seen.
    I will appreciate any help because I wasted like 3 hours for that, half a day is out and it is still not done.
    Webpage is, masony gallery of 5 photos in the middle of the mail page.
    Thank you!!!


    Hey EWAKOPI,

    Can you try adding this code in your child theme’s functions.php (at the bottom):

    function remove_title(){
        (function () {
        jQuery(document).ready(function ($) {
            $('#top .isotope-item').removeAttr('title');
            $('#top .isotope-item .av-masonry-image-container').removeAttr('title');
    add_action('wp_footer', 'remove_title');

    Best regards,


    I am not using child’s theme, \i will check that though in a sec.


    I’ve updated functions.php in enfold child, unfortunately I still see those filenames.



    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( to be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.

    Best regards,


    Ok, you will find login data enclosed. Thank you!



    Thanks, the reason why it’s not working is because the child theme needs to be activated.
    However, when I tried to activate the child theme and import the parent settings, some parts of the site are not correct so I have to activate back the parent theme.
    Then I installed and activated this plugin: Insert Headers and Footers, then in the for the Scripts in Footer I put this code:

    (function () {
        function removeTitle(el) {
        const items = document.querySelectorAll('#top .isotope-item');
        const containers = document.querySelectorAll('#top .isotope-item .av-masonry-image-container');

    Please review your site.

    Best regards,


    Thanks, now it’s ok! It’s a shame you had to use additional plugin though, was hoping you can make it in functions.php correct so I would know what was the problem with my changes. Most importantly – it’s now ok, thanks again!



    Yes, that’s true but since I have to consider that it’s a live site, I opted into using a plugin instead of a child theme.
    Also, there were no issues in functions.php it’s only that it’s not working because the code was in the child theme’s functions.php and it’s the parent theme (enfold) that has the code.
    With WordPress, when a child theme is activated it inherits the code from the parent, but if the parent theme is activated, it’s only the parent theme’s functions that will run.

    Best regards,


    Sure, I get it. This is why I always edit main functions.php – is it wrong then? Why should I be using Child theme in the first place?



    Thanks for the update. A child theme is used to keep your edits and overrides safe during updates. If they are placed in a child theme then they won’t be overwritten during updates, but if they are placed in the parent file, they will.

    Best regards,

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

You must be logged in to reply to this topic.