• I am enjoying your theme but am wondering if there is a way to hide the banner widget on Posts.

    Currently it shows everywhere. I would like to only use it on the home page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mafox2

    (@mafox2)

    I installed the Widget Context Plugin which overcomes the problem. Wondering if you could explain if there is a simpler way to achieve this through css though

    Andre

    (@andre-jutras)

    Greetings….and thank you for the awesome comment about the theme.

    One of the frustrating things about WordPress is that it does not give the user the ability to choose what pages (or posts) to show/hide them on. However, the solution is a plugin, which is what you discovered.

    I’ve never used Widget Context before, but I am assuming it does similar to the others I have used such as JP Visibility, and recently I’ve been using the Widget Options plugin (which also does a lot more stuff, including hiding the widget title (another feature I wish WP had).

    However, in the end, if what you have setup now works for you, then that is what is important ??

    You asked about CSS method….there is actually. If you look at the source code for your front page where the widget is, the widget should have an ID that might look something like this: #media_image-2

    You ID for it might be a different number, but using that as an example, you could add this to the Additional CSs tab of the customizer:

    .archive #media_image-2, 
    .single #media_image-2,
    .page #media_image-2 {
        display: none;
    }

    Only problem with this is that it might show on other pages and the code above is more generalized. Technically the above code will still show the widget in all the pages of your site; just hidden from view though.

    To get greater control over where widgets will be seen, the plugin method is still the better solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide Banner Widget on Post Page’ is closed to new replies.