Support » Theme: Twenty Fourteen » Remove titles on all pages but not for posts

  • Resolved nadyaQL


    hi, i will like to remove titles on all pages but i want the titles at the posts still visible.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Can you provide a link to your site?

    For Twenty Fourteen, you can try this in your child theme’s style.css

    .page .entry-header {
    display: none;

    You can either:

    1) Target the page titles to not display using CSS like so:

    .page h1.entry-title {
        display: none;

    I prefer to target the h1 itself rather than the entire .entry-header as it is more specific and allows for customization of the .entry-header if necessary despite the non-display of the Page title.

    2) Prevent WordPress from printing out the Page title by altering the instructions in the loop template:

    It would likely look something similar to this:

    <h1 class="entry-title"><?php the_title(); ?></h1>

    And you would simply delete it.

    I don’t recommend this unless you are comfortable altering template files AND if you don’t mind the fact that removing the Page title completely may affect user accessibility for those who rely on h1, h2, h3, etc header tags to help guide them in navigating website content.

    And again, I don’t recommend completely removing the .entry-header section – just the part that generates the title.


    Agree with you … The approach you suggested is more specific.

    Thank you

    Thank you so much!
    it just work perfect.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove titles on all pages but not for posts’ is closed to new replies.