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 #1711720
Have "Show Featured Content" Enabled by Default
Closed

Comments

  • rmiller started the conversation

    Is there a way to have "Show Featured Content" enabled by default on blog posts?

    It would be great if we could eliminate that step. We have several bloggers that use our website and they are not used to that option as by default featured images normally show up so long as they are added to the blog post.

    Thanks for your time.

  •  7,095
    Oliver replied

    Hi,

    Pls. provide the wp-admin, FTP access and install child theme.

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

    Regards, Oliver

  •   rmiller replied privately
  •  7,095
    Oliver replied

    Hi,

    Can't connect to the FTP with the data you provided, you need to edit template:

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

    And add there:

    <?php  the_post_thumbnail( 'full' );?>

    In the place you need to show featured image. 

    Before the editing copy this file to the child theme for the safety feature updates.

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

    Regards, Oliver

  • rmiller replied

    Thank you for the direction. I replaced this...

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

    With this...

    <div class="blog-post-image centered-box">
      <picture>
        <?php the_post_thumbnail( 'thegem-blog-default-large', array('class' => 'img-responsive')); ?>
      </picture>
    </div>

    I'd like to recommend that this be triggered through the theme settings in a future release.

    Thank you!

  •  7,095
    Oliver replied

    Hi,

    It's already done in the theme options, but this setting will work only for the new posts.

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

    Regards, Oliver

  • rmiller replied

    What I meant was it would be nice for the option to work for old posts as well. When moving from a different theme to TheGem, it would be an easier transition.

    Warm Regards,
    -Russ

  •  7,095
    Oliver replied

    Hi,

    Ok. We'll think about it.

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

    Regards, Oliver