[resolved] Adding custom CSS classes to individual Widgets (2 posts)

  1. emergination
    Posted 4 years ago #

    Hello. I'm almost finished with my first WordPress theme but I've run into a snag. I'd like allow the admin to set a custom CSS class for each individual Widget from the Widgets admin page.

    I've actually already created this theme as a Joomla template first, now I'm working on the WordPress theme version. In the Joomla admin panel you can give each Module (Widget) a custom CSS class, which is applied to the div containing the Module.

    I'd like to figure out how to make this happen in WordPress as well. Is there any plugin out there that would automatically add an extra field to each widget's options, or any other way to allow a site admin to designate a text string for individual widgets?


  2. emergination
    Posted 4 years ago #

    Ok, I found a plugin:

    It was surprisingly hard to find. I had to make some changes to get it to work with my theme, but I'm happy with the result.

Topic Closed

This topic has been closed to new replies.

About this Topic