Tag Archives: wordpress header

WordPress: How to Remove the Header from a Theme?

Sometimes you might find that you need to remove the header (top banner) portion from a WordPress theme. It may be for a certain look or even to include your own coded header.
To take that top portion out of your theme is actually pretty easy…and you can do so without deleting the code.

01– Open your theme’s file “header.php

02– Locate this piece of code in your “header.php”  file.

<img src=”<?php header_image(); ?>” width=”<?php echo HEADER_IMAGE_WIDTH; ?>” height=”<?php echo HEADER_IMAGE_HEIGHT; ?>” alt=”” />

03– Now to disable it, just comment that whole section out. Continue reading WordPress: How to Remove the Header from a Theme?

WordPress: Adding an Alt Tag to the header (Top Banner)

1- Open file “header.php” in your theme

2- Locate the code:
<img src=”<?php header_image(); ?>” width=”<?php echo HEADER_IMAGE_WIDTH; ?>” height=”<?php echo HEADER_IMAGE_HEIGHT; ?>” alt=”” />

3- Add your Alt Tag to to the portion

alt=”” />

4- It should look like this: (though insert your own site info)

<img src=”<?php header_image(); ?>” width=”<?php echo HEADER_IMAGE_WIDTH; ?>” height=”<?php echo HEADER_IMAGE_HEIGHT; ?>” alt=”Simple Inbound – Marketing | SEO” />

WordPress Theme: How to change the header banner height?

Note: Instructions are based on the default “TwentyTen” Theme
(default size is 940×198)

1- Open your file “functions.php” in a text editor
(will be located in your theme)

2- Find the following code:

define( ‘HEADER_IMAGE_HEIGHT’, apply_filters( ‘twentyten_header_image_height’, 198 ) );

3- Change “198” to your desired size

4– SAVE AND OVERWRITE YOUR PREVIOUS functions.php FILE

5- Re-upload your 198 pixel height banner / header
Continue reading WordPress Theme: How to change the header banner height?