Custom Classes for Shortcode
-
Hi.
I use your plugin on every Worpress Site I set up. It is absolutely great.
One feature I’m missing right now is the possibillity to add a custom class to the shortcode (and widget). Basically what I do is creating blocks for different layout positions that get different styling per position. Unfortunately some themes do not assign css classes to parent elements to properly address the output of the Custom Post Widget.
Additionally if your theme is based on a css grid framework like bootstrap you can assign grid-width classes to easily fit the Custom Post Widgets into the page layout.Maybe you can extend the shortcode like [content_block id=47 slug=my-block class=col-md-8] and/or add a field “css class” to the edit page.
Thanks for this great Plug-In
- The topic ‘Custom Classes for Shortcode’ is closed to new replies.