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

Okay
  Public Ticket #1472993
Blog Item Settings
Closed

Comments

  • ricardo started the conversation

    Hi there.

    Is there an option to set "Show Featured Content" as default after each new article adding in Blog item settings?

  •  7,280
    Oliver replied

    Hi, 

    Copy file:

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

    To the child theme and excerpt the code (line 60-66):

    <?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 '';
    }
    ?>
    

    add this:

    <?php
    echo '<div class="blog-post-image centered-box"-->';
    if ( has_post_thumbnail() ) {
        the_post_thumbnail();
        }
    echo '';
    ?>

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

    Regards, Oliver

  • ricardo replied

    Thank You!

  •  7,280
    Oliver replied

    Welcome!

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

    Regards, Oliver