Create a new widget area in the foote

Discussion in 'VideoCraft WordPress Theme' started by amouratoglou, Aug 29, 2014.

  1. amouratoglou

    amouratoglou Member

    Joined:
    Aug 20, 2014
    Messages:
    58
    Likes Received:
    0
    I have tried to register a new widget area to customize the theme's footer...
    when I try to register the sidebars using this code, when I look at the final result in the live website the title of the widget appears outside of the <h2></h2> , seems that there is something wrong.
    Seems that the before_title is not working... please can you help me to find out the way to make this work?

    PHP:
     
    /**
    * Register Widget Area Footer
    */
     
    function wpgyan_widgets_init0() {
     
        
    register_sidebar( array(
            
    'name' => 'Footer Sidebar0',
            
    'id' => 'footer_sidebar0',
            
    'before_widget' => '<div class="widget-footer-0>',
            
    'after_widget' => '</div>',
            
    'before_title' => '<h2 class="rounded">',
            
    'after_title' => '</h2>',
        ) );
    }
    add_action'widgets_init''wpgyan_widgets_init0' );
    [​IMG]
     

Share This Page