I currently have several posts that have featured images and several that do not. On my news sliders and news page it shows the ones without a featured image with a large square preview picture. Is there any way to disable that in php with an ‘if’ statement to where if there isn’t a previewed pic it just shows title and excerpt?
Thanks!
Hi Jox!
It’s possible, what kind of Blog are you using? can you post a link to it?
Best regards,
Josue
The slider is the bottom left column. That’s the post slider. Under the url utrugby.com/news the grid has the stories without a slider.
Hi,
Can you create an administrator account and post it here as a private reply?
Regards,
Josue
Hey!
You can easily remove it – open up /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/postslider.php and replace
if($thumbnail)
{
$thumb_fallback = $thumbnail;
$thumb_class = "real-thumbnail";
}
else
{
$thumbnail = "<span class=' fallback-post-type-icon' ".av_icon_string($format)."></span><span class='slider-fallback-image'>{{thumbnail}}</span>";
$thumb_class = "fake-thumbnail";
}
with
if($thumbnail)
{
$thumb_fallback = $thumbnail;
$thumb_class = "real-thumbnail";
}
else
{
$thumbnail = false;
$thumb_class = false;
}
Cheers!
Peter
Awesome that worked!! Thanks!