Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!-- in footer.php -->
<div class="footer-text"><?php echo get_theme_mod('footer_text') ?></div>
<!-- rendered HTML content -->
<div class="footer-text">&copy;2012 Site Name</div>
<!--in functions.php (to enable the field in the Theme Customizer) -->
$wp_customize->add_section( 'footer', array(
'title' => 'Footer',
'priority' => 105,
) );
$wp_customize->add_setting( 'footer_text', array(
'default' => '',
) );
$wp_customize->add_control( 'footer_text', array(
'label' => 'Footer Tagline',
'section' => 'footer',
'type' => 'text',
) );

This comment has been minimized.

Copy link
Owner Author

clarklab commented Oct 17, 2012

I posted this as part of a support forum ticket on, but I figured someone else might find it useful. Enjoy!


This comment has been minimized.

Copy link

bryceadams commented Oct 17, 2012

Awesome - thanks for this Clark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.