Tag Archives: Wordpress

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?