I love the way Artisteer themes have built in widget areas above the content and sidebars, but what if you want to place a full width banner or ad above both of these? This is an easy tutorial on how to do just that!
First add the following code to the bottom of your header.php:
1 2 3 4 5 |
<div class="top-ad" style="width: 100%; text-align:center;"> YOUR AD CODE </div> |
Have you ever wanted to place a slider, ad, photo, etc. above your first post in it's own static widget area? If you said "yes" and have WordPress Thesis, check out the simple tutorial below.
Place the following code into your custom_functions.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<?php
/* Sidebar Before Content */
add_action('thesis_hook_before_content', 'beforecontent');
function beforecontent() {
?>
<div id="">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('beforecontent') ){ ?>
<?php } ?>
</div>
<?php
}
?>
<?php
register_sidebar(array('name'=>'BeforeContent', 'before_title'=>'<h2>', 'after_title'=>'</h2>'));
?>
|
If you're using the Thesis Theme for WordPress and want to add widgetized areas to your header, this tutorial will show you just how to to that. Adding 4 areas to your header may be overkill and I can almost hear Tim Allen saying, "AUE!!!"
Add the following code to the bottom of your custom_fuctions.php:
View code -------> HERE
Add the following code to the bottom of your custom.css:
View code -------> HERE
Website Design | Header Design | Logo Design | Graphic Design | Business Card Design | Picture Restoration
Copyright © 2013, Cyberhawk Designs. All Rights Reserved.