Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

Yoko Child Theme functions.php

By: jan_dembowski on Feb 7th, 2012  |  syntax: None  |  size: 0.63 KB  |  views: 184  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. add_action( 'init' , 'mh_unregister_sidebar' , 11 );
  4.  
  5. function mh_unregister_sidebar() {
  6.         unregister_sidebar( 'sidebar-1' );
  7.         unregister_sidebar( 'sidebar-2' );
  8.  
  9.         register_sidebar( array (
  10.                 'name' => __( 'Sidebar', 'yoko' ),
  11.                 'id' => 'sidebar-2',
  12.                 'description' => __( 'One Sidebar Only', 'yoko' ),
  13.                 'before_widget' => '<aside id="%1$s" class="widget %2$s">',
  14.                 'after_widget' => "</aside>",
  15.                 'before_title' => '<h3 class="widget-title">',
  16.                 'after_title' => '</h3>',
  17.                 )
  18.         );
  19.  
  20. }