added customizer footer logo on footer settings
This commit is contained in:
parent
4f067e32b7
commit
aa97a79b69
|
@ -38,10 +38,11 @@
|
|||
</p>
|
||||
</div>
|
||||
<div class="col-auto pr-0 pr-md-3 d-none d-sm-block align-self-md-center">
|
||||
<img src="<?php echo get_template_directory_uri() ?>/assets/images/logo-footer.svg" alt="">
|
||||
<img src="<?php if(get_theme_mod( 'footer_logo' )) { echo get_theme_mod( 'footer_logo' ); }else{ echo get_template_directory_uri() ?>/assets/images/logo-footer.svg<?php }?>" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<?php var_dump(get_theme_mod( 'footer_logo' )); ?>
|
||||
<?php endif; ?>
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
||||
|
|
|
@ -49,6 +49,20 @@ function tainacan_customize_register( $wp_customize ) {
|
|||
'section' => 'footer_info',
|
||||
) );
|
||||
|
||||
$wp_customize->add_setting( 'footer_logo', array(
|
||||
'capability' => 'manage_options',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Image_Control($wp_customize, 'footer_logo',
|
||||
array(
|
||||
'label' => __( 'Upload a footer logo', 'tainacan-theme' ),
|
||||
'section' => 'footer_info',
|
||||
'settings' => 'footer_logo'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// Add color scheme setting and control.
|
||||
$wp_customize->add_setting( 'color_scheme', array(
|
||||
'default' => 'default',
|
||||
|
|
Loading…
Reference in New Issue