Hello Summer Sale!
Exclusive season-opening discount on TheGem theme.
Limited time offer.

Okay
  Public Ticket #1251368
Featured Image always visible
Closed

Comments

  • Lightform started the conversation

    Hi
    Is there a way to always have the featured image to appearby default aobve the blog articles without having to set it up each time in every new article?
    Thanks
    Kind Regards
    Stratos A.

  •  7,280
    Oliver replied

    HI!

    Examaple:

    <?php   if(get_post_type() == 'post' and has_post_thumbnail()){     
     the_post_thumbnail();   
    }
    ?>

    You need to change this code:

    <?php   if((get_post_type() == 'post' || get_post_type() == 'thegem_news') && $thegem_featured_content = thegem_get_post_featured_content(get_the_ID(), 'thegem-blog-default', true)) {      
    echo '<div class="blog-post-image centered-box">';      
    echo $thegem_featured_content;      
    echo '</div>';   }
    ?>

    In the file:

    /wp-content/themes/thegem/content-page.php

    Line 60 - 67

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver