I am having problems on adding images on the header. i want to add an image similar to the design provided me. Can anyone teach me how to add it to CSS?
My website is https://myversatilehome.com/ using a DAWN theme
Thanks!
I am having problems on adding images on the header. i want to add an image similar to the design provided me. Can anyone teach me how to add it to CSS?
My website is https://myversatilehome.com/ using a DAWN theme
Thanks!
Hey @oninski21 ,
To add an image to the header of your Shopify store using the Dawn theme, you can follow these steps:
Shopify Admin >Navigate to Settings > Files.
Upload your image file there, and copy the URL after uploading.
Add the Image to the Header Section:
Online Store
Themes
Edit Code
Open the header.liquid file under the Sections folder.
Add the image code where you’d like it to appear in the header.. For example:
Style the Image Using CSS:
Open the base.css file in the Assets folder.
Add the following CSS:
.custom-header-image img {
width: 100%; /* Adjust width as needed */
height: auto; /* Maintain aspect ratio */
max-height: 100px; /* Adjust the height limit */
object-fit: cover; /* Ensures the image fits properly */
margin: 0 auto; /* Center the image */
}
Adjust the width, height, and other properties based on your design needs.
Let me know if you need additional guidance!
If I was able to help you, please don’t forget to Like and mark it as the Solution!
If you’re looking for expert help with customization or coding, I’d be delighted to support you. Please don’t hesitate to reach out via the email in my signature below—I’m here to help bring your vision to life!
Best Regard,
Rajat
Hello,
Thanks for the help, i tried adding the script and the image but It did not show on my page. btw, where will I add the link of the image?
off sitewide
July sale — 45% off at checkout, applied automatically. Valid for 60 minutes. One per customer.
Offer ends in