- In the functions.php file add
//add widget position function widget_insertion_init() { register_sidebar( array( 'name' => 'widget name', 'id' => 'sidebar_1', 'before_widget' => '<div>', 'after_widget' => '</div>', 'before_title' => '<h2>', 'after_title' => '</h2>', ) ); } add_action('widgets_init','mailchimp_insertion_init' );
- Then use the following code to display the widget in a template file:
<?php if ( is_active_sidebar( 'sidebar-1' ) ) { ?> <!-- primary-sidebar --> <?php dynamic_sidebar( 'sidebar-1' ); ?> <?php } ?>
A content management system
You will love
Joomla is one of the few content management systems we choose to work with because of its ease of use and ability to integrate with third party components, plugins, and modules. It is one of the most versatile cost effective CMS solutions out there and best of all developed using the PHP programing language that we specialize in..
We build Joomla templates from the ground up and prefer not to use third party templates. All of our templates are designed with your corporate branding in mind and designed to impress your site visitors.