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


  • 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.


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 name.
A short descriptive summary of the sidebar.
CSS class name to assign to the widget HTML.
HTML to place before every title.
HTML to place after every title.
HTML to place before every widget.
HTML to place after every widget.

  Save Snippet
// Register Sidebar
function custom_sidebar() {

	$args = array(
	register_sidebar( $args );


// Hook into the 'widgets_init' action
add_action( 'widgets_init', 'custom_sidebar' );