• I have tried the following code in a child theme and it doesn’t seem to work.

    function woodland_fish_and_wildlife_widgets_init() {
        register_sidebar( array(
            'name'          => __( 'Home Page Text', 'textdomain' ),
            'id'            => 'home-page-text',
            'description'   => __( 'Widgets in this area will be shown on all posts and pages.', 'textdomain' ),
            'before_widget' => '<li id="%1$s" class="widget %2$s">',
            'after_widget'  => '</li>',
            'before_title'  => '<h2 class="widgettitle">',
            'after_title'   => '</h2>',
        ) );
    	
        }
        add_action( 'rowling_sidebar_registration', 'woodland_fish_and_wildlife_widgets_init' );

    The page I need help with: [log in to see the link]

The topic ‘Register sidebar’ is closed to new replies.