WordPress.org

Ready to get started?Download WordPress

Forums

Register_sidebar count (2 posts)

  1. lerizzle
    Member
    Posted 3 years ago #

    Hi,

    I want my before_widget to include a count.

    'before_widget' => '<div class="callout-[count]">'

    So if I have 3 widgets in that sidebar I want this

    <div class="callout-1">
    <div class="callout-2">
    <div class="callout-3">

    Thanks

  2. David Gwyer
    Member
    Posted 3 years ago #

    This is what you need to add specific id's or unique classes to each of your widgets in a particular widget area:

    http://www.mummey.org/2009/02/styling-wordpress-dynamic-sidebar-dynamic_sidebar_params-filter/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.