helferlein
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Fixing WordPress
In reply to: Override twentyfourteen functions.php using child themeSince this seems to function properly, i mark this as resolved.
Forum: Fixing WordPress
In reply to: Override twentyfourteen functions.php using child themeHi parcodeisuoni,
thank you, it seems to work.
Since I am not an experienced programmer, I would appreciate if you can briefly examine if my code does not contain any blunder?function remove_twentyfourteen_widgets(){ unregister_sidebar( 'sidebar-1' ); unregister_sidebar( 'sidebar-2' ); unregister_sidebar( 'sidebar-3' ); } add_action( 'widgets_init', 'remove_twentyfourteen_widgets', 11 ); function twentyfourteen_cms3_widgets_init() { register_sidebar( array( 'name' => __( 'Primary Sidebar', 'twentyfourteen' ), 'id' => 'sidebar-1', 'description' => __( 'Main sidebar that appears on the left.', 'twentyfourteen' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => __( 'Content Sidebar', 'twentyfourteen' ), 'id' => 'sidebar-2', 'description' => __( 'Additional sidebar that appears on the right.', 'twentyfourteen' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => __( 'Footer Widget Area', 'twentyfourteen' ), 'id' => 'sidebar-3', 'description' => __( 'Appears in the footer section of the site.', 'twentyfourteen' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); } remove_action( 'widgets_init', 'twentyfourteen_widgets_init', 11 ); add_action( 'widgets_init', 'twentyfourteen_cms3_widgets_init', 11 );
Viewing 2 replies - 1 through 2 (of 2 total)