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
Hey jezza1961,
Please, may you provide to us your website link and the WP and FTP credentials?
Best regards,
John Torvik
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
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
thank you Victoria , i will try that
that worked , i ran a test with gtmetrix and the images from the posts are no longer showing up, thanks again
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