WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Twelve, Remove Page Titles (7 posts)

  1. phillipc421
    Member
    Posted 1 year ago #

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

  2. alchymyth
    Forum Moderator
    Posted 1 year 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>
    		</header>
  3. SWriverstone
    Member
    Posted 1 year 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?)

    Thanks!
    Scott

  4. paulwpxp
    Font hero
    Posted 1 year 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
    Member
    Posted 1 year 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).

    http://coopersrock.wpengine.com

    Thanks!
    Scott

  6. Mahesh
    Member
    Posted 1 year ago #

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

  7. Andrew
    Forum Moderator
    Posted 1 year 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