Adding Class to Post Template in Query Loop Block
-
Hi. I tried adding a class in the Advanced settings of a Post Template part of a Query Loop Block. I expected the class to be added to each individual post item (li.wp-block-post). But it was added to the parent UL container instead (ul.wp-block-post-template).
– Is there any way to attach class(es) to the individual .wp-block-post list (LI) elements instead of the parent UL?
– Super Bonus: I might ultimately need an additional iterative class added to each post item (e.g, .class-01, .class-02, .class-03, etc.). Any direction here would be most helpful.
THANKS!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding Class to Post Template in Query Loop Block’ is closed to new replies.