How to Add Advertisements to Your Wordpress Header
WordPress allows you to customize your blog's appearance to suit your own design goals and needs. You can create your own theme or install a pre-made theme. Even with pre-made themes, you can customize the code to your preferences. Many WordPress themes allow you to place an advertisement in the header. However, on some themes it is not practical to do so. If you want to know whether you can add an advertisement to your WordPress header, you can experiment with the design.
Instructions
-
-
1
Log into your WordPress admin control panel. Click "Appearance" and "Editor."
-
2
Click "Header" to open the "Header.php" file. If you use a child theme, you may need to click the "Select Theme to Edit" drop-down menu and select the parent theme to access the header file.
-
-
3
Look for the opening tag for your header. It should say either "<div id="header">" or "<h1 id="header">."
-
4
Paste the ad HTML code between the header's opening tag and the corresponding closing tag.
-
5
Click "Update File."
-
6
Click the name of your site in the upper right corner of the page to review the changes you made. If your ad does not display where you want, go back to the header.php file and move the HTML code to a different place within the header tag. Experiment until you get the placement you want.
-
1
Tips & Warnings
If the theme you use places the header within a headline tag that wraps around the title, it may not be possible to place an ad in the header and have the rest of the header display properly.