Last active
January 1, 2016 19:51
-
-
Save Serega1288/1ca042cc9ac82032d733 to your computer and use it in GitHub Desktop.
widgets_init wp
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 | |
//functions.php | |
function boss_widgets_init() { | |
register_sidebar( array( | |
'name' => __( 'шаблон контакты позиция справа', 'boss' ), | |
'id' => 'sidebar-contacts-right', | |
'description' => __( '50% ширины от размера контента', 'boss' ), | |
'before_widget' => ' ', | |
'after_widget' => ' ', | |
'before_title' => '<strong>', | |
'after_title' => '</strong>', | |
) ); | |
} | |
add_action( 'widgets_init', 'boss_widgets_init' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment