It’s possible to modify the size of the custom logo with:
// Modify the custom logo size
add_filter( 'image_downsize', 'wpse241257_new_custom_logo_size', 10, 3 );
// Display the custom logo
the_custom_logo();
where our filter callback is defined as (PHP 5.4+):
function wpse241257_new_custom_logo_size( $downsize, $id, $size )
{
//-------------------
// Edit to your needs
$size = [80,80]; // Array of width and height
// $size="thumbnail"; // String value of the image size name
//-------------------
remove_filter( current_filter(), __FUNCTION__ ); // Important to avoid recursive loop
return image_downsize( $id, $size );
}
Related Posts:
- Changing itemprop from logo to image on custom logo?
- Need print logo without any ID & class
- How to properly set custom logo size?
- Convert multiple logos into the_custom_logo
- How can I set the SRC URL of the custom logo image?
- Help! Need a different logo on my main page from my other pages
- How to use the do_action () with parameter
- TinyMCE custom styles remove class when switching styles
- Extending the site search to include a single custom field
- Notify users whenever a new post is published based on their preference
- Remove Header and Footer in iframe
- Formatting post content to exclude gallery
- Why do I get undefined function export_wp()?
- How to remove the embed_footer?
- Redirect if not logged in?
- How to set global variables in template page?
- Setting featured image with function, 1 part not working
- Function to show only first instance of shortcode
- Comments to only be seen by their author
- Using the child theme functions.php to change the customizer.php on parent theme
- Can’t Update function.php after writing short code
- How to get last updated row or ID in wordpress
- Best Practice for Syncing Local Development With Staging Development [closed]
- How to use max and min values of custom fields
- Still relevant method of embedding images in WP Theme in 2018
- How can I create a page with a specific URL?
- When using wp_enqueue_script(); in a theme why don’t we use add_action?
- How does this function get the id of the most recent post?
- Batch update menu_order attribute alphabetically
- How to create function from code?
- How to use Internationalized human_time_diff() function in Chinese?
- post to subcategory and parent in wp_insert_post
- Ajax not working properly
- create shortcode to list users with specific meta key value
- How to add ‘data-caption’ inside an anchor tag
- Execute a ultimate member action when user role is updated
- Search filter by Post title OR Meta Title Value [duplicate]
- Why is functions.php file in child not initializing and over-writing parent?
- Use third party Library in wordpress
- Creating new blog on multisite programatically without hacks?
- Allowing users to view private posts (pending approval)
- Filtering out the #more anchor link that gets produced by
- file_get_contents – failed to open stream
- Exclude from the query posts with meta_key and meta_value
- How to add custom JavaScript in functions?
- wp_nonce_field is breaking form for reasons unknown
- srcset and custom field get_post_meta and wp_get_attachment_url
- hide shortcode using hooks
- Adding code using functions.php in child theme
- Extending a custom framework built into WordPress to automatically turn the ‘Search Engine Visibility’ setting ON / OFF, dependant on environment
- Page get parameter doesn’t work with is_single() function
- Filter to wp_list_authors
- Contact Form 7 If Condition
- Javascript not loading after the document ready
- Need to convert image url to a Base_64 data url with wordpress function..
- Add Adsense code between job listings – wp job manager plugin
- How can I change the size of the text in Word Press
- Using depth=n in wp_list_pages
- How do I display a date correctly that is stored in the database as a backwards 8 digit number from Advanced Custom Fields? [closed]
- Modify shortcode to work with custom post types
- How to hightlight all ancestor menu items of a child page NOT displayed in menu
- shorthand syntax for custom fields
- Show admin page, only if function is being used
- Get users with different roles and call function on each of them (user_meta)
- Fatal error: allowed memory size when after using enqueue_script
- Show errormessages on wrong username/password on custom loginform?
- How to apply the ‘current_page_item’ class to an archive page in `wp_list_pages()`?
- functions.php pharse error on complete new install
- If has action not working as expected
- Update wp_postmeta table based on 2 keys
- Best practice to call a function from a button-link?
- Disable wordpress update notification
- Class parameter in get_avatar args doesn’t get added to output
- How to customize archive widget only for cpt?
- some profile informations like youtube link doesnt seem
- Help using ShortCodes to style whole chunks of the post
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs
- How to modify or override a core function (wp_star_rating)
- locking content with overlay/pop up ads
- How to use `foreach()` in ajax call
- Is there is a way to check daily first login?
- delete_user_meta for user in spesific group
- Pagination not working on my archive page for a custom post type
- Remove Featured Images from Posts Older Than a Certain Date
- Home/Static Page View for Visitors pages after that should be restricted
- functions.php filters not applied in AJAX call
- Settings in functions.php used by a plugin
- Mail function not working with user accounts
- Function not recognizing page id?
- Make WordPress search for only this tags or exclude certain tags from search [duplicate]
- Conditionally write open graph meta property in header
- Pull random comment from specific post, display on homepage with shortcode
- Adding result from PHP function into an input field
- Using array page name together with page id to deregister script
- Modifying Page-Links format
- Give a function a unique ID
- how to handle multiple forloop?
- PHP error in shortcode [closed]
- function to show youtube videos within excerpt – if condition and apply_filters
- sort by date in users