How can I center product title and price on Debut Theme landing page?

Solved

How can I center product title and price on Debut Theme landing page?

jay91
Tourist
6 0 1

I am trying to center the Product Title and Price on my landing page in the "featured collection" section. I was able to center the Title of the product in theme.css but cannot get the price to move as well. I would like to center the title and price on my landing page ONLY and keep the individual product pages aligned to the left. Can someone help me out with this?

Accepted Solutions (4)
KetanKumar
Shopify Partner
37598 3668 12156

This is an accepted solution.

@jay91 

try this code

1. Go to Online Store->Theme->Edit code
2. Asset->/theme.css ->paste below code at the bottom of the file.

.product-card {text-align: center;}

After code view

KetanKumar_0-1654065441471.png

 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing

View solution in original post

MarinaPetrovic
Shopify Partner
559 124 193

This is an accepted solution.

Hi @jay91  (to answer your DM), open theme.css, and find this element:

.price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
    margin-bottom: 0;
}

 

Change it with this:

.price {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
}

 

Title part, find this element:

.product-single__title {
    margin-bottom: 0.5rem;
}

And change it with this:

.product-single__title {
    margin-bottom: 0.5rem;
    text-align:center;
}



M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution

View solution in original post

MarinaPetrovic
Shopify Partner
559 124 193

This is an accepted solution.

Glad it worked 🙂 
Look for this element:

.product__policies {
    margin: 0.4rem 0 1rem 0;
    font-size: calc(((var(--font-size-base) - 1) / (var(--font-size-base))) * 1em);
}

 

Change it with:

.product__policies {
    margin: 0.4rem 0 1rem 0;
    font-size: calc(((var(--font-size-base) - 1) / (var(--font-size-base))) * 1em);
    text-align:center;
}
M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution

View solution in original post

MarinaPetrovic
Shopify Partner
559 124 193

This is an accepted solution.

@jay91  find this element:

.product-single__thumbnails {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    margin-left: -9px;
    margin-right: -9px;
}

 

And change it with:

.product-single__thumbnails {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    margin-left: -9px;
    margin-right: -9px;
    justify-content: center;
}
M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution

View solution in original post

Replies 14 (14)

LitExtension
Shopify Partner
4915 1005 1183

Hi @jay91,

Go to Assets > theme.css and paste this at the bottom of the file:

.product-card {
    text-align: center !important;
}
.product-card .price {
    align-items: center !important;
}

Hope it helps!

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Contact us:
- Email: contact@litextension.com
jay91
Tourist
6 0 1

Unfortunately, that didn't work. It remained the same as before where the Product Title is centered while the Product Price under it is aligned to the left.

LitExtension
Shopify Partner
4915 1005 1183

Hi @jay91,

Please send your site and if your site is password protected, please send me the password. I will check it.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Contact us:
- Email: contact@litextension.com
KetanKumar
Shopify Partner
37598 3668 12156

This is an accepted solution.

@jay91 

try this code

1. Go to Online Store->Theme->Edit code
2. Asset->/theme.css ->paste below code at the bottom of the file.

.product-card {text-align: center;}

After code view

KetanKumar_0-1654065441471.png

 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
MarinaPetrovic
Shopify Partner
559 124 193

This is an accepted solution.

Hi @jay91  (to answer your DM), open theme.css, and find this element:

.price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
    margin-bottom: 0;
}

 

Change it with this:

.price {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
}

 

Title part, find this element:

.product-single__title {
    margin-bottom: 0.5rem;
}

And change it with this:

.product-single__title {
    margin-bottom: 0.5rem;
    text-align:center;
}



M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
jay91
Tourist
6 0 1

Thank you! That worked perfectly. I also need to center the "Shipping Calculated At Checkout" under the title and price. How can I center that as well?

MarinaPetrovic
Shopify Partner
559 124 193

This is an accepted solution.

Glad it worked 🙂 
Look for this element:

.product__policies {
    margin: 0.4rem 0 1rem 0;
    font-size: calc(((var(--font-size-base) - 1) / (var(--font-size-base))) * 1em);
}

 

Change it with:

.product__policies {
    margin: 0.4rem 0 1rem 0;
    font-size: calc(((var(--font-size-base) - 1) / (var(--font-size-base))) * 1em);
    text-align:center;
}
M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
jay91
Tourist
6 0 1

I also need two more edits made if possible.

 

1. I need to center the Shop Pay / Affirm Message above the add to cart button.

2. I would like to change my products with variants from a drop down to a checkbox

 

Let me know if you can help

MarinaPetrovic
Shopify Partner
559 124 193

1. add this:

 

.shopify-installments{
text-align:center;
}

 

M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
jay91
Tourist
6 0 1

Unfortunately that didn't work. I tried to add it to the theme.css file and the installments message remained aligned to the left

MarinaPetrovic
Shopify Partner
559 124 193

Try adding 

.shopify-installments{
text-align:center!important;
}
M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
jay91
Tourist
6 0 1

That also did not work. Maybe there is something I can edit besides shopify-installments?

MarinaPetrovic
Shopify Partner
559 124 193

@jay91  Find this element:

.product-form__item label {
    display: block;
}

And change it to this:

.product-form__item label {
    display: block;
    text-align: left;
}

 

And add this:

.product-single__meta{
text-align:center;
}


Screenshot 2022-06-11 at 19.45.39.png

M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
MarinaPetrovic
Shopify Partner
559 124 193

This is an accepted solution.

@jay91  find this element:

.product-single__thumbnails {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    margin-left: -9px;
    margin-right: -9px;
}

 

And change it with:

.product-single__thumbnails {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    margin-left: -9px;
    margin-right: -9px;
    justify-content: center;
}
M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution