Answer the question
In order to leave comments, you need to log in
How to make a sidebar in wordpress?
Hello, I have a problem rather than a question, I included a sidebar in the functions.php file
add_action( 'widgets_init', 'register_my_widgets' );
function register_my_widgets(){
register_sidebar( array(
'name' => "Left Sidebar",
'id' => "left_sideBar",
'description' => 'Описание сайт бара'
) );
}
'left_sideBar');
dynamic_sidebar(Answer the question
In order to leave comments, you need to log in
SideBar is connected in the WordPress admin panel (Themes --> Customize --> Widgets --> Add SideBar)
This is different for each theme, so you should look at the documentation for your theme on this topic
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question