Adding classname to custom blocks
-
How can I get the classname assignment from the page editor (Right sidebar => Advanced => Additional CSS Class) to populate inside of a custom block?
Example:
<section class=”column-section [CLASSNAME WOULD GO HERE]” style=”background-image: url(<?php block_field(‘background-one’) ?>), url(<?php block_field(‘background-two’) ?>); background-color: <?php block_field(‘background-color’) ?>”>
… blah blah
</section>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding classname to custom blocks’ is closed to new replies.