Home Forums WoodMart support forum Target="_blank" doesnt work in Promo Banner element

Target="_blank" doesnt work in Promo Banner element

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

    kapraru
    Participant

    Hi! I created a promo banner element and set a link to open in new tab, but it still opens in current tab. Is this a bug or i did something wrong? I tested it in Firefox and Chrome – same behavior.

    Attachments:
    You must be logged in to view attached files.
    #247592

    Artem Temos
    Keymaster

    Hello,

    It is a bug in our theme that will be fixed in the next update. As a workaround, edit the file wp-content/themes/woodmart/inc/shortcodes/promo-banner.php and replace the following line

    if( isset( $attributes['target'] ) && $attributes['target'] == ' _blank' ) {

    with this one

    if ( isset( $attributes['target'] ) && $attributes['target'] == ' _blank' || $attributes['target'] == '_blank' ) {

    Kind Regards

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)