Removing a header image on sub pages

  • Unknown's avatar

    How do i remove a header image on sub pages

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    You can use the body classes from the HTML source to target specific pages or types of pages.

    Let’s look at an example:
    http://rsvpweddingsandevents.wordpress.com/venues-2/

    The HTML body tag for that page looks like this:

    <body class="page page-id-178 page-template page-template-nosidebar-page-php logged-in admin-bar no-customize-support custom-background typekit-enabled single-author mp6 debug-bar-maximized theme-menu-maximized highlander-enabled highlander-light">

    So you could use this in your CSS to hide the title for just that page:

    .page-id-178 .entry-title {
    	display: none;
    }

    Or you could do this to hid the title for all pages:

    .page .entry-title {
    	display: none;
    }
  • The topic ‘Removing a header image on sub pages’ is closed to new replies.