Home Forums WoodMart support forum ERROR IN THE WOODMART ELEMENTOR PROMOTIONAL BANNER WIDGET

ERROR IN THE WOODMART ELEMENTOR PROMOTIONAL BANNER WIDGET

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #255717

    maverick10
    Participant

    Hello, How are you?

    There is a major bug in the woodmart elementor widget called: “promotional banner”. The error is that when I insert a link, and I select for the link, the options “open in a new window” and “No-follow”, your widget has an error that prevents opening the link in a new window and opens it in the same window losing the main web page.

    ATTACHED SCREEN CAPTURE PROVES THAT I HAVE SET THE OPTION TO “OPEN IN A NEW WINDOW” WELL.

    Look at this website: https://eunicegarciaruiz.com/
    and go to the section that says “ALGUNAS RAZONES POR LAS QUE ELEGIRNOS”
    And then, click on the link of any of the 3 promotional banners that only have text (without photo), and you will see how the link opens in the same window and not in a new window.

    This is something very bad and it must fix, because otherwise the promotional banner is practically useless.

    Maybe you can give me a code to solve this.

    Thanks a lot

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

    Artem Temos
    Keymaster

    Hello,

    Try to edit the file woodmart\inc\integrations\elementor\elements\banner\banner.php and replace the following line

    if ( isset( $link['is_external'] ) && 'on' === $link['is_external'] ) {

    with this one

    if ( isset( $settings['link']['is_external'] ) && 'on' === $settings['link']['is_external'] ) {

    Kind Regards

    #270437

    maverick10
    Participant

    This code is not right because it opens two external windows instead of just opening one.

    Look at this website: https://eunicegarciaruiz.com/
    and go to the section that says “ALGUNAS RAZONES POR LAS QUE ELEGIRNOS”
    And then, click on the link of any of the 3 promotional banners that only have text (without photo), and you will see

    #270564

    Artem Temos
    Keymaster

    Try to edit the file woodmart/inc/integrations/elementor/elements/banner/banner.php and add the following line as shown on the screenshot http://prntscr.com/10bxpbt

    unset( $settings['link'] );

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