Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

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,092
    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,092
    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