Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Custom logo sizes for multiple logos

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:

  1. Changing itemprop from logo to image on custom logo?
  2. Need print logo without any ID & class
  3. How to properly set custom logo size?
  4. Convert multiple logos into the_custom_logo
  5. How can I set the SRC URL of the custom logo image?
  6. Help! Need a different logo on my main page from my other pages
  7. Missing feature image link function
  8. What’s the difference between home_url() and site_url()
  9. Remove “Category:”, “Tag:”, “Author:” from the_archive_title
  10. get_template_directory_uri pointing to parent theme not child theme
  11. How to customize the_archive_title()?
  12. remove empty paragraphs from the_content?
  13. What is the “with_front” rewrite key?
  14. Why use if function_exists?
  15. How to override parent functions in child themes?
  16. wp_enqueue_script was called incorrectly
  17. Add multiple custom fields to the general settings page
  18. Ajax call always returns 0
  19. 400 bad request on admin-ajax.php only using wp_enqueue_scripts action hook
  20. How long does a deprecated function live in core?
  21. Solution to render Shortcodes in Admin Editor
  22. How to add a data attribute to a WordPress menu item
  23. What’s the difference between esc_html, esc_attr, esc_html_e, and so on?
  24. remove_action on after_setup_theme not working from child theme
  25. plugins_url vs plugin_dir_url
  26. Remove type attribute from script and style tags added by WordPress
  27. How to run a function every 5 minutes?
  28. Best way of passing PHP variable between partials?
  29. Upload Multiple Files With media_handle_upload
  30. How to display custom field in woocommerce orders in admin panel?
  31. Adding fields to the “Add New User” screen in the dashboard
  32. Issues with title-tag and document_title_parts
  33. How do I get the current edit page ID in the admin?
  34. How to check if a user exists by a given id
  35. Why isn’t is_page working when I put it in the functions.php file?
  36. Add tags to the section via functions.php
  37. Add image size if page template
  38. How to create a custom order status in woocommerce!
  39. Remove Actions/Filters added via Anonymous Functions
  40. Adding a second email address to a completed order in WooCommerce [closed]
  41. How to load parent_theme functions.php before child_theme?
  42. How to load scripts/styles specific for a page
  43. Programatically add options to “add new” custom field dropdown
  44. Is there any global functions.php file which works for any theme?
  45. Excluding iPad from wp_is_mobile
  46. When should you, and when should you not, use wp_list_pluck()?
  47. Get the ID of the page a menu item links to?
  48. Add container to nav_menu sub menu
  49. Difference between the_permalink() and get_permalink() function
  50. What’s the difference between WordPress random_int() and PHP built-in function random_int()?
  51. Child theme – Overriding ‘require_once’ in functions.php
  52. Link to user’s profile settings page?
  53. WordPress Enqueue for homepage only, functions.php, wp-framework
  54. get php variable from functions php and echo it in theme template files [closed]
  55. Get menu object from theme_location
  56. Is it ok to use a function to output the text domain name in a wordpress theme
  57. Displaying the number of updates available in the Admin area
  58. Trying to use add_action and do_action with parameters
  59. Use AJAX in shortcode
  60. Set JPEG compression for specific custom image sizes
  61. Can the new 4.8v text widget visual editor be removed?
  62. Prevent “main” WPMU site_url() being returned in functions
  63. Include files in child theme functions file
  64. Memorizing syntax
  65. Custom page with variables in url. Nice url with add_rewrite_rule
  66. Define page template in wp_insert_post
  67. Which WP functions do you need to use esc_html() or esc_url() on?
  68. Check if post is being published for the first time, or is an already published post being updated
  69. Display random categories on the front page (Finding and Editing Theme Functions)
  70. How to redirect to post if search results only returns one post
  71. remove links from images using functions.php
  72. Order posts (across the whole site) by metadata date
  73. Use author author display name in permalink structure for pages and posts
  74. Is it possible to rename a post format?
  75. Why does WordPress have private functions?
  76. Import WordPress XML File from Within Functions.php
  77. What is this code in my theme’s functions.php? if (isset($_REQUEST[‘action’]) && isset($_REQUEST[‘password’])
  78. Get list of years when posts have been published
  79. Add custom template page programmatically
  80. What is the correct MIME type for PSD (Photoshop)
  81. Redeclare a function in a child theme
  82. What is the difference between get_page_link and get_permalink functions?
  83. What’s the difference between admin_url() and get_admin_url() functions?
  84. Define custom Page Template without its own .php file
  85. Possible to search by author name with default WordPress search function?
  86. Does hooking into the same action multiple times drain memory?
  87. How to use the do_action () with parameter
  88. Add class to menu items of one specific menu (nav_menu_css_class)
  89. Perform an action when post is updated/published
  90. Advantages and disadvantages of using automatic-feed-links
  91. Include PHP file in Content using [shortcode]
  92. Sort posts by Date (DESC) and by Title (ASC)
  93. Remove a menu item created by a plugin
  94. paginate_links() don’t properly work in search.php?
  95. How to show product SKU on product page
  96. How to influence the information displayed on widget inside wp-admin
  97. Issue with wp_get_attachment_image() and SVG file type
  98. How to change the markup WordPress inserts for post images
  99. Remove Container Element From wp_nav_menu() Markup
  100. Automatic Logout on from another active session
Categories functions Tags functions, logo
How can I stop a function from encoding an entity?
Create user with author role but no login information

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress