Since: 1.0 Last Updated:
Back to Main Index

Takes an option value from the controls in the customizer and outputs them into custom css via layers_get_theme_mod() . Use this function as reference for how to construct your own custom function that hooks into wp_enqueue_styles .

Location: core/helpers/template.php


This example creates a function called layers_child_customizer_styles ,  then outputs that using layers_inline_styles()

Note that if you use an existing framework class here that is already affected by layers_inline_styles (such as applying a different color control’s value to a class already affected by Layers Site Settings Colors), your CSS will be output after the pre-existing styling.