• Hi there,

    I’m currently running the SCRN theme on my page. It is a single-page theme with the option of having a separate blog page to store the post archive.

    On the blog section of the homepage, the featured images appear above each entry but on the blog page, all that displays is just the alt text of the image with a border around it.

    I’m new and I’ve looked at the php and can’t find anything that stands out but I’d be happy to paste some code in here if it’s helpful.

    The url is https://www.castironed.com
    Clickpath: Blog –> View All Blog Posts

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The display of feature images is a theme … uh… .feature. So, it’s up to your theme. See if your theme offers an option to show them. If not, you could create a child theme and modify code.

    hHowever, as you’re using a commercial theme, the best place to ask about it is here:

    https://themeforest.net/item/scrn-responsive-one-page-single-page-portfolio/2964855/support

    If you use a commercial theme or plugin and need support, please go to their official support channel. In order to be good stewards of the WordPress community, and encourage innovation and progress, we feel it’s important to direct people to those official locations.

    Thread Starter krhefley

    (@krhefley)

    Hi Steve,

    I’m actually running a child theme and can modify the code, I’m just not sure how to modify it.

    Right now, I see this in the php (on the parent theme for the archive page) which seems to look like most of what I find on the internet that is correct. My understanding of php is at toddler level. Does anything incorrect jump out here?

    Thanks!

    <div class=”twelve columns”>
    <?php
    $i = 1;
    if(have_posts()) : while(have_posts()) : the_post();
    $thumbnail = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );?>
    <div <?php post_class(‘post’);?>>
    <?php get_template_part(‘content’);?>
    </div> <!– end post –>
    <?php endwhile;
    get_template_part(‘includes/pagination’);
    endif; wp_reset_query();?>
    </div> <!– end twelve columns –>

    Thread Starter krhefley

    (@krhefley)

    And I sent this before reading your full post. Sorry about that. I can head over to their support page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Featured images not appearing on blog’ is closed to new replies.