Shopify themes, liquid, logos, and UX
Hello All,
I'm trying to move title of my product above images for mobile devices, on product pages.
Store: https://ruff-toys.com/
Theme used : Sense
Thank you 😄
Solved! Go to the solution
This is an accepted solution.
Hi @Mr_Pancake
To move the title of your product above the images for mobile devices on product pages in your Shopify store using the Sense theme, you will need to modify the theme's code. Please note that making changes to your theme's code requires some technical knowledge, and it's always recommended to create a backup of your theme before making any changes.
Here's a general guide to help you achieve this:
<h1 class="product-title">{{ product.title }}</h1>
<h1 id="dektopProductTitle" class="product-title">{{ product.title }}</h1>
then you can edit it to
To move the title above the images, copy the code below and paste it before the code that renders the product images.
<h1 id="mobileProductTitle" class="product-title">{{ product.title }}</h1>
then you can edit it to
Go to Online Store->Theme->Edit code.
Search file base.css
Paste the below code at the bottom of this file ⇒ save
@media(min-width:767px){
#dektopProductTitle{
display:block;
}
#mobileProductTitle{
display:none;
}
}
@media(max-width:767px){
#dektopProductTitle{
display:none;
}
#mobileProductTitle{
display:block;
}
}
Hope my solution works perfectly for you.
Cheers!
Oliver | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Make your Instagram Feed a Sales Generator with VIBE Shoppable Instagram Feed.
Hey @Mr_Pancake
To move the title of your product above the images for mobile devices on product pages in your Shopify store using the Sense theme, you will need to modify the theme's code. Please note that making changes to your theme's code requires some technical knowledge, and it's always recommended to create a backup of your theme before making any changes.
Here's a general guide to help you achieve this:
<h1 class="product-title">{{ product.title }}</h1>
To move the title above the images, cut the above code and paste it before the code that renders the product images.
Save the changes and preview your store to see if the title has moved above the images on mobile devices. Remember to test it on different mobile devices to ensure it looks as intended.
If you encounter any issues or need more specific instructions, it's recommended to consult the theme's documentation or reach out to the theme developer for further assistance.
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
That works good but this solution is for all devices. Any way I would be able to do it for ONLY MOBILE devices? This approach is affecting desktop as well, which I really don't want to.
This is an accepted solution.
Hi @Mr_Pancake
To move the title of your product above the images for mobile devices on product pages in your Shopify store using the Sense theme, you will need to modify the theme's code. Please note that making changes to your theme's code requires some technical knowledge, and it's always recommended to create a backup of your theme before making any changes.
Here's a general guide to help you achieve this:
<h1 class="product-title">{{ product.title }}</h1>
<h1 id="dektopProductTitle" class="product-title">{{ product.title }}</h1>
then you can edit it to
To move the title above the images, copy the code below and paste it before the code that renders the product images.
<h1 id="mobileProductTitle" class="product-title">{{ product.title }}</h1>
then you can edit it to
Go to Online Store->Theme->Edit code.
Search file base.css
Paste the below code at the bottom of this file ⇒ save
@media(min-width:767px){
#dektopProductTitle{
display:block;
}
#mobileProductTitle{
display:none;
}
}
@media(max-width:767px){
#dektopProductTitle{
display:none;
}
#mobileProductTitle{
display:block;
}
}
Hope my solution works perfectly for you.
Cheers!
Oliver | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Make your Instagram Feed a Sales Generator with VIBE Shoppable Instagram Feed.
Beautiful! Worked like a charm. Thank you 😄
The only thing I did was changed px sizes for last code, just to be consistent with my other codes. Hopefully that is alright haha
@media(min-width:750px){
#dektopProductTitle{
display:block;
}
#mobileProductTitle{
display:none;
}
}
@media(max-width:749px){
#dektopProductTitle{
display:none;
}
#mobileProductTitle{
display:block;
}
}
You are welcome. I'm glad when I can help you 😍
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Make your Instagram Feed a Sales Generator with VIBE Shoppable Instagram Feed.
You can do that by adding this CSS code at the bottom of your base.css file
@media only screen and (max-width: 749px) {
.product__media-wrapper { margin-top: 100px; }
.prod { position: relative; }
.product__title { postion: absolute; top: 0px; }
}
- Is it helpful? Like, or Accept my solution or Buy Me a Coffee!
- Ryviu - Product Reviews app, Collect consumer feedback and import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart.
- Enjoy 3 months of Shopify for $1/month. Sign up now
User | RANK |
---|---|
159 | |
138 | |
74 | |
69 | |
58 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023