March 2020
Beginner
660 pages
18h 28m
English
We can use a theme or plugins to create widget areas. In this case, we used the functions.php file of the theme to add the widget area. We used the widgets_init action in the previous recipe to register a new widget. Similarly, we can use the widgets_init action to register a new widget area using the register_sidebar function. This function accepts an array of arguments. Let's look at each of the arguments we specified in the register_sidebar function in Step 2:
Read now
Unlock full access