PHP: WP - Create widget section
// ADD TO FUNCTIONS.PHP
if (function_exists('register_sidebar')) {
register_sidebar(array(
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h5>',
'after_title' => '<h5>',
))
}
// ADD TO ACTUAL FILE
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?>
<!-- ONLY SHOWS IF THERE IS NOTHING IN THE WIDGET AREA -->
<?php endif; ?>