• Resolved blas2021

    (@blas2021)


    Hello everyone, I would like to add in the form a second button that is not the one to send, and that is similar in operation as the “do not show more” link, but this one adds it under the box, I would like to have the submit button and the “reject” button just below and close the form. Is there any way to do it? Thank you very much and greetings

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

    (@wpmudev-support8)

    Hi @blas2021

    I hope you’re well today!

    I understand that the popup/slide-in that you are using is either an “e-mail” type one or you got a 3rd-party form included in it, right?

    You could use the “Never see this again” link option for this: if you enable it you can set your own text (e.g. “Reject”) and then use additional CSS to style it to look more like a button.

    Another way could be to use Call to Action instead. You can enable Call to Action in “Content” settings of the popup/slide-in and you would want then to

    – add your custom text (e.g. “reject”) as “Button label”
    – set the “Open link in” option to “Same tab”
    – set a “Redirect URL” to one of the pages of your site
    – and configure “closing” behavior for that button in “Behavior” settings

    The difference is that if you go with Call To Action button, you’ll have to set some URL in “Redirect” URL and while it will be a button “out of the box” and will match popup design – it will be located above the e-mail form. To move it would require at least additional (a bit “tricky”) CSS.

    Using the “Never see again” link instead would not require you to define any URLs to redirect and would place it below the form (which, I believe, would suit your needs better) but it will require additional CSS to “make it look like a button”. Though that shouldn’t be that complex and you can use e.g. this wizard to create a nice CSS button

    https://css3buttongenerator.com/

    You’d only need to replace the default “.btn” class name in resulting code with a “.hustle-nsa-link” class.

    Best regards,
    Adam

    Thread Starter blas2021

    (@blas2021)

    Thank you very much for your kind answer! As for the solution, I am doing it with the Never see again link, I have no problem that it looks like a button due to CSS, but the main problem is to locate it just below the submit button (And that I do not step on the box to accept the privacy policy), I find it difficult to do because of CSS, would it be possible to do it by modifying a plugin file? To do this, by default, place this link just below the submit button, and not at the bottom of the form (out of the box).

    Thanks and regards

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @blas2021

    I hope you are doing well.

    I wouldn’t suggest modifying a plugin file since it would be replaced on the plugin update.

    A workaround is appending the button using JS https://stackoverflow.com/questions/49820106/add-a-button-using-javascript-to-an-existing-div

    However, this would require some custom coding.

    Best Regards
    Patrick Freitas

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @blas2021,

    Since we haven’t heard from you in a while, I’ll mark this thread as resolved for now. Please feel free to re-open the thread if you need further assistance.

    Best Regards
    Nithin

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

The topic ‘Add another button in form’ is closed to new replies.