Adding a class after a certain number of blocks
Permalink Browser Info Environment
Might it be possible to add a class after a certain number of blocks?
(e.g. on the fourth block insert a class)
Please excuse my feeble attempt at the code demo.
(e.g. on the fourth block insert a class)
Please excuse my feeble attempt at the code demo.
Type: | Discussion |
---|---|
Status: | New |
But I do have some custom code that lets you set an overall template on the AREA:
https://github.com/jordanlev/c5_block_wrapper_templates...
(Scroll down that page a little to see instructions on installing and using it.)
If you don't want to go through all that trouble, though, then the easiest solution is to use javascript/jquery, maybe something like this: