Results 1 to 5 of 5

Thread: WordPress Template with <h1> tag on post title

  1. #1
    Zean is offline Cutest Net Builder
    Join Date
    Sep 2009
    Posts
    42
    Thanks
    3
    Thanked 1 Time in 1 Post

    Talking WordPress Template with <h1> tag on post title

    anyone have wordpress theme with <h1> tag on post title not blog title...

    all default wordpress theme make post title as <h2> and blog title as <h1>

    it's hard to find that

  2. #2
    tetrapak's Avatar
    tetrapak is offline Net Builder
    Join Date
    May 2009
    Posts
    278
    Thanks
    33
    Thanked 53 Times in 39 Posts
    I don't know, I asked my programmer to do it, and according to him it was a 5 minutes work.

  3. #3
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts

    Thumbs up

    it's very easy. open the desired theme folder and edit the file single.php with your favorite text editor.

    search for the <h2> post title:

    Code:
    			<h2><?php the_title(); ?></h2>
    now replace h2 with h1. the result would be:

    Code:
    			<h1><?php the_title(); ?></h1>

    Note: don't forget to edit the <h1> header for Blog Title in header.php.

    Code:
    		<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    Because if you don't edit it you will have two <h1> tags and that is not recommended at all.

  4. Thanked by:

    chatterbox (9 January, 2010), m42 (11 January, 2010)

  5. #4
    bojandevic's Avatar
    bojandevic is offline Unknown Net Builder
    Join Date
    Oct 2009
    Location
    Bosnia and Herzegovina
    Posts
    19
    Thanks
    2
    Thanked 4 Times in 2 Posts
    You need to update this in:

    single.php
    page.php
    index.php
    archive.php

    If the theme has all these files (probably yes)

  6. #5
    Hellas's Avatar
    Hellas is offline Very Unusual Member
    Join Date
    Dec 2008
    Location
    Bosnia
    Posts
    1,051
    Thanks
    214
    Thanked 292 Times in 205 Posts
    even better option is next thing.

    main page (so your frontpage) need to have blog name in h1 and blogposts titles in h2.

    on single.php and page.php you need to have h1 on blogposts titles and nothing around blogname in header

Similar Threads

  1. Replies: 0
    Last Post: 31 August, 2010, 08:36 AM
  2. Wordpress sticky post ....
    By SonnyCooL in forum Wordpress
    Replies: 2
    Last Post: 7 April, 2010, 01:27 AM
  3. [WTB] Someone To Configure A Wordpress Template
    By Aquarezz in forum Services
    Replies: 4
    Last Post: 2 April, 2010, 17:46 PM
  4. Wordpress Template Hierarchy
    By Hellas in forum Wordpress
    Replies: 0
    Last Post: 29 March, 2010, 11:39 AM
  5. Replies: 0
    Last Post: 25 February, 2010, 13:51 PM

Tags for this Thread

Bookmarks

Posting Permissions

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