Re: NEW Avenue K9 BP 1.1 Theme Released
Hey Mfgmk,
I know this is a bit late to reply to your comment from two weeks ago, but I just only read it now.
You shouldn’t copy functions.php from the parent theme to the child theme. It’ll throw errors. There’s another way to get rid of that third sidebar. Create an empty functions.php file in your child theme folder (all the functions from the parents functions.php will still work). In it you put this piece of code:
function sv_remove_sidebar()
{
unregister_sidebar( 'sidebar-4' );
}
add_action( 'admin_init', 'sv_remove_sidebar' );
In the above example 4 is the ID of the sidebar. If a sidebar doesn’t have a specific name to identify it with WP will give it automatically a name like sidebar-ID, which is the case with the default parent theme. Then you set the sidebar you just unregistered to display:none in your CSS file and you should be all set, plus you didn’t touch any parent theme files.