Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #830718

    Is it possible to remove images from recent posts widget with PHP , i have done it with CSS so they don’t display on the page but when i am running speed tests with GTmetrix they are still there

    #830950

    Hey jezza1961,

    Please, may you provide to us your website link and the WP and FTP credentials?

    Best regards,
    John Torvik

    #831025

    Thank you John, the site is below, is it possible to get php code i can add to functions.php in the child theme that would stop the images being called to the recent posts widget

    #832145

    Hi jezza1961,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    From what I see in code, you can comment out the code that adds a thumb, but there is no filter so you need to do it in this file – enfold/framework/php/class-framework-widgets.php:550
    This is the code to comment out

    
    	echo "<span class='news-thumb $nothumb'>";
    	echo $image;
    	echo "</span>";
    

    Keep in mind: This can be overwritten during update.

    Best regards,
    Victoria

    • This reply was modified 7 years, 3 months ago by Victoria.
    #832186

    thank you Victoria , i will try that

    #832190

    that worked , i ran a test with gtmetrix and the images from the posts are no longer showing up, thanks again

    #832210

    Hi! We’re glad that Victoria was able to help you! We’ll close this topic now. For any other questions or issues, feel free to post them here on the forum and we will do our best to assist you.

    Thank you for using Enfold.
    Cheers!
    Sarah

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘remove images from recent posts widget’ is closed to new replies.