Twenty Eleven Theme, Creating Ad space above the Header picture. (3 posts)

  1. Backroadsliving
    Posted 3 years ago #

    Hi, I am new to WordPress but have my child theme created and have made some revisions to my Twenty Eleven theme through my style.css in my Child theme. I am wanting to create ad space where my header name and search bar are in this theme. Can it be done and does anyone know the code and where and how it needs installed in my Child theme. Would I need to create a new Header.php, copy the one from the parent theme to modify, or change it in the style.css.


    Thanks in advance.

  2. Don Betts
    Posted 3 years ago #

    Create a header.php file in your child theme folder and cut and paste everything from the header.php file of Twenty Eleven. In the header.php of the child theme just add a div after the header element and before hgroup like this:

    <div id="page" class="hfeed">
    	<header id="branding" role="banner">
    	<div id="adspace">put what ever you want in here</div>

    Now you can style it however you want in the child style.css using #adspace, or whatever you want to call the div.

    Good luck

  3. Backroadsliving
    Posted 3 years ago #

    Sorry to be so long replying. This was the right fix.

    Charles. K.

Topic Closed

This topic has been closed to new replies.

About this Topic