Hi there! I am having some trouble trying to center this page on my Shopify store. Would anyone have some input as to how to center align the mail form? This is currently what I am seeing but I would like it to be center to the page.
The link to the page is https://pekoproduce.com/pages/black-friday-early-access?_pos=1&_sid=f0aa5412b&_ss=r
Thank you!
1 Like
Hello @williamk0601 
You can paste this code snippet in your main theme CSS file (theme.css, or theme.css.liquid) and it should work
#mc_embed_signup {
margin: auto;
}
Hope that helps!
Hi @Williamk0601
This is PageFly - Advanced Page Builder. I would love to give you some recommendations
If you want to edit only this page, you can add my CSS to the theme.liquid file
{% if request.path= “/pages/black-friday-early-access” %}
#mc_embed_signup{margin:auto !important}
{% endif %}
Hope my solution works perfectly for you!
Best Regards;
PageFly
@williamk0601
oh sorry for that issue can you please try this code
- Go to Online Store->Theme->Edit code
- Asset->/theme.min.css ->paste below code at the bottom of the file.
#mc_embed_signup {margin: 0px auto !important;}
2 Likes
Please add below css code in bottom of assets/theme.min.css file
#mc_embed_signup {
margin: 0 auto;
}
Thank you.
Hello @williamk0601
Try this code: it will be helpful to you-
Go to the online Store>Theme>Edit Code>Assets>theme.min.css>Add code in this file.
#mc_embed_signup {
margin: 0 auto !important;
}
1 Like
Hello @williamk0601 !
You need to remove the width from CSS as mentioned in this screenshot: https://prnt.sc/v12EoujYQ0Dy
Then it will appear exactly as you need it.
Thank you very much for your assistance as well as everyone that contributed! The issue is now solved.
1 Like
@williamk0601
its my pleasure to help us
It took me ages to find this solution. Thanks so much!!
Well since you asked… I actually can’t figure out how to centre align my mailchimp subscribe button. You will see it at the bottom of my homepage here: https://www.divino.com.au
The custom CSS code will overwrite it as I’ve embedded the form with a custom liquid component. I just can’t find the CSS to make this work. Any ideas?!
@missjo13
.clear {
text-align: center;
}
Add this css at the bottom of Online Store->Theme->Edit code->Assets->theme.scss.liquid
It worked, thanks so much!!
@missjo13
If the solution is useful then give a like and accept it.
1 Like