Back to Community

How to Remove or Modify Page and Post Titles in Twenty Fourteen

25 threads Sep 10, 2025 ThemeTwenty fourteen

Content

Many users of the Twenty Fourteen theme want to customize how titles are displayed on their pages and posts. A common request is to remove the title from a specific page, like the homepage, without affecting other elements like the featured content slider. This article explains why this can be tricky and provides the most effective solutions.

Why is Removing a Title Difficult in Twenty Fourteen?

The primary challenge is that the same CSS class, .entry-title, is used for both page titles and the titles of posts within the featured content grid. Using a broad CSS rule like .entry-title { display: none; } will hide all titles, which is rarely the desired outcome. The theme's structure requires a more targeted approach.

Common and Effective Solutions

1. The Targeted CSS Method (Recommended)

The safest and most common method is to use more specific CSS selectors. Instead of targeting all .entry-title elements, you can target only the titles on pages. The following code can be added to a child theme's style.css file or via a custom CSS plugin.

.page .entry-header .entry-title {
    display: none;
}

To target only the homepage and avoid affecting the slider, you can use the page's ID. You can find this ID by inspecting the body tag classes of your page.

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

Note: Replace 123 with your actual page ID.

2. The Template Editing Method (Advanced)

For users comfortable with editing theme files, the title can be removed directly from the template. This method physically prevents the title from being generated in the HTML. This must be done in a child theme to prevent your changes from being overwritten by a theme update.

Copy the content-page.php file from the parent Twenty Fourteen theme to your child theme directory. Then, locate and modify the code that outputs the title. You can conditionally remove it from the front page like this:

<?php
// Page thumbnail and title.
if ( ! is_front_page() ) {
    twentyfourteen_post_thumbnail();
    the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header>' );
}
?>

Troubleshooting Other Title-Related Issues

  • Plugin Conflicts: Some issues, like an extra pipe (|) character in the browser title tab, can be caused by SEO plugins like Yoast SEO. Deactivating plugins temporarily is a good troubleshooting step.
  • Removing Author Name: To remove the author name from post meta data, use this CSS: .entry-meta span.author.vcard { display: none; }
  • Fixing Broken Titles: If your page displays PHP code like the_title( ' ', ' ' ); ?>, it indicates a syntax error in a theme file. Restoring the original content-page.php file typically resolves this.

Important Best Practices

  • Always Use a Child Theme: Never modify the core Twenty Fourteen theme files directly. Using a child theme protects your customizations from being lost during updates.
  • Use a CSS Plugin: For simple CSS changes, a plugin like "Simple Custom CSS" is a safe and easy alternative to a child theme.
  • Clear Your Cache: After making CSS or file changes, clear your browser and website cache to see the results.

By following these methods, you can effectively manage title display on your Twenty Fourteen theme website.

Related Support Threads Support