Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #370985

    Hi,

    I’d like to hide the filename below the image in light boxes (masonry gallery) here:
    //See below

    How?

    This tip didn’t work:
    https://kriesi.at/support/topic/file-name-in-light-box/?login_error=incorrect_password

    Thank you!

    #371172

    Hi!

    The page you linked requires a password, please post it here as a private reply.

    Best regards,
    Josue

    #441287

    Hi. I am also wondering about that.
    I want to hide the filename when user looks a gallery but I want the caption’s image remains.
    Is it possible? I hope so :)
    Thanks in advance.
    Regards

    #441295

    Hey @gf-design!

    Please post a link to your gallery.

    Regards,
    Josue

    #441372

    Up to now, I am working in a localhost (if it’s absolutly necessary, I could upload a temporal site if you prefer)
    filename
    This is the filename that I want to remove but, I’d like to keep the caption text of each image.
    Thanks

    • This reply was modified 9 years, 7 months ago by gf-design.
    #441384

    Hey!

    Try adding this code to the Quick CSS:

    .mfp-content figcaption {
        display: none !important;
    }

    Cheers! 
    Josue

    #441393

    Hi Josue.Thanks for the quick answer
    This works but it also hides the caption text in case the image has one. Actually, the caption text is the text I want to show, not the filename. (Nobody is interested on filename)
    I am working in a photography site and it has thousand of images and they wouldn’t look so well showing the file name.
    I thought the solution may come from the JS side.
    Any idea?

    • This reply was modified 9 years, 7 months ago by gf-design.
    #441679

    Hey!

    Please add following code to Quick CSS

    .mfp-title { display: none; }

    Regards,
    Yigit

    #441689

    Hi Yigit. Thanks for your answer but it’s the same solution Josue suggested.
    Your solution hides the filename but also hides the caption text in case the image has one and this is the one we want to show.
    I’d like you tell me where I have to touch in the code to remove the filename off but the caption image remains.
    Any suggestion? :)
    Regards

    #441742

    Please publish the site and post a link here, i’m not sure why are you getting the filename in the first place (doesn’t happen on my local install).

    Regards,
    Josue

    #441796

    Hi Josue
    This this one of the gallery that I mention, but it happens with all of them.
    Take a look when you open the images, in the second picture the caption name is “panza” .This text is what I want to display and to avoid to show the filename when it doesn’t exist.
    I using last version of WP 4.2.2 and Enfold 3.1.5
    Any idea?

    #441797

    The only workaround I found was to add an empty space in each image in the description field but it’s very annoyed when you have a lot of images per gallery.

    #441840

    Hi,

    Try the following: open js/avia.js and look for line 917:

    if(!title) title = item.el.find('img').attr('title');
    

    Replace it by this:

    //if(!title) title = item.el.find('img').attr('title');
    

    Regards,
    Josue

    #441998

    Hey Josue.
    That’s exactly what we wanted. Thanks so much. :)
    The only thing I wonder if it’s possible to leave this change in the child theme. I created avia.js file into my child theme in this path “themes\enfold-child\js\avia.js” but WP doesn’t take the change.
    If this is a bit complex, don’t worry since it’s enough for me.
    Thanks again.
    Cheers

    #442123

    Hey!

    You need to include this in your child functions.php

    // Replace avia.js
    function change_aviajs() {
       wp_dequeue_script( 'avia-default' );
       wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
    }
    add_action( 'wp_enqueue_scripts', 'change_aviajs', 100 );

    Regards,
    Josue

    #442167

    Hey Josue. That works!
    Thanks so much for the excellent support.
    Best regards

    #442173

    You are welcome, glad to help :)

    Regards,
    Josue

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