Last active
March 21, 2016 17:53
-
-
Save tibicostan/a025fd840c11e3f42d9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Put this in your theme or child theme's functions.php file. | |
*/ | |
function en_register_campaigns_sidebar() { | |
$args = array( | |
'id' => 'campaigns-sidebar', | |
'name' => __( 'Campaigns Sidebar', 'holycrosss.staging.wpengine.com' ), | |
); | |
register_sidebar( $args ); | |
} | |
add_action( 'widgets_init', 'en_register_campaigns_sidebar' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I put that code at the end of functions.php (my sidebar is Campaigns Sidebar) an added on sidebar.php the next one:
Still no sidebar showing.