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?
- Optimal approach for replacing the 8 header images in a child theme?
- How do I handle the “WP_Customize_Cropped_Image_Control” callback?
- Replace admin bar logo
- Use a higher than 230px logo image with 2013 theme
- Changing Login Logo
- WordPress login page logo customization
- Different custom header image on different page
- 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?
- Adding an image slider in the header of my site
- WordPress logo upload option in theme panel
- 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?
- How can I use a logo in the header?
- Get Custom Logo Alt Text
- Can’t resize logo in responsive theme?
- Getting the ID of header image, even when set to random
- Changing Header Image Every N Minutes/Seconds
- Site logo is not clickable
- Three Questions with Twenty Eleven theme
- How to deal with logo color on dark mode?
- 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
- Function has_custom_logo when used in Customizer
- 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 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
- How to properly set custom logo size?
- Logo is showing on small screen but not on screen size above 720px
- How to change the link on the logo at the menu?
- Convert multiple logos into the_custom_logo
- How can I set the SRC URL of the custom logo image?
- How do I add a logo to my website?
- Insert Facebook button into header [closed]
- Banner appearing on Pages but not Posts; call it conditional confusion
- Replace header image on all other pages but home – URL issue
- Different header image ‘Home’ and Pages
- Dynamic logo/banner depending on affiliate link
- How to change the link of the wordpress logo in the admin bar?
- theme logo setting to template file
- Load different logo on mobile
- Is there a standard technique or API for getting the site header image?
- How to echo images Urls from a wordpress post, that are relally in the post
- Changing header logo href for the checkout page
- Change logo url based on WP user role
- Replace header with large image on home page only, using Genesis child theme
- How do I remove header/page-title image in farvis theme? [closed]
- Logo Keeps Changing to the Default for Transparent Settings
- 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 do I move my logo from the center to left (Pixgraphy theme)
- Alt header logo and link for specific pages
- How to overlay a webcomic plugin on top of a header image?
- Change the template of my Blog entries
- Multiple logo’s in wordpress menu
- WordPress Multisite header img src is lost from staging to production
- Automatically generate multiple image sizes for element
- Help! Need a different logo on my main page from my other pages
- How do you find the logo code on theme file or where can I find the header theme file?
- Header Logo Scaling
- How to have a specific image show up for everyone who comments?
- Add custom version to an image
- Making a 1140px wide header logo in the twenty-ten theme?
- 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)?
- Adding a logo in html5 blank template
- Remove the logo on specific post [closed]
- Why i cant change my alignment?
- How to get dimension of Logo and Crest
- website images getting corrupt automatically