-
Tesco
How can I disable an element from every page that is child of a
page ID
? For instance: I have an element calledBreadcrumb
…I also need to know how can I remove the
margin-top: 2em;
from<div class="entry-content" itemprop="text">
in those child pages…Thanks!
-
Hi there,
For instance: I have an element called Breadcrumb…
Is the “Breadcrumb” a class or a name attribute or the ID of the element?
For the margin, try something like this, and replace 100 with the actual page id.
.page-id-100 .site .entry-content { margin-top:0; }
-
Hi Ying,
Breadcrumb is an ID
-
OK, to target an ID, try this:
.page-id-100 #breadcrumb { display:none; }
-
Tesco
Great. Tahnks!
-
You are welcome 🙂
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.