Hiding a div from Home Page

Posted in: Newspaper
Post count: 16

Hi
I’ve added a custom div to my header. It shows on every page as normally expected.
How can I hide this div from the “home page”?

Post count: 16

or how to hide this div from any page I want?

Post count: 35449

Hi,

Please follow our tutorial about Create custom code with the browser’s Inspector or the Live CSS Box

Very page/post have an id, just hover the post/page title and look in the left bottom corner https://www.screencast.com/t/bphBCMxQUL

When you inspect the page/post you’ll see at the top the postid/page-id
https://www.screencast.com/t/ZRSaLzQs
https://www.screencast.com/t/viL1wHb2f9E
For home page just use .home
https://www.screencast.com/t/rW6glVQN

To hide an element use the syntax css visibility: hidden; or display: none;
You can read more about it here : -> https://www.w3schools.com/css/css_display_visibility.asp

Hope this will help you.

Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.