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

How to add image on top of header logo in child theme?

You have done the most of it, just that you haven’t realized it yet. If you are using a child theme then you can copy and paste the header.php from the main theme into the child theme folder and make the exact same changes you have made now to keep the icon above the logo.

Now the header.php in child theme will load instead of the main theme’s.

In doing so the changes remain preserved even if the main theme is upgraded/updated.

Files inside the child theme remain preserved on parent theme update

Another way is to find suitable hooks from the header.php file and code it in the child theme’s functions.php file.

Hope it helps!

Related Posts:

  1. Add more then one site logo – custom-logo theme support
  2. Changing Header scroll height for Twenty Seventeen theme on ALL pages
  3. How Change WordPress header image from admin menu
  4. How to get the Page featured image, not the Post featured image
  5. get_header_image() causes “Prioritize visible content” issue in Page Speed Insights
  6. twenty thirteen header size
  7. Change header image with editor profile
  8. Header banner link is forwarding to dev. subdomain, how do I change this?
  9. How to set a header image?
  10. Exiting Customizer alert
  11. Restoring WordPress Header Image
  12. header image sizing in twenty seventeen theme
  13. Image zoom vs cut in Twenty Seventeen header image
  14. Get Two Sizes of Header Image
  15. header .png doesn’t upgrade
  16. WordPress twenty-twenty: retina logo plus site title?
  17. How to add CSS class to custom logo?
  18. How do I change the header image height in Twenty Seventeen?
  19. How to insert a logo in the header?
  20. Custom ID for certain menu item?
  21. Multiple image logo for theme
  22. How to remove the WordPress logo from login and register page?
  23. How to change get_custom_logo() url?
  24. Optimal approach for replacing the 8 header images in a child theme?
  25. What to do with unattached logos and header uploaded via native wordpress uploader?
  26. How do I handle the “WP_Customize_Cropped_Image_Control” callback?
  27. Change logo url link
  28. “There has been an error cropping your image” when cropping image
  29. How do I enable the customize theme page to accept svg’s?
  30. Replace admin bar logo
  31. Featured Image Inherited from Parent Page
  32. Use a higher than 230px logo image with 2013 theme
  33. What flex-width/height does?
  34. Display different header images based on current page
  35. Changing Login Logo
  36. How to remove header images from all pages except the home page? skeleton theme
  37. WordPress login page logo customization
  38. Display a default image for custom-logo
  39. Different custom header image on different page
  40. Changing itemprop from logo to image on custom logo?
  41. Change logo on each page of University Hub theme [closed]
  42. Custom logo sizes for multiple logos
  43. How can I set a different specific header image on each page?
  44. Change header image loaded by jQuery to use HTTPS
  45. Adding an image slider in the header of my site
  46. Remove Site Logo from Homepage in Twenty Twentyone
  47. Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
  48. How to remove admin bar logo in WordPress using plugin
  49. No Appearance –> Header menu
  50. WordPress logo upload option in theme panel
  51. Remove link around logo
  52. Remove an uploaded header image
  53. How to add an RSS logo to my blogs header?
  54. WordPress navbar with logo in middle [closed]
  55. Inserting header logo in the bootstrap theme
  56. Want to make header and footer CMS driven sothat Editors can modify its content from wordpress admin section
  57. Changing custom logo link
  58. How to load google font only if custom logo is not uploaded
  59. From where the header-text can be changed in WordPress custom header?
  60. Theme Options Page – User Updates Logo
  61. How would I go about adding custom header images per category?
  62. How can I use a logo in the header?
  63. Howto keep header image when changing theme
  64. Getting $curauth->ID to work inside a shortcode
  65. display dynamic WP Site logo on wp-admin using CSS
  66. Get Custom Logo Alt Text
  67. How to change logo url [closed]
  68. Is there a way of registering a default logo image for custom-logo?
  69. I want to hide header in the static homepage that I am working on [closed]
  70. Enable custom logo upload if logo is not in header
  71. Can’t resize logo in responsive theme?
  72. Getting the ID of header image, even when set to random
  73. Resize header image
  74. Changing Header Image Every N Minutes/Seconds
  75. Site logo is not clickable
  76. Three Questions with Twenty Eleven theme
  77. Need ‘logo page’ before wordpress page!
  78. Boldy Theme – Tweak PHP for 2nd Logo?
  79. How to deal with logo color on dark mode?
  80. different logo for home page and another logo for others page
  81. How to set the WordPress logo programmatically with PHP
  82. My WordPress doesn’t have the site logo feature? [closed]
  83. Header background image just stopped working
  84. header_image() with CSS
  85. Set a featured image as a replacement to the header image
  86. Is it possible to take over a WordPress site if the old administrator is MIA?
  87. Need print logo without any ID & class
  88. Function has_custom_logo when used in Customizer
  89. header_image not returning header image url
  90. Multiple post image, echo url (path of image)
  91. Different header for each page in child theme of twenty thirteen
  92. Change a Page’s Header Image
  93. how to add custom logo to my template
  94. One post out of more than twenty shows odd picture (from post) in the header
  95. Rotate images in header based on date
  96. How do I provide for multiple crops of the same image in a theme?
  97. header_image not working after site copy
  98. Provide logo in theme
  99. Unable to add logo or header [closed]
  100. Change position of header image with default 2019 theme
Categories header-image Tags header-image, logo
How to remove the images from “Uploaded to this post”?
Displaying information from custom field on custom post type

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