• Hi I’m using the Synapse theme for a poster contest. I’m using the “grid 2-column” layout. Is there a way to have the posts open in a new tab when the thumbnail is clicked?

Viewing 1 replies (of 1 total)
  • Using a Child Theme, you can copy the framework/layouts/content-grid_2_column.php file into your child theme folder (maintaining the folder structure too), which you can then safely modify to suit your needs.

    I’ve added target="_blank" to both hyperlinks, as shown below.

    <?php if (has_post_thumbnail()) : ?>	
    	<a href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>" target="_blank"><?php the_post_thumbnail('synapse-pop-thumb'); ?></a>
    <?php else: ?>
    	<a href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>" target="_blank"><img src="<?php echo get_template_directory_uri()."/assets/images/placeholder2.jpg"; ?>"></a>
    <?php endif; ?>

    Hope this helps.

Viewing 1 replies (of 1 total)

The topic ‘open post links in new tab’ is closed to new replies.