Home / WordPress / Add footer widget on wordpress

Add footer widget on wordpress

// In function.php
$args = array(
'name' => __( 'Sidebar name', 'theme_text_domain' ),
'id' => 'unique-sidebar-id',
'description' => '',
'class' => '',
'before_widget' => '

  • ',
    'after_widget' => '
  • ',
    'before_title' => '

    ',
    'after_title' => '

    ' );

    register_sidebar( $args );

    // In the footer
    dynamic_sidebar('footer-sidebar-1'); ?>

    Hits: 11

    Leave a Reply