Please Read First
Troubleshooting Tips
Frequently Asked Questions
Before Posting Please Disable Wp Super Cache Plugin
When Posting Please Include Your URL.
Search Forum Using Google Search Box Above
Forum Video

Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Sep 2011
    Posts
    7
    Rep Power
    0

    Default Re-Arranging Header Tags

    Hello everyone,

    I just wanted to start off by saying that I am really enjoying the Socrates theme. With that said, I have a bit of a dilemma. I am trying to accomplish the following...

    For my homepage I would like to have my header text enclosed in a H1 tag, and I would like to have all my post titles enclosed in a H2 tag ----> DONE

    And on my single posts/pages I would like to remove the H1 tag completely from the header area, and place all my post/page titles in a H1 tag. I figured out how to change the post/page titles to H1 tags (via Socrates > Layout >post/page display settings). But I am still not certain how to remove the H1 tag from the header area without also removing it from the homepage area.

    Any help would be greatly appreciated.

    Thank you

  2. #2
    Join Date
    Jun 2010
    Location
    Maine
    Posts
    7,457
    Rep Power
    12

    Default

    It would involve custom coding.

    In Appearance > Editor > header.php

    Make a backup.

    Then locate the div for im-header and replace with this.. you can replace the h2 with another h tag, or use css class.

    <div class="im-header">
    <div id="header">

    <?php if ( is_home() ) {?>
    <div class="titleText socshadow" style="margin-bottom:-5px; font-weight:bold;"><h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1></div>
    <div class="descText socshadow"><?php echo stripslashes($header['descText']); ?></div>
    <?php } else { ?>
    <div class="titleText socshadow" style="margin-bottom:-5px; font-weight:bold;"><h2><a href="<?php bloginfo('url'); ?>"><?php echo stripslashes($header['titleText']); ?></a></h2></div>
    <div class="descText socshadow"><?php echo stripslashes($header['descText']); ?></div>
    <!-- end jc -->
    <?php } ?>
    </div><!-- /header -->
    </div><!-- /im-header -->

Similar Threads

  1. Need guidance, problem arranging photos with text
    By Labil777 in forum Official Support 3.0
    Replies: 1
    Last Post: 07-18-2011, 01:57 PM
  2. H1 and H2 tags
    By Calabrese in forum Official Support 3.0
    Replies: 1
    Last Post: 05-20-2011, 11:41 AM
  3. h1, h2 and h3 tags
    By ghatcher in forum Official Support 3.0
    Replies: 3
    Last Post: 04-05-2011, 03:04 PM
  4. problem arranging photos with text
    By Rossburg in forum Official Support 3.0
    Replies: 1
    Last Post: 04-05-2011, 05:50 AM
  5. What happens with H tags
    By phi1618 in forum Official Support 3.0
    Replies: 1
    Last Post: 02-01-2011, 09:56 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •