Is there a way to programmatically add a dropdown selector to any widget added to a given widget area?

I have a header widget area and I'd like any widget added to it to have a dropdown box with the option to align the widget to the left right or centre. This would then be used to print a css class which would align the widget...


Widget CSS Classes is probably your best friend. It has the ability to add CSS classes manually by just typing them in, or you can set up predefined items that will add classes automatically. It's quite handy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.