I'm having some trouble working out why the default helper function isn't returning my option defaults. Example usage:
$options['home-posts-section-title'] = array(
'id' => 'home-posts-section-title',
'label' => __( 'Section Title', 'themename' ),
'section' => $section,
'type' => 'textarea',
'default' => __( 'Latest News', 'themename' ),
'transport' => 'postMessage'
);
The setting is being called like this:
echo esc_attr( get_theme_mod( 'home-posts-section-title', customizer_library_get_default( 'home-posts-section-title' ) ) );
The default displays in the customizer screen but not on the live site.
I'm having some trouble working out why the default helper function isn't returning my option defaults. Example usage:
The setting is being called like this:
The default displays in the customizer screen but not on the live site.