Add 'class' shortcode attribute to all shortcodes
-
This plugin was just what I was looking for, especially that it has no styling (and if styling is added that it should be able to be disabled). However, I think it’d be helpful to be able to add a
class
to each output.For example:
[SCF-POST-ID]
returns241
(I love that it’s “clean” output)- and
[SCF-POST-ID class="myclass other_class"]
would return something like<span class="myclass other_class">241</span>
- another idea would be to add the shortcode name as a class too:
[SCF-POST-ID class="scf-post-id myclass other_class"]
would return something like<span class="myclass other_class">241</span>
Just a thought.
Thanks again for this plugin!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Add 'class' shortcode attribute to all shortcodes’ is closed to new replies.