[Resolved] Suppress element without shortcode

Home Forums Support [Resolved] Suppress element without shortcode

Home Forums Support Suppress element without shortcode

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1088418
    maria

    I’d like to show a specific plugin everywhere on the site except the blog. I know how to do this for plugins that have a shortcode (i.e. using the GP Elements feature), but is it also possible to do this for plugins that don’t?

    #1088593
    Leo
    Staff
    Customer Support

    Hi there,

    I’m not exactly sure what you mean.

    Could we use CSS to hide that on a specific page?

    Can you guide me to the element you are referring to in your site?

    Let me know ๐Ÿ™‚

    #1089936
    maria

    I’d like to suppress the Call & Book mobile bar in the blog section of the site. Most of the visitors to the blog are not local, so it doesn’t make sense for them to see the Call & Book mobile bar. It’s an older plugin that doesn’t have a shortcode.

    #1090017
    Leo
    Staff
    Customer Support

    Where is the Call & Book mobile bar on your blog page?

    I checked our blog page but don’t see it.

    #1091224
    maria

    It only appears when viewing the website from a mobile device. Here is a screen shot.

    #1091354
    David
    Staff
    Customer Support

    Hi there,

    try adding this CSS:

    body.blog #callbook {
        display: none !important;
    }
    #1107886
    maria

    Thanks! I was able to get this code to work for the Blog landing page, but not for individual blog posts. Am I using the wrong setting under Elements?

    #1108007
    Leo
    Staff
    Customer Support

    David’s CSS is targeting blog page only.

    You can try this to target the blog page and single posts:

    body.blog #callbook, body.single #callbook {
        display: none !important;
    }
    #1108068
    maria

    That worked, thanks so much!

    #1108072
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.