How can I shift the product price to the top right on mobile?

Topic summary

A user seeks to reposition the product price to the top right corner on mobile devices only for their Shopify store.

Current Issue:

  • The price currently displays in its default location on mobile product pages
  • User wants this change to apply exclusively to mobile view

Proposed Solution:
A respondent provided CSS code to be added to the theme.css file:

  • Navigate to: Shopify Admin β†’ Online Store β†’ Themes β†’ Actions β†’ Edit Code
  • Locate the theme.css file under Assets
  • Add custom CSS using a media query targeting screens with minimum width of 767px
  • The code uses absolute positioning to move the .product-block .product-block--price element to the top right

Status:
One commenter noted the site link appears broken or inaccessible. The discussion remains open with no confirmation whether the CSS solution was implemented or resolved the issue.

Summarized with AI on November 23. AI used: claude-sonnet-4-5-20250929.

Hi,

im looking to move the product price to the top right on mobile only . my site is https://luxurymrkt.com/collections/y-3/products/y-3-classic-cotton-t-shirt

like this picture :down_arrow:

1 Like

@Luxurymrkt

oh sorry your site doesn’t work

Hello There,

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset >theme.css and paste this at the bottom of the file:
@media screen and (min-width: 767px){
	.product-block.product-block--price {
	    position: absolute;
	    top: 26px;
	    right: 0;
	}
}