Twenty Fourteen
[resolved] Remove titles on all pages but not for posts (6 posts)

  1. nadyaQL
    Posted 2 years ago #

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

  2. Rajesh Gupta
    Posted 2 years ago #

    Can you provide a link to your site?

  3. Rajesh Gupta
    Posted 2 years ago #

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

    .page .entry-header {
    display: none;

  4. EMG
    Forum Volunteer
    Posted 2 years ago #

    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.

  5. Rajesh Gupta
    Posted 2 years ago #


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

    Thank you

  6. nadyaQL
    Posted 2 years ago #

    Thank you so much!
    it just work perfect.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic