jdunhin
New member
- Joined
- Feb 27, 2013
- Messages
- 93
- Points
- 0
Put this code in your functions.php file
Make a custom home page template and put this code in.
This is very fast method and I use this code allot!
PHP:
<?php
add_action( 'widgets_init', 'my_register_sidebars' );
function my_register_sidebars() {
/* Register the 'homepage' sidebar. */
register_sidebar(
array(
'id' => 'home',
'name' => __( 'home' ),
'description' => __( 'Widget on home page' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>'
)
);?>
HTML:
<div id="sidebar-home" class="sidebar">
<?php dynamic_sidebar( 'home' ); ?>
</div>