Tagged: ,

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

    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!

    #209329

    Hi Jox!

    It’s possible, what kind of Blog are you using? can you post a link to it?

    Best regards,
    Josue

    #209596

    utrugby.com

    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.

    #209621

    Hi,

    Can you create an administrator account and post it here as a private reply?

    Regards,
    Josue

    #209629
    This reply has been marked as private.
    #209920

    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

    #210305

    Awesome that worked!! Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘News Posts with No Featured Image’ is closed to new replies.