Return to Snippet

Revision: 66589
at May 31, 2014 16:35 by JamesAbels


Initial Code
PLACE WHERE YOU WANT WIDGET AREA TO GO

<?php 
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('AREA_NAME') ) : ?>
<?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>',
) );

Initial URL

                                

Initial Description
A custom widget area for wordpress.

Initial Title
Wordpress: Custom Widget Area

Initial Tags
wordpress, theme

Initial Language
PHP