Last active
October 15, 2020 18:28
-
-
Save tdrayson/0e240d7eebf869b448085f82a7c557b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Add dynamic class to posts | |
//dynamic_classes_oxygen_repeater.php | |
//Add this into a codeblock | |
<style type="text/css"> | |
.post-<?php the_ID() ?> #DIV_ID_HERE{ | |
background-color:<?php the_field('ACF_FIELD_HERE'); ?>; | |
} | |
</style> | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment