Option for append/prepend of CSS classes
-
If it’s at all possible it’d be awesome if there were an option that specifies whether the class(es) are prepended or appended to the original widget class attribute.
For example, with the current functionality this widget:
<aside class="widget">...</aside>
Becomes this when a new “widget-fancy” class is added:
<aside class="widget-fancy widget">...</aside>
And with certain stylesheets the intent is to override the default “widget” class behavior with “widget-fancy” so that you final markup is:
<aside class="widget widget-fancy">...</aside>
I tried digging through the source to propose a patch or see if this is even possible and I got a bit lost with exactly how everything ties together, so sorry if it’s simply not possible or I’m missing something obvious.
- The topic ‘Option for append/prepend of CSS classes’ is closed to new replies.