Automattic / _s

Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
http://underscores.me/
GNU General Public License v2.0
10.96k stars 3.12k forks source link

post thumbnail help #1314

Closed Lootstep closed 6 years ago

Lootstep commented 6 years ago

On my home page my I cant click my thumbnails and ive tried everything. I tried editing template tags.php with <?php if ( has_post_thumbnail()) : ?>

<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
   <?php the_post_thumbnail(); ?>
   </a>
  <?php endif; ?>

Tried editing content.php even if i remove <?php gfxh_post_thumbnail(); ?> nothing changes. It has something to do with

<?php
        the_content( sprintf(
            wp_kses(
                /* translators: %s: Name of current post. Only visible to screen readers */
                __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'gfxh' ),
                array(
                    'span' => array(
                        'class' => array(),
                    ),
                )
            ),
            get_the_title()
        ) );

        wp_link_pages( array(
            'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'gfxh' ),
            'after'  => '</div>',
        ) );
        ?>
    </div><!-- .entry-content -->

The content part the_content( sprintf( wp_kses Thank you for your time.

siradhana commented 6 years ago

You want to link post thumbnail to post permalink?

or you are saying that due to some reason - clicking on post thumbnail is not working?