How can I adjust mobile button size to match desktop on Palo Alto theme?

Solved

How can I adjust mobile button size to match desktop on Palo Alto theme?

GeorgeNebraska
Excursionist
23 0 3

Hi,

I am using the theme Palo Alto and am trying to change the size of mobile buttons to be similar to desktop ones. 

See here:

It is so much longer than on desktop?It is so much longer than on desktop?

This one is much smallerThis one is much smaller

 

Is there some code that will make the buttons on mobile devices the same as desktop where it adjusts to the amount of copy there?

 

Thanks in advance

Accepted Solution (1)
suyash1
Shopify Partner
10715 1323 1699

This is an accepted solution.

add this css to the end of your theme.scss file and we check

 

#shopify-section-1552545896050 .slider-cta .slider-btn{width: 200px; margin: 0 auto;}

Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.

View solution in original post

Replies 10 (10)

suyash1
Shopify Partner
10715 1323 1699

it will need custom css, can you share your site link please?

Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
GeorgeNebraska
Excursionist
23 0 3

pilates-with-amelia.myshopify.com

PW: whawtu

suyash1
Shopify Partner
10715 1323 1699

what theme developers have done is that button is set to take all space available when it comes to mobile and hence it looks bit bigger, and also it is set for auto width so that it adjusts as per text.

we can set its width but it may cause an issue if you change text in future, else for now it can work. do you want to try it?

Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
GeorgeNebraska
Excursionist
23 0 3

Hi,

I would like it set on auto-width so it adjusts to text. The mobile one seems like it is set up to take all space available.

If you can help me set mobile buttons to auto-width to adjust to text (same as desktop), that would be amazing.

Thanks.

G

suyash1
Shopify Partner
10715 1323 1699

This is an accepted solution.

add this css to the end of your theme.scss file and we check

 

#shopify-section-1552545896050 .slider-cta .slider-btn{width: 200px; margin: 0 auto;}

Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
GeorgeNebraska
Excursionist
23 0 3

Thanks so much for your support on this. It worked.

suyash1
Shopify Partner
10715 1323 1699

welcome, you can adjust number as per the text if in future you remove/add text

Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
lorenased
Visitor
1 0 0

Hi, I have the same problem and would like to have a smaller button on my homepage (mobile version) as well. What can I do?

 

Thanks for your help!

Kind regards, 
Lorena

suyash1
Shopify Partner
10715 1323 1699

@lorenased - we will need to adjust css for mobile view using media query, can you share your website link?  if you want to keep it private then can send via email below

Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
LisseStitch
New Member
15 0 0

Hey Suyash,
Can you please help me as well