Create Custom Widget Area

// Custom widget areas.
function top_page_custom_sidebar() {
register_sidebar( array(
‘name’ => __( ‘Top Page Widget Area’ ),
‘id’ => ‘top-content-widget-area’,
‘description’ => __( ‘An optional custom top page widget area for your site’, ‘flatsome-child’ ),
‘before_widget’ => ‘

  • ‘,
    ‘after_widget’ => “
  • “,
    ‘before_title’ => ‘

    ‘,
    ‘after_title’ => ‘

    ‘,
    )
    );
    }
    add_action( ‘widgets_init’, ‘top_page_custom_sidebar’ );

    Leave a Reply

    Your email address will not be published.