Overview

Use this tool to create custom code for Sidebars with register_sidebar() function.

Usage

  • Fill in the user-friendly form.
  • Click the “Update Code” button.
  • Copy the code to your project.
  • Or save it as a snippet and share with the community.

Examples

If you are still learning how to use this tool, check out the following examples:

The function used in the code.
Add Child Themes Support.
Translation file Text Domain. Optional.
ID used in the code. Lowercase, without spaces.
Sidebar CSS class name.
Sidebar name.
Short descriptive summary of the sidebar.
HTML to place before every widget title.
HTML to place after every widget title.
HTML to place before every widget.
HTML to place after every widget.
ID used in the code. Lowercase, without spaces.
Sidebar CSS class name.
Sidebar name.
Short descriptive summary of the sidebar.
HTML to place before every widget title.
HTML to place after every widget title.
HTML to place before every widget.
HTML to place after every widget.
ID used in the code. Lowercase, without spaces.
Sidebar CSS class name.
Sidebar name.
Short descriptive summary of the sidebar.
HTML to place before every widget title.
HTML to place after every widget title.
HTML to place before every widget.
HTML to place after every widget.
ID used in the code. Lowercase, without spaces.
Sidebar CSS class name.
Sidebar name.
Short descriptive summary of the sidebar.
HTML to place before every widget title.
HTML to place after every widget title.
HTML to place before every widget.
HTML to place after every widget.
ID used in the code. Lowercase, without spaces.
Sidebar CSS class name.
Sidebar name.
Short descriptive summary of the sidebar.
HTML to place before every widget title.
HTML to place after every widget title.
HTML to place before every widget.
HTML to place after every widget.

  Save Snippet
// Register Sidebars
function custom_sidebars() {

}
add_action( 'widgets_init', 'custom_sidebars' );