Forums

Style Every Other Widget (3 posts)

  1. bobinfrance
    Member
    Posted 4 months ago #

    I'd like to have different classes for widgets on a dynamic sidebar so I can alter the css - e.g.

    First widget gets 'before_title' => '<div class="widget-title"><h3>' then the second one gets 'before_title' => '<div class="widget-title2"><h3>'

    Does that make sense and if so can anyone point me in the right direction?

    I'm guessing I need to pass a parameter with widgets_init but I'm struggling to work out exactly where this called.

    Any and all guidance appreciated.

  2. alchymyth
    The Sweeper
    Posted 4 months ago #

  3. bobinfrance
    Member
    Posted 4 months ago #

    Thanks that looks like a great start -

    Thanks for taking the time to help

Reply

You must log in to post.

About this Topic