megwoo
6/25/2015 - 7:25 PM

WordPress Add Widget Area

in functions.php:

register_sidebar(array(
	'name' => 'Sidebar',
	'id' => 'sidebar',
	'description' => __('This is the default widget area for the sidebar. This will be displayed if the other sidebars have not been populated with widgets.', 'themetrust'),
	'before_widget' => '<div id="%1$s" class="%2$s sidebarBox widgetBox">',
	'after_widget' => '</div>',
	'before_title' => '<span class="widgetTitle">',
	'after_title' => '</span>'
));

in template:
<?php dynamic_sidebar('contact_info'); ?>