Site logo

Archived topic

How to show or hide GP widget on specific pages?

3 replies · Started by Johannes on August 23, 2017

Viewing posts 1–4 of 4

Hi,

How to show or hide GP widget on specific pages? I suppose I can add a custom CSS class to it and the use some CSS?

-Johannes

Ok so use Tom's Simple CSS plugin: https://docs.generatepress.com/article/adding-css/#simple-css

and add this CSS in the CSS meta box on the pages you don't want the search field:

.header-widget {
    display: none;
}

Index pages (blog, archive) need to be handle differently so let me know if you want to hide it on them too.

This archived topic is closed to new replies.