Articles of logo

WordPress logo upload option in theme panel

Hello every one i am facing one issue in adding logo option in my theme panel of wordpress i am using this code function logo_display() { ?> <input type=”file” name=”logo” /> <?php echo get_option(‘logo’); ?> <?php } function handle_logo_upload() { if(!empty($_FILES[“demo-file”][“tmp_name”])) { $urls = wp_handle_upload($_FILES[“logo”], array(‘test_form’ => FALSE)); $temp = $urls[“url”]; return $temp; } return […]

No Appearance –> Header menu

According to this page: There should be a header page under appearance. I added the theme support for custom logo but have got no header page under appearance. The docs make it sound like this page exists and I don’t have to add it myself. Anyone know whats going on?

How to remove admin bar logo in WordPress using plugin

I’m following the instructions from this page to remove the adminbar wordpress logo and cannot quite understand why this is not working in a plugin I have created. // Hide top left WordPress logo add_action( ‘admin_bar_menu’, ‘remove_wp_logo’, 999 ); function remove_wp_logo( $wp_admin_bar ) { $wp_admin_bar->remove_node( ‘wp-logo’ ); } Everything else in my plugin is working […]

How do I handle the “WP_Customize_Cropped_Image_Control” callback?

I want to make a logo manager in the Customizer, but how do I set different image sizes with the WP_Customize_Cropped_Image_Control class? Example from Make WordPress Core: $wp_customize->add_control( new WP_Customize_Cropped_Image_Control( $wp_customize, ‘cropped_image’, array( ‘section’ => ‘background_image’, ‘label’ => __( ‘Croppable Image’ ), ‘flex_width’ => true, // Allow any width, making the specified value recommended. False […]

Change logo on each page of University Hub theme

I’m using the University Hub theme and I searched a lot and didn’t found a solution. I want to change the main logo on each page of the site. I managed to change with CSS the header background color but for the logo it seems I need a custom solution for this theme, but […]

How to change get_custom_logo() url?

I need to change default WordPress get_custom_logo() generated url because I need to link to the main multi-site site instead of single site. Is there any filter to change this function?

Custom logo sizes for multiple logos

I am using add_theme_support(‘custom-logo’, array( // The logo will be displayed with the following sizes: ‘width’ => 200, ‘height’ => 200, )); to display a logo image in my sidebar. in functions.php I have set the size for the large logo: add_theme_support(‘custom-logo’, array( // The logo will be displayed with the following sizes: ‘width’ => […]

Changing itemprop from logo to image on custom logo?

I’m adding markups to my theme’s header, but the theme I’m using is calling the_custom_logo();, and by default it uses ‘logo’ as itemprop. Is there anyway to change this to image in the functions.php file? Thanks. This is the current calling function from the functions.php file. add_theme_support(‘custom-logo’);

How to insert a logo in the header?

I am pretty new in WordPress world (I came from Joomla) I am finding some difficulties to insert a logo into this WordPress test site: I want put my logo in the header of the website, instead the “EXAMPLE” text. Looking into the WordPress configuration panel I am not finding where I can upload […]

Custom ID for certain menu item?

I’m displaying WordPress menu using this function: wp_nav_menu( $args ); Menu is set in wp-admin/nav-menus.php. Can I somehow attach ID of my choice to one of the items? I want the menu to look like: [ Link 1 ] [ Link 2] [ LOGO (that is Link 3 also ] [ Link 4 ] [ […]