Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #442808

    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

    #443358

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.