Create a gist now

Instantly share code, notes, and snippets.

anonymous /As of 91312 at 903 pm Secret
Created Sep 14, 2012

What would you like to do?
LeeAnn's Custom Functions.php file
register_sidebar(array(
'name' => 'Landing Page Sidebar',
'id' => 'Opt-in',
'before_widget' => '<li class="widget %2$s" id="%1$s">',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => 'Video 1 Page Sidebar',
'id' => 'Video 1',
'before_widget' => '<li class="widget %2$s" id="%1$s">',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => 'Video 2 Page Sidebar',
'id' => 'Video 2',
'before_widget' => '<li class="widget %2$s" id="%1$s">',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => 'Video 3 Page Sidebar',
'id' => 'Video 3',
'before_widget' => '<li class="widget %2$s" id="%1$s">',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>'
));
function mysite_dynamic_sidebars() {
if(is_ ()) {
mysite_do_sidebar('Opt-in');
}
else {
mysite_do_sidebar('Video 1');
}
}
add_action('thesis_hook_before_sidebar_1', 'mysite_dynamic_sidebars');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment