Twenty Twelve, Remove Page Titles (7 posts)

  1. phillipc421
    Posted 3 years ago #

    Code I get the code to do this please? Thank you.

  2. Michael
    Forum Moderator
    Posted 3 years ago #

    either use a custom css plugin for the changes, and use a css fix:

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

    or create a child theme of Twenty Twelve to work with; http://codex.wordpress.org/Child_Themes

    and edit content-page.php in the child theme, and remove:

    <header class="entry-header">
    			<h1 class="entry-title"><?php the_title(); ?></h1>
  3. SWriverstone
    Posted 3 years ago #

    I'm wondering about this...does removing the whole header entry from content.php negatively impact site SEO? (e.g. can search engines no longer read the titles without this?)

    Or, conversely, does simply setting display to none keep SEO benefits (e.g. can search engines still read the titles?)


  4. paulwpxp
    Font hero
    Posted 3 years ago #

    For header ( H1 H2 tag ), use this instead of display none.

    .page .entry-title {
    	position: absolute !important;
    	clip: rect(1px 1px 1px 1px); /* IE7 */
    	clip: rect(1px, 1px, 1px, 1px);
  5. SWriverstone
    Posted 3 years ago #

    Thanks! That almost worked. Now my problem is that there is still some whitespace I don't want in the area of the page where the header/title normally sits. (When I deleted the header, it removed all the whitespace too---which was good!)

    If you want to look at my site, perhaps you'll notice another way to remove the remaining whitespace? (It's the whitespace between my navigation menu and the image slider---I want the slider to sit right beneath the nav menu).



  6. Mahesh
    Posted 3 years ago #

    If you use display:none, then there should be no whitespace problem as far as I can see.

  7. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    @SWriverstone, please don't make a habit of posting for support on someone else's thread.

    If you need additional support than this thread can provide, create your own thread.

Topic Closed

This topic has been closed to new replies.

About this Topic