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
- how do i remove posts from a WP_Query so the pagination is right?
- Menus, but not by theme location
- how to load the language file in plugin?
- WooCommerce get_price returning wrong price when used via ajax
- Open Post Thumbnail in New Child Theme File in WordPress
- How to use get_theme_mod in gutenberg editor wordpress?
- Accessing post’s meta data based on user’s click of a post
- How to get current post user id
- Events Made Easy Plugin – Duplicate Title Tags
- WooCommerce shop page orderby [closed]
- Different UI in WordPress
- What is the correct way to update both WP/plugins/themes without breaking the site?
- 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 Display a Plugin function (content) on frontpage using index.php
- The problem with WordPress Importer
- How to query the custom fields by language?
- Why does my functions.php cause white-screen and media-library issues?
- How to make a slideshow shortcode based on the WordPress gallery shortcode? [closed]
- How do I “get the next 10 posts after post_id == x”?
- how to give a user a role?
- switched from query_posts to WP_query, not working now?
- AJAX search posts and pages
- All of my custom posttypes are 404’ing
- Display post lists in 2nd paragraph
- DROP TABLE with uninstall hook not working
- wp_get_post_terms is difference obj model than the one in rest api response
- How to change this WP_Query to get all ProductIDs and not only specific one?
- how to add a button next to the wordpress view button?
- Classified ad website : which solutions to use? [closed]
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- Best place for short bio,image and button [closed]
- How to call WordPress function other files
- What are the specifics of WordPress development I need to know? [closed]
- Insert content of a post into another
- WP_Query and NULL meta keys
- WordPress shows error related to allow_url_fopen
- how to use in custom single.php template using php?
- How to create a code editor for my plugin .?
- How to show only next post pagination link using wp_link_pages()
- Finding the URL to be used to check if plugin is installed with a theme
- WordPress page and plugin list using sql query
- Js file is not adding using this code in functions.php
- How to create a custom shortcode based on the layout?
- wp_footer hook only working on homepage not in other pages
- Using AJAX to generate front end / viewer end pages
- How can I position ShareThis buttons manually when using the plug-in? [closed]
- Plugin can not display in my custom theme
- WooCommerce search products between price range using WP_Query
- ACF: post query, hide duplicate values [closed]
- How to use get_template part in the plugin?
- Jquery NoConflict Problem
- Overriding Parent Theme… will cause plugins failure?
- 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 can I show a different theme for admin users? WP 3.8+
- How to insert multiple postmeta values with one query?
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- How to Loop Through all Posts and Count Attachments using Get Media Attachments
- How to show the number of website visitors in my theme
- How to write “alt” tag in image for wordpress code?
- How to get a list of bundled products using wp_query in woocommerce
- order posts by `meta_key`, Does not display posts that does not have `meta_key`
- WordPress Apply filter in plugin causes 500 internal error
- Meta query for comparing two dates
- multiple language website navigation menu suggestion
- How to multiply a post to test internal search results?
- Use different single.php file based on condition
- Replacing global wp_query
- Customizing Titles on the Fly with Code
- Add SideBar/Widgets Just Below the Post
- Add filter on html tags,attributes on specific function in wordpress
- plugins not working in custom theme
- Release the plugin in the WordPress repository where redux is used
- Error in pdf generating plugin using FPDF
- Return multiple values in a shortcode attribute
- Shortcode Attributes to Return different $_POST
- What form should the $query media query array have for an Elementor page builder function? [closed]
- How can I support plugins in a custom theme?
- How to use the CSS of the WordPress core in the development of my administration page?
- Redeclare function after plugin activation
- is_rtl returns false while it should return true
- Include Minit plugin in theme [closed]
- Woocommerce singe product custom gallery output works just on the first slide
- What is the purpose of a companion plugin
- woocommerce search by sku and title ajax
- Remove Pagination for Product Category Pages WooCommerce
- Managing wordpress Themes & plugins for multisite
- Is it possible to restrict content in wordpress?
- Get plugin to background of page
- How to display the Facebook like count in WordPress theme [closed]
- How to increase script execution time at my server
- History of page, interval of years
- How to add wordpress plugins in along with my standalone theme
- Display Powerpress media url