Hi,
I would like the post type “Link” to open in a new window when clicked on in the masonry blog. Is this possible?
MM
Hi mtmfx!
Please add following code to Functions.php file in Appearance > Editor
function add_custom_target(){
?>
<script>
jQuery(window).load(function(){
jQuery('.post_format-post-format-link a').attr('target','_blank');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_target');
Regards,
Yigit