Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function helena_child_add_sidebar() {
- register_sidebar( array(
- 'name' => esc_html__( 'Footer Top', 'helena-pro' ),
- 'id' => 'footer-top',
- 'before_widget' => '<section id="%1$s" class="widget %2$s"><div class="widget-wrap">',
- 'after_widget' => '</div><!-- .widget-wrap --></section><!-- #widget-default-search -->',
- 'before_title' => '<h2 class="widget-title">',
- 'after_title' => '</h2>',
- 'description' => esc_html__( 'Footer Top widget area.', 'helena-pro' ),
- ) );
- }
- add_action( 'widgets_init', 'helena_child_add_sidebar', 100 );
- function helena_child_footer_top_sidebar() {
- if ( is_active_sidebar( 'footer-top' ) ) : ?>
- <div id="supplementary" class="one footer-top">
- <div class="wrapper">
- <div id="first" class="widget-area" role="complementary">
- <?php dynamic_sidebar( 'footer-top' ); ?>
- </div><!-- #first .widget-area -->
- </div> <!-- .wrapper -->
- </div><!-- #supplementary -->
- <?php
- endif;
- }
- add_action( 'helena_after_content', 'helena_child_footer_top_sidebar', 19 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement