Wordpress header File Change..

Discussion in 'PHP' started by Blogspotter, Jul 7, 2009.

  1. #1
    Below is my header.php

    I want to change this line <h1><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></h1>

    SO that it shows up H1 in pages and Main index
    But in Single Post it shows up wth a H2 tag..

    How do I change? Can I just add an if condition in this file?

    I want to chnage only that line.. Rest all should load when single.php called get_header()
    Thanks in advance.

     
    Blogspotter, Jul 7, 2009 IP
  2. seo_adsense

    seo_adsense Guest

    Messages:
    90
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In single.php you can include the content of header.php and remove <?php get_header(); ?>

    then you can edit the tag.

    You can do the same for index.php, archive.php/category.php


    What "<?php get_header(); ?>" does...? It includes the content of header.php in the file where it is been called...

    You could also use the php if else statement...is_home(); is_single();...and so on.......
     
    seo_adsense, Jul 7, 2009 IP