Setting up theme logo with custom size in functions.php :
function theme_prefix_setup() {
add_theme_support( 'custom-logo', array(
'height' => 100,
'width' => 400,
'flex-width' => true,
)
);
}
add_action( 'after_setup_theme', 'theme_prefix_setup' );
Output custom logo:
function theme_prefix_the_custom_logo() {
if ( function_exists( 'the_custom_logo' ) ) {
the_custom_logo();
}
}
Related Posts:
- Remove Site Logo from Homepage in Twenty Twentyone
- Inserting header logo in the bootstrap theme
- How to load google font only if custom logo is not uploaded
- Site logo is not clickable
- Need ‘logo page’ before wordpress page!
- Boldy Theme – Tweak PHP for 2nd Logo?
- different logo for home page and another logo for others page
- My WordPress doesn’t have the site logo feature? [closed]
- Logo is showing on small screen but not on screen size above 720px
- How do I make my sites logo smaller? [closed]
- theme logo setting to template file
- Load different logo on mobile
- How to make is so the site logo can be changed easily without using the customizer?
- How to add dynamiclly logo in wordpress theme?
- Trouble Adding New Logo [closed]
- WordPress logo wont display on Avada theme after moving wordpress to new directory
- Adding a logo in html5 blank template
- Remove the logo on specific post [closed]
- Multiple image logo for theme
- How to remove the WordPress logo from login and register page?
- How do I handle the “WP_Customize_Cropped_Image_Control” callback?
- Change logo url link
- Replace admin bar logo
- Changing Login Logo
- WordPress login page logo customization
- Display a default image for custom-logo
- Changing itemprop from logo to image on custom logo?
- Change logo on each page of University Hub theme [closed]
- Custom logo sizes for multiple logos
- Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
- How to remove admin bar logo in WordPress using plugin
- No Appearance –> Header menu
- WordPress logo upload option in theme panel
- Remove link around logo
- How to add an RSS logo to my blogs header?
- Add more then one site logo – custom-logo theme support
- WordPress navbar with logo in middle [closed]
- Changing custom logo link
- Theme Options Page – User Updates Logo
- How can I use a logo in the header?
- display dynamic WP Site logo on wp-admin using CSS
- Get Custom Logo Alt Text
- How to change logo url [closed]
- Is there a way of registering a default logo image for custom-logo?
- I want to hide header in the static homepage that I am working on [closed]
- Enable custom logo upload if logo is not in header
- Can’t resize logo in responsive theme?
- Three Questions with Twenty Eleven theme
- How to deal with logo color on dark mode?
- How to set the WordPress logo programmatically with PHP
- Need print logo without any ID & class
- Function has_custom_logo when used in Customizer
- how to add custom logo to my template
- Provide logo in theme
- Unable to add logo or header [closed]
- How to unpixelate logo?
- Change homepage’s logo link [duplicate]
- How to properly set custom logo size?
- How to change the link on the logo at the menu?
- WordPress theme logo handling (Trying to use GIF as logo)
- Convert multiple logos into the_custom_logo
- How can I set the SRC URL of the custom logo image?
- How to change logo by category
- get_header_image() causes “Prioritize visible content” issue in Page Speed Insights
- How do I add a logo to my website?
- Dynamic logo/banner depending on affiliate link
- How to change the link of the wordpress logo in the admin bar?
- How to add image on top of header logo in child theme?
- On home page remove link from logo
- Twenty Ten Theme: Replace the Logo by a picture without moving the code
- How to display custom logo on WordPress login page
- Changing header logo href for the checkout page
- Change logo url based on WP user role
- Adding a second logo next to the main one in header
- Logo custom width not implementing
- Logo Keeps Changing to the Default for Transparent Settings
- Exiting Customizer alert
- How to add site logo to wordpress displayed on the top left of the site name on the chrome tab or any other web browser? [closed]
- how to remove logo image hyperlink for wordpress
- How do I move my logo from the center to left (Pixgraphy theme)
- Alt header logo and link for specific pages
- Twenty Fourteen: Shrinking header while scrolling down
- Multiple logo’s in wordpress menu
- How to Take Logo Out of Navigation Menu? [closed]
- Change logo depending on domain
- Help! Need a different logo on my main page from my other pages
- Conditional Site Logo(Category Based)
- Site Icon upload and display in a theme
- How do you find the logo code on theme file or where can I find the header theme file?
- Get dimensions of logo
- How to have a specific image show up for everyone who comments?
- Making a 1140px wide header logo in the twenty-ten theme?
- How can I add a google play badge to my header and footer?
- How to wrap image logo in Homepage with H1 tag
- How to include a custom thumbnail with my WordPress plugin?
- Custom logo manage by customizer and theme options
- How do i add logo in wordpress studiopress (glam theme)?
- How to add Company Logo to Chosen Theme
- Why i cant change my alignment?
- I need to change the hyperlink attached to the logo on the mobile menu