Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1435041

    Hello, I want to have a carousel of images with title. I have done it with Horizontal Gallery and looks great, but I should show the name/title of the image in the carousel, is that possible?

    I am including images of countries, and now you have to click in the image to see where it is, but that is not practical….

    Looking for your comments, thank you

    #1435083

    Hey carmen,

    Thank you for the inquiry.

    This is possible but you have to modify the enfold/config-templatebuilder/avia-shortcodes/gallery_horizontal/gallery_horizontal.php file, look for this code around line 786:

    $img_tag = "<img class='av-horizontal-gallery-img' width='{$img[1]}' height='{$img[2]}' src='{$img[0]}' title='{$title}' alt='{$alt}' />";
    					$img_tag = Av_Responsive_Images()->prepare_single_image( $img_tag, $attachment->ID, $lazy_loading );
    
    					$output .= $img_tag;
    
    

    Replace it with:

    $img_tag = "<img class='av-horizontal-gallery-img' width='{$img[1]}' height='{$img[2]}' src='{$img[0]}' title='{$title}' alt='{$alt}' />";
                        $img_tag = Av_Responsive_Images()->prepare_single_image( $img_tag, $attachment->ID, $lazy_loading );
    
                        $image_caption = wp_get_attachment_caption( $attachment->ID );
    
                        $output .= '<div class="image-container">';
                        $output .= $img_tag;
                        $output .= '<div class="image-caption">';
                        $output .= '<h4>' . get_the_title( $attachment->ID ) . '</h4>'; // Include title
                        $output .= '<p>' . $image_caption . '</p>'; // Include caption
                        $output .= '</div>';
                        $output .= '</div>';
    

    Best regards,
    Ismael

    #1435407

    Hello I have included that code, but it is nor working…..any other suggestion?

    #1435708

    Hi,

    Thank you for the update.

    The modification is working correctly on our end. Where are you testing this? Please provide the site URL in the private field and include the WP and S/FTP login details. We would like to check it.

    Best regards,
    Ismael

    #1435914

    Hello this is the page where I am doing test: https://gonowjets.com/destinos/

    I would love to have the possibility to have the carousel with the first images (the text in de middle of the image…)

    Looking for your comments, thank you

    #1435947

    Hi,

    Thank you for the update.

    We were able to access the dashboard, but we were not able to adjust the settings or edit files because the account doesn’t have admin rights. Please assign the user role to admin or provide another account with administrator privileges. Also, please make sure that the Appearance > Theme File Editor panel is accessible.

    Best regards,
    Ismael

    #1435955

    Hello you have admin rights now!

    #1436072

    Hi,
    It looks like you have doubled some of the code:
    Enfold_Support_4881.jpeg
    unfortunately the change can only be made via FTP, please try to correct to what Ismael has above.

    Best regards,
    Mike

    #1436201

    Hello I have already done it, but is still the same…

    #1436442

    Hello, any solution for this?

    #1436473

    Hi,

    Apologies for the delay. We have added captions to the Horizontal Gallery images, and they are properly included in the gallery but render below the gallery images, so they are not visible. We tried to adjust the style of the captions, but encountered an error when we tried to add this code in the theme options.

    .av-horizontal-gallery-wrap .image-caption {
        position: absolute;
        bottom: 0;
        background: rgba(255,255,255,0.5);
        width: 100%;
        padding: 10px 20px;
        color: #000000;
    }
    

    Please try to deactivate the plugins temporarily, then add the code above in the Quick CSS field.

    Best regards,
    Ismael

    #1436505

    OK is not working either, but I have used another option with code…thank you anyway with this in case you are interested: https://www.pluginsweb.es/slider-automatico-imagenes-titulo-boton-wordpress-sin-plugins/

    #1436802

    Hi,
    Glad to hear that you have this sorted out, and thanks for sharing your solution, 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

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Carrusel images with title’ is closed to new replies.