dynamic widget of wordpress

Solutions on MaxInterview for dynamic widget of wordpress by the best coders in the world

showing results for - "dynamic widget of wordpress"
Tommaso
25 Jan 2016
1/* functions.php file */
2function twentyseventeen_widgets_init() {
3	register_sidebar(
4		array(
5			'name'          => __( 'Blog Sidebar', 'twentyseventeen' ),
6			'id'            => 'sidebar-1',
7			'description'   => __( 'Add widgets here to appear in your sidebar on blog posts and archive pages.', 'twentyseventeen' ),
8			'before_widget' => '<section id="%1$s" class="widget %2$s">',
9			'after_widget'  => '</section>',
10			'before_title'  => '<h2 class="widget-title">',
11			'after_title'   => '</h2>',
12		)
13	);
14    }
15    add_action( 'widgets_init', 'twentyseventeen_widgets_init' );
16    
17    
18    /*  footer-widgets.php file  */
19    <aside class="widget-area" role="complementary" aria-label="<?php esc_attr_e( 'Footer', 'twentyseventeen' ); ?>">
20			<div class="container">
21				<div class="nw_prt">
22					<div class="row">
23						<div class="col-md-3">
24							<div class="nw">
25								<?php dynamic_sidebar('footer-1');?>
26							</div>
27						</div>
28						<div class="col-md-3">
29							<div class="nw">
30								<?php dynamic_sidebar('footer-2');?>
31							</div>
32						</div>
33                    </div>
34				</div>
35			</div>		
36	</aside><!-- .widget-area -->
37