Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hey guys, how would I be able to align the price next to the product title on the product page? It needs to be for mobile only.
Here's an example:
Hi @loubacc, Can you kindly share your store link (with the password protected, if any) with us? We will check it and suggest you a solution if possible.
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Hello! The link is trevillo.com. There is no password on it. Just 1 product where I want the price next to the title on the product page.
Hi @loubacc,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style>
span.price-item.price-item--regular {
position: absolute !important;
top: 15px;
right: 0px;
}
</style>
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Hi @loubacc,
Could you kindly provide us with your store URL and, if applicable, the password, so that our team can offer you the necessary support?
For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase
Post purchase upsell, downsell offers to improve sales and AOV
Salemate Post Purchase Upsell
Hi @loubacc,
Here are the steps you can follow:
1, Navigate to Online Store > Themes > Edit Code.
2, Locate and open the base.css (or theme.css, custom.css) file.
3, Paste the code snippet provided below at the bottom of the file, then save your changes.
@media screen and (max-width: 749px) {
.product__info-container {
position: relative;
}
.price__container span.price-item {
position: absolute;
top: 15px;
right: 0;
}
.product__tax.caption {
position: absolute;
top: 55px;
right: 0;
}
.price.price--large.price--show-badge {
height: 0;
}
}
Here is the result
We hope this assists in resolving the issue.
If you find our solution helpful, kindly consider Liking and Marking it as Accepted. Thank you!
For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase
Post purchase upsell, downsell offers to improve sales and AOV
Salemate Post Purchase Upsell
Thankyou! this works! But is there a way to align the title and price on the same height?
Example:
Hi @loubacc,
You replace the code snippet earlier with this code
@media screen and (max-width: 749px) {
.product__info-container {
position: relative;
}
.price__container span.price-item {
position: absolute;
/* You can adjust this value to your preference */
top: 13px;
right: 0;
}
.product__tax.caption {
position: absolute;
top: 55px;
right: 0;
}
.price.price--large.price--show-badge {
height: 0;
}
}
Here is the result
For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase
Post purchase upsell, downsell offers to improve sales and AOV
Salemate Post Purchase Upsell
Thankyou! This is it. Works amazing!
I'm sorry, just noticed that the prices now also show on the collection/homepage in the product picture itself. This is not supposed to be like this.
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024