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!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add class to the wrapper div’ is closed to new replies.