Support » Plugin: MailPoet Newsletters (Previous) » set an image to open in a new tab?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author MailPoet

    (@wysija)

    I just clicked on your newsletter and looks like you already have it figured it out!

    Bitedge

    (@whatwhatwhatwhat)

    Nope when a user clicks on the logo the homepage opens in the same tab, I want it to open in a new tab.

    Hello there,

    Find the code below which will help you do just that.
    You can add it to your themes functions.php or write it into another plugin.

    add_filter('wysija_preview', 'my_wysija_rendering');
        function my_wysija_rendering($email_render){
            $email_render2 = preg_replace("/<a(.*?)>/", "<a$1 target=\"_blank\">", $email_render);
            return $email_render2;
        }

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘set an image to open in a new tab?’ is closed to new replies.