• Resolved tdavis74

    (@tdavis74)


    I need to have some text “no thanks” be what closes the window. Right now it is set to just take you back to the homepage where the pop up once again comes in despite me setting it not to for 30 mins. Clicking outside it closes it and the 30 min rule works, but clicking the text in the window does not. Is there a shortcode I can use to designate those words within the pop up window as a close window directive?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @tdavis74,

    I’m afraid that there’s no such option but what you can do is put the X (close) button inside your content and add “No thanks” test to it.
    You can do that by editing your popup content and in text editor paste this HTML code:

    <button class="hustle-button-icon hustle-button-close no-thanks-close">
        <span class="hustle-icon-close no-thanks-close-text" aria-hidden="true">No thanks</span>
    </button>

    That will show the text but it will be squashed and still include X with it so you can add this CSS code to Appearance > Customize > Additional CSS field:

    span.hustle-icon-close.no-thanks-close-text:before {
        content: "";
    }
    
    button.hustle-button-icon.hustle-button-close.no-thanks-close {
        width: auto;
    }

    You can use .no-thanks-close and .no-thanks-close-text classes to customize this further.

    Cheers,
    Predrag

    Thread Starter tdavis74

    (@tdavis74)

    Thanks!
    That worked great. My only issue was that I needed the X to also show to make the No Thanks in the body to work. I thought that was going to be an issue, but thankfully they were ok with it!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Embed close text in popup’ is closed to new replies.