Make copyright holder configurable
This commit is contained in:
parent
c95151bfe6
commit
3be0140350
@ -15,7 +15,7 @@
|
||||
|
||||
<footer id="colophon" class="site-footer">
|
||||
<div class="site-info">
|
||||
<span class="site-copyright">© Jeremy Dormitzer <?php echo date('Y');?></span>
|
||||
<span class="site-copyright">© <?php echo get_theme_mod( 'copyright_holder' );?> <?php echo date('Y');?></span>
|
||||
</div><!-- .site-info -->
|
||||
</footer><!-- #colophon -->
|
||||
</div><!-- #page -->
|
||||
|
@ -25,6 +25,17 @@ function jeremy_wordpress_theme_customize_register( $wp_customize ) {
|
||||
'render_callback' => 'jeremy_wordpress_theme_customize_partial_blogdescription',
|
||||
) );
|
||||
}
|
||||
|
||||
$wp_customize->add_setting( 'copyright_holder', array(
|
||||
'default' => '',
|
||||
'sanitize_callback' => 'sanitize_text_field'
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'copyright_holder_control', array(
|
||||
'label' => __( 'Copyright Holder', 'jeremy-wordpress-theme' ),
|
||||
'section' => 'title_tagline',
|
||||
'settings' => 'copyright_holder',
|
||||
) );
|
||||
}
|
||||
add_action( 'customize_register', 'jeremy_wordpress_theme_customize_register' );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user