Results 1 to 5 of 5

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

Hybrid View

  1. #1

    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
    I don't know, I asked my programmer to do it, and according to him it was a 5 minutes work.

  3. #3

    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. #4
    Join Date
    Oct 2009
    Location
    Bosnia and Herzegovina
    Posts
    19
    You need to update this in:

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

    If the theme has all these files (probably yes)

  5. #5
    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, 14: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
  •