Call to action button link needs to be open on a new window!

Hi there!

I need call to action button link to be open in a new window. I couldn’t find any option for this. Can you please help me to find it out?

See you!

Orhan

  • Ash
    • WordPress Hacker

    Hello @orhan

    Welcome to WPMU community!

    I hope you are well today and thanks for asking the question.

    Please go to /plugins/popover/css/tpl/YOUR_POPUP_THEME/template.php and line no 125 for cabriolet, 121 for simple and 134 for minimal and change:

    <a href="<?php echo esc_url( $this->cta_link ); ?>" class="wdpu-cta">

    to

    <a href="<?php echo esc_url( $this->cta_link ); ?>" class="wdpu-cta" target="_blank">

    It’s just adding this: target=”_blank”

    Please note that, this changes will be lost in next update. So it’s worth to note down this changes somewhere and apply again after your updates.

    Also, I am marking this as a feature request.

    Hope it helps :slight_smile: Please feel free to ask more question if you have.

    Cheers

    Ash

  • Andre Foisy
    • The Incredible Code Injector

    Hello @orhan

    I hope you are going well! :slight_smile:

    Just keep the above instruction in a text file on your local PC, in reality it’s not more difficult than using a word processor to format a letter. But I understand very well the hassle it can be. A bit of patience will pay :slight_smile:

    Cheers!

    Andre

  • Philipp Stracker
    • The Crimson Coder

    I just found this task is still open.

    We’ve added a “target” attribute for the CTA button some time ago already.

    So you can set the link target to “_blank” via the PopUp editor.

    Just documenting it here in case someone has the same question :wink:

    Philipp

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.