WordPress.org

Ready to get started?Download WordPress

Forums

Shiword
Images in Mobile homepage (2 posts)

  1. DSangwell
    Member
    Posted 1 year ago #

    Hi there,

    How can I make the thumbnails show up on the mobile template's home page? I've set featured images, however all I can get is the default "file" icon. Have I missed something?

    Many thanks :)

  2. tbcrew
    Member
    Theme Author

    Posted 1 year ago #

    Hi,
    that's the normal behaviour. Maybe (probably) we'll change it in next revision

    By now, if you can edit files, try the following:

    * open mobile/loop-index-mobile.php
    * replace

    <span class="tb-thumb-format <?php echo get_post_format( $post->ID ); ?>"></span>

    with

    <?php if ( has_post_thumbnail() ) { ?>
    
    	<?php the_post_thumbnail( array( 32, 32 ), array( 'class' => 'tb-thumb-format' ) ); ?>
    
    <?php } else { ?>
    
    	<span class="tb-thumb-format <?php echo get_post_format() ? get_post_format() : 'standard'; ?>"></span>
    
    <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.