/ Published in: PHP
A custom widget area for wordpress.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
PLACE WHERE YOU WANT WIDGET AREA TO GO <?php <?php endif; ?> PLACE IN FUNCTIONS.PHP register_sidebar( array( 'name' => __( 'Area Display Name'), 'id' => 'AREA_NAME', 'description' => __( 'Area Description'), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => "</li>", 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) );