Shopify themes, liquid, logos, and UX
How can I reposition the product title above product image on mobile view in Dawn theme?
provide the link of your store
/* Reposition the h1 product title above the image on mobile */
@media (max-width: 767px) {
.product-title {
display: block;
margin-bottom: 10px; /* Add spacing as needed */
}
/* Make sure the image appears below the title */
.product-image {
order: 2;
}
.product-title {
order: 1; /* Ensure title is displayed first */
}
}
Hey Ahmed. I tried adding that to the theme.liquid page but nothing changed. Any other ideas? Thanks!
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
@media screen and (max-width: 767){
.product{
padding-top: 202px !important;
}
.product .product__title {
position: absolute;
top: -602px;
}
}
</style>
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Thanks for the assist. Unfortunately, it didn't seem to change anything. Any ideas?
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024