Since: 1.0 Last Updated:
Back to Main Index

To utilize a setting in the front end on Layers, we use a helper function called layers_get_theme_mod()  which works just like the WordPress core get_option()

The following example from Adding Custom Controls tutorial shows how you would output an option value(for example, our custom control named social-facebook ) from the customizer into the header of Layers using the layers_before_header_nav hook. This goes into your functons.php or plugin class where all other hooks are set.