Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Disable elements and content from pages child of…

  • How can I disable an element from every page that is child of a page ID? For instance: I have an element called Breadcrumb

    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;
    }
  • Great. Tahnks!

  • You are welcome   🙂

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