• Resolved theunvarnished

    (@theunvarnished)


    Hello,

    Love your plugin but I would like the popup to fire only on single post pages. I have many of those. Too many to write down the individual URLs. Is there a way to just specify a wildcard for URLs that you don’t want it to fire on. For example all the category pages?

    Thanks for the help!!

    theunvarnished.com

    https://wordpress.org/plugins/wordpress-popup/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @theunvarnished,

    Greetings and thanks for posting! The plugin doesn’t currently provide a way to use a popup on specific templates like that but you could use custom CSS like so:

    body.single div.visiblebox, body.single div.hiddenbox {
    	display: none;
    }

    That should hide the popup on Single templates.

    Or for categories:

    body.category div.visiblebox, body.category div.hiddenbox {
    	display: none;
    }

    For specific categories:

    body.category-news div.visiblebox, body.category-news div.hiddenbox {
    	display: none;
    }

    You could also customize that on a per popup basis by getting the id for the visiblebox after creating the popup. The plugin generates a unique id for each, allowing more custom styling.

    Would that work for you?

    EDIT: Custom CSS could easily be added using a plugin like so:
    http://wordpress.org/plugins/imporved-simpler-css/

    Cheers,
    David

    Thread Starter theunvarnished

    (@theunvarnished)

    Awesome!! You’re the best. Thank you for a great plugin!

    theunvarnished.com

    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    You are most welcome, if we can be of any further assistance please don’t hesitate to ask 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make the popup not fire on any category pages’ is closed to new replies.