• Resolved rexjaguarius

    (@rexjaguarius)


    Hi there! Just started using your plugin, and its great.

    I am wondering, is there a possible way to exclude a single page?

    I want your popup to appear on all pages, all sub-pages, all new pages except… my register form page.

    If there is any way to do that, even through a hook in the functions.php, please let me know.

    https://ww.wp.xz.cn/plugins/i-agree-popups/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Talisman

    (@talismansolutions)

    Hi! Glad you’re enjoying the plugin, thanks for your feedback.

    This is certainly a feature we’ll look at implementing in a future version. In the meantime, copy the snippet below into your functions.php and replace the ‘2’ in is_page(2) with the ID of the page where you would like the popup hidden.

    <?php
    function exclude_popup() {
        if (is_page(2)) {
            echo '<style>.iAgreePopup {display:none!important;}</style>';
        }
    }
    add_action('wp_footer', 'exclude_popup', 1);
    ?>
    Plugin Author Talisman

    (@talismansolutions)

    Hello again. I haven’t heard from you but trust you found the above snippet useful.

    I’m marking this as resolved but please don’t hesitate to get in touch if you need any further help.

    Thanks!

    Thread Starter rexjaguarius

    (@rexjaguarius)

    Hi there,

    I just put it in over the weekend actually – busy week. Thank you! I works fine, the solution should have occurred to me I suppose.

    Thanks for the fast fix!

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

The topic ‘Exclude one Page’ is closed to new replies.