I have been using Genesis theme for sometime now. I also use Thesis theme which is also good. I wanted to add my own header for this blog. Reason was that I disable adsense when I am logged in or for any logged in user to avoid accidental clicks to Adsense Ads. Recently I added an Adsense Ad to the header widget but could not disable that as I cannot execute conditional PHP tags to the widgets (Plugins are available for this, but I did not want to use it).
I use a child theme for my Genesis theme installation so I added this code to the functions.php file of that child theme.
<div class="wrap"> <div><h1 id="title"><a href="http://kish.in/" title="Kishore">Kishore</a></h1><p>Limits Undefined</p></div><!-- end #title-area --> <div class="widget-area"><div class="widget widget_text"><div class="widget-wrap"> <div class="textwidget"><div> <!-- Adsense Code here - runs only for users who are not logged in --> </div></div> </div></div> </div><!-- end .widget_area --></div>
I had initially tried to do this using a plugin, but did not work for me.
Related posts:
- Upgrading your theme for Menu Functionality : WordPress 3.0 I liked the Greyzed Theme and after activation, I realized...
- All in One Seo Plugin and Twenty Ten Theme : Issue with Title when Re-Write Title Enabled After upgrading to WordPress 3.0, I changed my theme to...
- Adding Google Analytics Code in Thesis Theme If you are using the Thesis Theme on your blog...
- How to extract the title and meta description using Simple HTML Dom Parser Simple HTML Dom is an excellent script in PHP to...
- Why should you use a professional theme for your blog ? If you are going for Professional Blogging, then there are...
You should have got the notification to upgrade your WordPress Installation. Most of us do it instan →
There are many blogging softwares like Joomla, WordPress, Drupal, etc, but I would suggest you to go →
I always wait for beta releases and love to test it and try to know about the new features, and also →
{ 2 comments… read them below or add one }
is there a simple way to add header in a genesis theme? I am not that good with codes. I’m looking for an option that tells me to “Upload” header and hit ok. (just like the other themes)
this is my site: http://counseling-masters.com/ .. I appreciate any help. Thanks.
yes, this might help http://dev.studiopress.com/setup-custom-header.htm