skaryd
June 30, 2014, 6:31pm
1
Hello,
i want to ask whether it would be “easy” to make entire post rectangle clickable to get into the post itself as compared to the little arrow in lower right corner. I am a real beginner and although i grasp some basic concepts i fail to imagine where to look to make the change…
Open theme index.php file and replace the existing content in loop with this one.
<a href="<?php the_permalink() ?>">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( has_post_thumbnail() ) { ?>
<div class="pinbin-image"><a href="<?php the_permalink() ?>"><?php the_post_thumbnail( 'summary-image' ); ?></a></div>
<div class="pinbin-category"><p><?php the_category(', ') ?></p></div>
<?php } ?>
<div class="pinbin-copy"><h2><a class="front-link" href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<p class="pinbin-date"><?php the_time(get_option('date_format')); ?> </p>
<?php the_excerpt(); ?>
<p class="pinbin-link"><a href="<?php the_permalink() ?>">→</a></p>
</div>
</div>
</a>
You basically have to wrap the entire post with a href
nothing more.
Let me know id this helps.