Page thumbnail img (need no hover and no click)
-
page.php
<?php if ( has_post_thumbnail() ) : ?> <div class="featured-media"> <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"> <?php the_post_thumbnail('post-image'); ?> <?php if ( !empty(get_post(get_post_thumbnail_id())->post_excerpt) ) : ?> <div class="media-caption-container"> <p class="media-caption"><?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?></p> </div> <?php endif; ?> </a> </div> <!-- /featured-media --> <?php endif; ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Page thumbnail img (need no hover and no click)’ is closed to new replies.