Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fisrt of all when call widget area we can go in fumnction.php paste this code
- <?php
- // Custom widget area.
- register_sidebar( array(
- 'name' => __( 'header-top-area'),
- 'id' => 'header-top-area',
- 'description' => __( 'An optional custom widget area for your site', 'twentyten' ),
- 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
- 'after_widget' => "</li>",
- 'before_title' => '<h3 class="widget-title">',
- 'after_title' => '</h3>',
- ) );
- ?>
- then go to any file likr header.php call widget area then call to in the div class and paste the code
- <?php dynamic_sidebar( 'header-top-area' ); ?> and then go to widget area and use to any elements.
Add Comment
Please, Sign In to add comment