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:
- Add more then one site logo – custom-logo theme support
- Changing Header scroll height for Twenty Seventeen theme on ALL pages
- How Change WordPress header image from admin menu
- How to get the Page featured image, not the Post featured image
- get_header_image() causes “Prioritize visible content” issue in Page Speed Insights
- twenty thirteen header size
- Change header image with editor profile
- Header banner link is forwarding to dev. subdomain, how do I change this?
- How to set a header image?
- Exiting Customizer alert
- Restoring WordPress Header Image
- header image sizing in twenty seventeen theme
- Image zoom vs cut in Twenty Seventeen header image
- Get Two Sizes of Header Image
- header .png doesn’t upgrade
- WordPress twenty-twenty: retina logo plus site title?
- How to add CSS class to custom logo?
- How do I change the header image height in Twenty Seventeen?
- How to insert a logo in the header?
- Custom ID for certain menu item?
- Multiple image logo for theme
- How to remove the WordPress logo from login and register page?
- How to change get_custom_logo() url?
- Optimal approach for replacing the 8 header images in a child theme?
- What to do with unattached logos and header uploaded via native wordpress uploader?
- How do I handle the “WP_Customize_Cropped_Image_Control” callback?
- Change logo url link
- “There has been an error cropping your image” when cropping image
- How do I enable the customize theme page to accept svg’s?
- Replace admin bar logo
- Featured Image Inherited from Parent Page
- Use a higher than 230px logo image with 2013 theme
- What flex-width/height does?
- Display different header images based on current page
- Changing Login Logo
- How to remove header images from all pages except the home page? skeleton theme
- WordPress login page logo customization
- Display a default image for custom-logo
- Different custom header image on different page
- 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
- How can I set a different specific header image on each page?
- Change header image loaded by jQuery to use HTTPS
- Adding an image slider in the header of my site
- Remove Site Logo from Homepage in Twenty Twentyone
- 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
- Remove an uploaded header image
- How to add an RSS logo to my blogs header?
- WordPress navbar with logo in middle [closed]
- Inserting header logo in the bootstrap theme
- Want to make header and footer CMS driven sothat Editors can modify its content from wordpress admin section
- Changing custom logo link
- How to load google font only if custom logo is not uploaded
- From where the header-text can be changed in WordPress custom header?
- Theme Options Page – User Updates Logo
- How would I go about adding custom header images per category?
- How can I use a logo in the header?
- Howto keep header image when changing theme
- Getting $curauth->ID to work inside a shortcode
- 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?
- Getting the ID of header image, even when set to random
- Resize header image
- Changing Header Image Every N Minutes/Seconds
- Site logo is not clickable
- Three Questions with Twenty Eleven theme
- Need ‘logo page’ before wordpress page!
- Boldy Theme – Tweak PHP for 2nd Logo?
- How to deal with logo color on dark mode?
- different logo for home page and another logo for others page
- How to set the WordPress logo programmatically with PHP
- My WordPress doesn’t have the site logo feature? [closed]
- Header background image just stopped working
- header_image() with CSS
- Set a featured image as a replacement to the header image
- Is it possible to take over a WordPress site if the old administrator is MIA?
- Need print logo without any ID & class
- Function has_custom_logo when used in Customizer
- header_image not returning header image url
- Multiple post image, echo url (path of image)
- Different header for each page in child theme of twenty thirteen
- Change a Page’s Header Image
- how to add custom logo to my template
- One post out of more than twenty shows odd picture (from post) in the header
- Rotate images in header based on date
- How do I provide for multiple crops of the same image in a theme?
- header_image not working after site copy
- Provide logo in theme
- Unable to add logo or header [closed]
- Change position of header image with default 2019 theme