/ Published in: PHP
Add First part to Functions.php
Add Second to where you want a smillcrobe
Add Second to where you want a smillcrobe
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /** * Register our sidebars and widgetized areas. * */ function arphabet_widgets_init() { 'name' => 'Home right sidebar', 'id' => 'home_right_1', 'before_widget' => '<div>', 'after_widget' => '</div>', 'before_title' => '<h2 class="rounded">', 'after_title' => '</h2>', ) ); } add_action( 'widgets_init', 'arphabet_widgets_init' ); ?> <?php if ( dynamic_sidebar('home_right_1') ) : else : ?> <?php endif; ?>
URL: http://codex.wordpress.org/Widgetizing_Themes