WordPress.org

Ready to get started?Download WordPress

Forums

Standard widget content id (1 post)

  1. Topher
    Member
    Posted 3 years ago #

    My widgets are each classed with .widget. The titles have .widget-title, but the content doesn't have anything standard like .widget-content.

    I want to style the content areas of all my widgets the same, but I have to make styles for all the different types of widgets.

    What's the easiest way for me to make something like this:

    <li class="widget">
      <h3 class="widget-title">My Widget</h3>
      <div class="widget-content">
        Random widget type
      </div>
    </li>

Topic Closed

This topic has been closed to new replies.

About this Topic