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.
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.......