if you use wordpress customizer then try this code
public static function register ( $wp_customize ) {
// Logo upload
$wp_customize->add_section( 'bia_logo_section' , array(
'title' => __( 'Site Logo', 'bia' ),
'priority' => 30,
'description' => 'Upload a logo to replace the default site name and description in the header',
) );
$wp_customize->add_setting( 'bia_logo', array(
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'bia_logo', array(
'label' => __( 'Site Logo', 'bia' ),
'section' => 'bia_logo_section',
'settings' => 'bia_logo',
) ) );
}
i think you can also try redux framework for admin panel option
Related Posts:
- Not getting author rank when using return
- Redirect to another page using contact form 7? [closed]
- Add user meta after a user has registered and logged In [closed]
- how to display recent post by category on home page
- Between functions.php (theme), widgets, and plugins, which is loaded first?
- Is there any sort of theme dependency management?
- Add Plugins to WordPress Theme
- wp_enqueue_scripts not working in custom theme
- What is the correct way for a theme to support plugin UIs?
- How to call “page specific menu items” in template [closed]
- Create WooCommerce Product Category Programmatically
- Get info (url) from already enqueued styles
- How do I make my wordpress page more friendly for mobile viewers?
- WordPress Enqueue Script Chaos (jQuery & Foundation.js)
- login to wordpress with Get variables instead of Post
- Should I add sharing buttons using a plugin or directly in my theme files?
- Check javascript file Proper way in functions.php
- Find out if request is for custom post type archive before query runs
- Should I use RIPS tool to test my themes and plugins?
- How to Build a Movie Library in WordPress 3.x
- Having separate plugins and themes folder for multi-site setup
- How can I get full attachment url from wp_get_attachment_metadata?
- unzip a folder on specific location and delete the zip file
- gallery option is not available in media upload box in costum theme option page
- How to limit WordPress pages during updates?
- Why are some of my thumbnails not being generated?
- Why is the Settings API is not saving my array of options
- Built in audio player?
- Override the filter from plugin in child theme
- medoo framework in WP plugin
- Accessing GET variable named ‘error’
- How can i list random post from multiple category?
- how to load the language file in plugin?
- Accessing post’s meta data based on user’s click of a post
- Different UI in WordPress
- Get posts from WP_Query and format them on admin_head
- Redux Framework has an embedded demo. Click here to activate the sample config file
- How to query the custom fields by language?
- Why does my functions.php cause white-screen and media-library issues?
- wp_get_post_terms is difference obj model than the one in rest api response
- Best place for short bio,image and button [closed]
- How to call WordPress function other files
- WP_Query and NULL meta keys
- WordPress shows error related to allow_url_fopen
- How to show only next post pagination link using wp_link_pages()
- WordPress page and plugin list using sql query
- wp_footer hook only working on homepage not in other pages
- Plugin can not display in my custom theme
- WordPress premium theme development [duplicate]
- How do I combine a theme with a plugin
- how to force tag page layout to use same as search layout?
- How to insert multiple postmeta values with one query?
- order posts by `meta_key`, Does not display posts that does not have `meta_key`
- How to multiply a post to test internal search results?
- Use different single.php file based on condition
- Replacing global wp_query
- woocommerce search by sku and title ajax
- Widget for specific category
- How to customize this theme? [closed]
- Don’t load the theme for a page FROM a plugin EDITED
- Extending a theme: build new features as plugin or core modules?
- Remember the Meta Value With Radio Buttons
- WordPress plugin with its own “site”/theme
- Theme Functions run a function upon activation or preview
- Warning: Attempt to read property “ID” on null in C:\xampp\htdocs\Nnamdi1\wp-content\plugins\elementor\core\base\document.php on line 250 [closed]
- Adding CASE in WP_Query
- Seperate plugin and theme files
- Elementor Sidebar not loading when PRO elements plugin is active
- How would I get the new plugin version on this function?
- How to get a specific string from a url
- How to get checkbox by default true in metabox?
- WooCommerce Product Table – filter query on attributes
- How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- Performance considerations – postmeta table versus new table for custom posts with foreign keys?
- How to pass multiple custom fields as shortcode’s parameters
- Is it possible to custom set query for a WordPress REST API response?
- When the user entered an unauthorized url redirect to login page
- Show content from plugin on index
- Get plugin to background of page
- Shortcode in a blog post, footer and related products stop working
- How to delete only user meta value (not key) from usermeta table in wordpress?
- How can i see/log all requests coming from a registration form (not from the UI)?
- w3 total cache and post__not_in
- WP_Query Date Filtering Inclusive Being Ignored
- Directory structure for plugin changes
- How to show post attachment image
- Advanced Custom Fields (ACF) Plugin – Random Image in Sidebar
- Making a Custom Post Type Publish Loop
- How to generate a responsive output from plugin?
- How to work email subscribe in WordPress?
- How to create post comparison in wordpress
- Open graph issue on my theme
- Editing a theme
- manage_{taxonomy}_custom_column not working
- add_meta_box showing blank screen in my page
- How to create an Info Box on WordPress [closed]
- I want to display data last 7 days with date wise in chartjs?
- How to make content as required in custom post type?
- What are Seeds? [closed]