Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Harish Chouhan

    (@hchouhan)

    Hello MechaWear,

    Can you please share link to the page where you wish to hide the STB box?

    Secondly please note you can also hide the box from specific pages using WordPress conditional tags through the box edit srceen.

    Thread Starter MechaWear

    (@mechawear)

    Greetings, Harish. Thanks for the input.

    Here’s the link to the post where I want to block the STB: https://perfectwoodgrain.com/free-faux-maple-grain-tutorial/

    Plugin Author Harish Chouhan

    (@hchouhan)

    Hey MechaWear,

    I hope I’m not too late. To hide the box on that specific page, please go to the pop-up edit screen at “Scroll Triggered Boxes > Click on the name of the pop”.

    From the settings, for the option “Show this box” select “if page is” from the drop down and then add below code to the input field next to it.

    is_page( 3195 )

    This will make sure the popup won’t open on this specific page.

    Thread Starter MechaWear

    (@mechawear)

    Thanks for the input, Harish, but your code broke the STB site-wide.

    I assume you mean to suggest a “manual condition” vs “if page is”?

    Either way, is_page( 3195 ), breaks the stb site wide.

    Edit: I had my code wrong for post id. I’m now able to block STB by post as follows:

    Where “1234” is page id.

    .postid-1234 .stb {
    display: none !important;
    }

    Thanks for solution 🙂

    Plugin Author Harish Chouhan

    (@hchouhan)

    Hello MechaWear,

    I’m glad the issue is resolved for you. I’m sorry about the error. You are current the code I shared is for the manual condition.

    If you are interested I’d still like to get the conditional code working for you. The code I shared is from here https://codex.wordpress.org/Function_Reference/is_page. Can you please share a URL of your website and a screenshot of your STB settings page?

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

The topic ‘Block box by post vs page css’ is closed to new replies.