Sidebar Generator

Generate unlimited WordPress sidebars. Make sure "Sidebar ID" is unique for each generated sidebar

Translation string (Text domain);
Sidebar ID in code (lowercase, no spaces)
Sidebar description
Before title HTML
Before widget HTML
Sidebar name
Sidebar CSS class
After title HTML
After widget HTML

AUTO GENERATED CODE

<?php
//Custom sidebar generated by Brewpy.app
if(!function_exists('brewpy_sidebar_1642621954057')){
function brewpy_sidebar_1642621954057(){
  $args = array(
     "id"                 => "mysidebar1",
     "class"              => "myclass",
     "name"               => __("My Sidebar","text_domain"),
     "description"        => __("My sidebar...","text_domain"),
     "before_title"       => "<h2 class='widgettitle'>",
     "after_title"        => "</h2>",
     "before_widget"      => "<li id='%1$s' class='widget %2$s'>",
     "after_widget"       => "</li>",
  );
  register_sidebar($args);
  }
add_action('widgets_init','brewpy_sidebar_1642621954057');
}
?>

How to use this code?

  1. Copy auto generated code ↑ (without beginning and ending PHP tags <?php and ?>)
  2. Paste code to bottom of your theme functions.php file
  3. Save and you are done!