register WordPress Widgets


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. register_sidebar(array(
  2. 'name' => 'topsidebar',
  3. 'id' => 'top-sidebar',
  4. 'description' => 'Widgets in this area will be shown on the header',
  5. 'before_title' => '<h1>',
  6. 'after_title' => '</h1>'
  7. ));

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.