Genesis Tutorials

Tips, Tricks, and How-tos for the Genesis Theme Framework

  • The Genesis Developer’s HandbookVisual Hook Guide
  • code, settings & options oh my!Resources
    • Collection Of CodeSnippets
    • Under ConstructionGenesis Functions
    • Coming Soon…Utilizing Genesis SEO Options
  • Extend GenesisPlug-ins
    • Genesis Post Teasers
    • Genesis Favicon Uploader
  • Genesis Child ThemesThemes
  • What is genesistutorials.com?About
    • Genesis Tutorials Roadmap
You are here: Home / Functions / genesis_register_sidebar

genesis_register_sidebar

February 5, 2011 by Christopher

Description

This function expedites the widget area registration process by taking common things, before/after_widget, before/after_title, and doing them automatically.

Usage

genesis_register_sidebar(array(
	'name' => 'Sidebar Name',
	'description' => 'Description',
	'id' => 'sidebar-id'
)); 

Parameters

name – Sidebar name.
id – Sidebar id – Must be all in lowercase, with no spaces.
description – Text description of what/where the sidebar is. Shown on widget management screen. (Since 2.9)
before_widget – HTML to place before every widget.
default:

<div id="%1$s" class="widget %2$s"><div class="widget-wrap">

after_widget – HTML to place after every widget.
default:

</div></div>\n

before_title – HTML to place before every title.
default:

<h4 class="widgettitle">

after_title – HTML to place after every title.
default:

</h4>\n

About Christopher

Dabbler of anything web/tech/design/music. Independent web designer & developer.

Follow me on twitter @tweetsfromchris

Genesis Framework for WordPress

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Genesis Guide for Absolute Beginners

Click to download the Genesis Guide for Absolute Beginners

Follow me on Twitter

Follow @tweetsfromchris

Recent tutorials

Genesis 3.0.0 Removed Deprecated Functions

How to Add a Logo to the Header

Say Hello to the Genesis Visual Hook Guide v2.5

Genesis Tutorials • Built on the Genesis Theme Framework

Genesis Tutorials is not affiliated with StudioPress, and is maintained and operated by Christopher Cochran.