RadoslavGeorgiev / rila-framework

A front-end WordPress framework with a set of many extendable class wrappers, inpired by the MVC ideology
GNU General Public License v2.0
18 stars 3 forks source link

Add classes to content blocks #17

Closed RadoslavGeorgiev closed 7 years ago

RadoslavGeorgiev commented 7 years ago

There must be something that allows individual content blocks to be identified by CSS.

Quick ideas:

This should be added to the builder class, but should be customizable from the block class.

RadoslavGeorgiev commented 7 years ago

Fixed in e60ff8c

Now you can either declare the get_css_class within methods or use the rila.builder.block_class filter. Both of them will receive the zero-bazed indexes of the block and of the block type.