What's your biggest current challenge? Have your say in Community Polls along the right column.

How To Center Product Title And Price On Product Page

Solved

How To Center Product Title And Price On Product Page

martujv
Trailblazer
172 2 38

Hello!

 

How can I center the product title and the price on the product page? (Both in mobile and desktop versions)

 

My theme is stiletto, my web is https://winnerofficial.com/collections/ss2024/products/product-15-jacket and my password is y21

 

Right now they are on the left as you can see in these photos:

 

Mobile:

IMG_4929.jpg

 

Desktop:

Captura de pantalla 2024-03-24 a las 22.08.35.png

Accepted Solutions (2)

PageFly-Noah
Shopify Partner
1317 233 277

This is an accepted solution.

This is Noah from PageFly - Shopify Page Builder App

 

To make center Title and price you can follow code here:

Step 1: Online Stores > Themes > Edit code

Step 2: Choose file theme.liquid
Step 3: Add code above the tag </head>

 

<style>
   .product .product__title{
    text-align: center !important;
    }
   .product .product__price-and-ratings{
       display: flex !important;
       justify-content: center !important;
   }
<style>

 

Hope my solution will help you resolve the issue.

 

Best regards,

Noah | 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.

View solution in original post

PageFly-Noah
Shopify Partner
1317 233 277

This is an accepted solution.

Iam so sorry, to make code work , you need add </style>  intead for <style> the end. Thank you so much.

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.

View solution in original post

Replies 4 (4)

PageFly-Noah
Shopify Partner
1317 233 277

This is an accepted solution.

This is Noah from PageFly - Shopify Page Builder App

 

To make center Title and price you can follow code here:

Step 1: Online Stores > Themes > Edit code

Step 2: Choose file theme.liquid
Step 3: Add code above the tag </head>

 

<style>
   .product .product__title{
    text-align: center !important;
    }
   .product .product__price-and-ratings{
       display: flex !important;
       justify-content: center !important;
   }
<style>

 

Hope my solution will help you resolve the issue.

 

Best regards,

Noah | 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.

PageFly-Noah
Shopify Partner
1317 233 277

This is an accepted solution.

Iam so sorry, to make code work , you need add </style>  intead for <style> the end. Thank you so much.

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.

martujv
Trailblazer
172 2 38

Thank you! It worked! Have a nice day

PageFly-Noah
Shopify Partner
1317 233 277

Thank you. Have a nice day !

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.