• Resolved heroinjunkie

    (@heroinjunkie)


    Hello,

    I need some help figuring out how to remove page titles only on certain pages.

    What i am interested is making a page template with no page title.

    not this css which removes all of the titles everywhere.

    .page-header {
    display: none;
    }

    Thank you in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Well you can still use css, each page has a unique css class in the body tag of the page. Also each page template has a css class so lets say I wanted to target page with the id of 6 I could use this css:

    .page-id-6 .page-header {
    display: none;
    }

    Or lets say I wanted to target every page using the sidebar page template:

    .page-template-page-sidebar-php .page-header {
    display: none;
    }

    If you using google chrome inspect tool and look in the body tag you will see the classes.

    Kadence Themes

    Thread Starter heroinjunkie

    (@heroinjunkie)

    thats great, thanks for telling me! definitely need to learn more css to figure stuff out myself.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove Page title on some pages’ is closed to new replies.