• Resolved clara19880929

    (@clara19880929)


    Hello,dear

    I am using Hustle plugin to create a pop-up. And there are some questions which need your help.

    In my product page, there are some links. When users click the link, will open a pop-up. After the users input e-mail address and submit, I want to redirect an URL. This URL(same as href of the link) is that the link jumps to.

    How to do it?

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @clara19880929

    I hope you are doing well today.

    This could be confusing for the browser as same link will have same actions: open popup and open link after you fill form. I doubt this will be possible, but I asked our SLS Team to confirm that. We will post an update here as soon as more information is available.

    Kind Regards,
    Kris

    Thread Starter clara19880929

    (@clara19880929)

    Hello,kris

    Is there any update?

    Best Regards

    clara

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @clara19880929

    We got response from our Second Line Support. It seems that this custom code may work for you:

    https://gist.github.com/wpmudev-sls/e0e29ebd37cd2498a4618fcc7db7b389

    To apply it to your site you’d need to add it as Must Use plugin:

    – create an empty file with .php extension in the “/wp-content/mu-plugins” folder of your site’s WordPress install (name it e.g. “hustle-custom-link-redirect.php”)

    – copy and paste code into it

    Then you’ll need to make a small adjustment in the code in these two lines:

    $popup_id = 1; // Change this by the Pop-up ID
        $selector = '.ClassName'; // Change this by the Pop-up selector trigger (must be the same).

    In the first one, replace number 1 with an ID of your popup. Popup ID is the number you can see in popup shortcode.

    In the second line replace .ClassName with selector (remember to include dot or hash character in front depending on whether it’s CSS class or ID name) that is used to trigger popup. Note that this one in code must be the very same that is already set in popup configuration.

    Once that’s done, save the file, make sure to clear all caches and test it on the site. It should possibly work out of the box.

    Best regards,
    Adam

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @clara19880929,

    Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to open a new thread if you have new queries.

    Best Regards
    Nithin

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to jump to the specified link after submitting the form’ is closed to new replies.