Align button center and smaller to match the section - Dawn Theme

Solved

Align button center and smaller to match the section - Dawn Theme

Dekanten
Navigator
325 1 117

Hi

 

I would like to align this button and make more space around it, can that be done with a simple code to make this section cleaner and matching my theme?

 

Thanks in advance guys, you are a million. 😎

 

www.dekanten.no

 

See attached image:

 

Skjermbilde 2024-09-07 kl. 20.03.58.png

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
8446 2018 2478

This is an accepted solution.

Hi @Dekanten 

is this solved? i check on the mobile view this is on my end. 

Made4uoRibe_0-1725737882302.png

To fix it check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

@media only screen and (max-width: 749px){
.icon-block a.cta-button {
    width: auto;
}
}

 

And Save. 

result:

Made4uoRibe_1-1725738063392.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
8446 2018 2478

This is an accepted solution.

Hi @Dekanten 

is this solved? i check on the mobile view this is on my end. 

Made4uoRibe_0-1725737882302.png

To fix it check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

@media only screen and (max-width: 749px){
.icon-block a.cta-button {
    width: auto;
}
}

 

And Save. 

result:

Made4uoRibe_1-1725738063392.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Dekanten
Navigator
325 1 117

Hello and thank you for the support, i got a nice direct messsage with some help, but i need to make the button with smaller top and bottom. I want it to match my other buttons. Ideas will be open for the section. 🙂 Thank u 🙂

Made4uo-Ribe
Shopify Partner
8446 2018 2478

That is good then. This is an app section, so please be cautious when using too many apps, as it can slow down your website.

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Dekanten
Navigator
325 1 117

Thanks for the advice, as a pro maybe you will check out my page on the speed so i can remove things who slows down?

 

www.dekanten.no (Thank you for the advice)

Dekanten
Navigator
325 1 117

Thank you for the headsup with the mobile section, just tried to fix the desktop and its looked like hell on the mobile. Thank u my friend. 🙂