Skip to content

Instantly share code, notes, and snippets.

@rafasashi
Last active September 1, 2018 12:05
Show Gist options
  • Save rafasashi/bf28ca1fca80e695debb80681ae2f728 to your computer and use it in GitHub Desktop.
Save rafasashi/bf28ca1fca80e695debb80681ae2f728 to your computer and use it in GitHub Desktop.
The register_sidebar() function in wordpress https://code.recuweb.com/
register_sidebar (array(
'name' => 'RightSideBar',
'id' => 'right-sidebar',
'description' => 'Widgets in this area will be shown on the right-hand side.',
'before_widget'=> '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>'
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment