Add class to the wrapper div
-
Hi Bill, Thanks for your recent help.
I was trying to figure out how to add a class to my shortcode so the wrapper div can be styled within a page. I’m pulling different posts into an eNewsletter and need to style them differently. I would do it in the code view but I’m doing it for a client and that might be too complex.
Does something like this exist?
[display-posts wrapper=”div” class=”myStyle”]
so that the output would be <div class=”myStyle”>posts</div>I searched and found this:
https://www.billerickson.net/code/add-classes-to-display-posts-shortcode/
But this seemed to break my newsletter and didn’t seem to be right.
Thanks!https://www.ads-software.com/plugins/display-posts-shortcode/
- The topic ‘Add class to the wrapper div’ is closed to new replies.