WordPress.org

Ready to get started?Download WordPress

Forums

alternating classes with widgets (3 posts)

  1. CreateSean
    Member
    Posted 5 years ago #

    I am in the process of developing (my first custom theme) for a client. One of the things I need to be able to do is to have the class surrounding a widget alternate dyanamically so that if there are 2 widgets the first one would have <div class="widget1"> and the second would be <div class="widget2">

    Then the next widget would go back to the first class and repeat - preferably 3 classes switching would be great, but 2 will work.

    Can this be done and if so how?

  2. CreateSean
    Member
    Posted 5 years ago #

    No one has an answer?

  3. wizardregis
    Member
    Posted 5 years ago #

    Guess you would need to write your own function for that. Probably have better luck asking in the WP-Advanced or How-To forums.

Topic Closed

This topic has been closed to new replies.

About this Topic