Need help with theme Option development
-
HI there,
Currently, I’m trying to develop my own theme. At this moment I’m working with theme Option customizer api. I’m trying to add image. successfully to add image option but unfortunately return on front-end 48. see attachment
https://prnt.sc/w343csI have added this function on my funcions.php file
$arsha_customize-> add_section('banner_section',array( 'title' => 'General Settings', 'description' => ' ', 'priority' => 20, 'capability' => 'edit_theme_options' )); $arsha_customize-> add_setting('logo_image',array( 'default' => '', 'transport' => 'refresh' )); $arsha_customize->add_control( new WP_Customize_Media_Control( $arsha_customize, 'logo_image', array( 'label' =>'Upload your image', 'section' => 'banner_section', 'mime_type' => 'image', ) ) );
and
for show<?php echo get_theme_mod('logo_image');?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Need help with theme Option development’ is closed to new replies.