News single picture is not showing up !!!

This topic has 4 replies, 3 voices, and was last updated 7 months, 3 weeks ago ago by Andrew Mitchell

  • Avatar: Mazzellla
    Mazzella
    Participant
    April 30, 2024 at 09:57

    Hello,

    Here : https://www.vins-ribeauville.com/exposition-giueseppe-livio/

    The picture in the header is not showing up…. its showing up only on preview… why ?

    I cant see a svg is loading instead the picture…

    Thank you

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    April 30, 2024 at 10:47

    Hi @Mazzella,

    The lazyload image of WP-Rocket plugin is causing the issue.

    We’ve added the following code under functions.php file locates in your child theme to disable the lazyload on single posts and the images are now appearing:

    
    function deactivate_on_single_post() {
    
    	// Disable LazyLoad for images on a 'post' post type singular template.
    	if ( is_singular( 'post' ) ) {
    		add_filter( 'do_rocket_lazyload', '__return_false' );
    		add_filter( 'do_rocket_lazyload_iframes', '__return_false' );
    	}
    }
    add_filter( 'wp', __NAMESPACE__ . '\deactivate_on_single_post' );
    

    Fore more information, please take a look at this article: https://docs.wp-rocket.me/article/16-disable-lazyload-on-specific-posts

    Could you please clear the cache and check again?

    Thank you!

    Avatar: Mazzellla
    Mazzella
    Participant
    April 30, 2024 at 11:05

    thank you so much!

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    April 30, 2024 at 11:05

    Dear Mazzella,

    As we continue our mission to exceed expectations, your insights become increasingly valuable. Could we, with all due respect, request your thoughtful feedback by giving our theme a deserved 5-star rating on ThemeForest?

    Click here to share your valuable perspective: https://themeforest.net/downloads

    Your time and trust are highly appreciated!

    Best Regards,
    The 8Theme Team

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘News single picture is not showing up !!!’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.