Hi i want to update the mobile version of my product pages so that the Title, Sub-heading and product price elements would move on top of the product images.
Currently there are some elements that are made with third party apps, like the total reviews count and cost-saving element, i would sort those myself. But could you guys help me move the heading and sub-heading up? Thanks! Here is the product page: The Lowrider | Europe's Premium Body & Intimate Trimmer | MANSOME Europe
Have you like connected reviews with your Google reviews?
Also can you specify the use of an app for a basic functionality as that of cost saving? Does it help you in like order or inventory something that would make you to use an app for this?
If you’re using a standard Shopify theme (like Dawn), you can move the title, sub-heading and price above the images on mobile only with a small CSS tweak.
Go to: Online Store → Themes → Edit Code → base.css (or theme.css)
You can’t really do that with CSS alone, as entire product information part, inlcuding Title, Price, description, variant selectors are inside one element while media gallery is in another.
What I’d do:
Add a section above the main Product Info section, not sure what this theme has, but, say something like Text or Heading and use Product > Title as Dynamic source.
This section is to show Product Title, etc on mobile.
To hide it on desktop add to its “Custom CSS” setting code like this :
@media (min-width: 768px) {
{ display: none; } /* no selector -- Custom CSS will it apply to entire section*/
}
Then add a “Custom CSS” to main Product info section to hide main product title on mobile, like:
What if we change our approach and instead of moving the seperate elements up, we move the media gallery down? All the other elements I can manually move in theme editor.
Unfortunately, you can’t really do that, as Media Gallery is in one wrapper element and the rest of product info section blocks are all in another wrapper.
You’d need to seriously modify theme code for this, which I do not recommend.
Actually, you can use Sidekick to generate you a section to mirror the product price element.
I’ve tried this prompt:
Create a product template section that uses JavaScript mutation observer to detect and mirror the content of the product price element. The section should watch for changes to the price element and automatically update a mirrored display whenever the price changes.
Ah okay, since you’re using Roam, you shouldn’t edit theme.liquid for this. That file controls the overall layout, and even small mistakes there can cause save errors
Instead, check the main product section file (usually something like main-product.liquid or inside the Sections folder) The image and product info layout is controlled there
If you’re only trying to change the order on mobile it’s safer to add the CSS inside base.css / theme.css rather than editing theme.liquid.
What exact error is it showing when you try to save?