WordPress.org

Support

Support » Themes and Templates » Shiword » Images in Mobile homepage

Images in Mobile homepage

  • 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 🙂

Viewing 1 replies (of 1 total)
  • Theme Author tbcrew

    @tbcrew

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

Viewing 1 replies (of 1 total)
  • The topic ‘Images in Mobile homepage’ is closed to new replies.
Skip to toolbar