Mailchimp newsletter signup
-
Hi Laytheme Team and forum
I'm working on a website (https://jonasgeorgchristensen.net/) using Mailchimp's newsletter subscription feature.
The feauture works fine, but I have a simple minor problem of how to place this feature at the right place on the side.
Right now, as seen on https://jonasgeorgchristensen.net/, I have plenty of other problems since I updated to the newest lay-plugins. But my question now is:
How do I make my subscription feature (button, text, and box) only appear at the about (https://jonasgeorgchristensen.net/about) page, and not on the rest of the website?
Hope to be helped c^8)
Thank you for your time!
-
@TSJ said in Mailchimp newsletter signup:
Hey @TSJ,
you can easily integrate you Mailchimp via html only on one page, e.g. your about site. In your gridder view just go to "+more > +html" and paste your html here. You'll find the code you need under "embedded form" at Mailchimp. Copy, paste, done.
Hope that helps!
Best
Christian -
@chris-vuko said in Mailchimp newsletter signup:
embedded form
Hi Christian
Thank you for your help!
Of course it worked. I guess I forgot the basics of this theme... (or maybe I'm just too much of a beginner in this field haha)I have one more problem in that case though:
My styling of the feature was working before, when I had the Mailchimp code placed in the custom CSS & HTML section, but now since I placed it on my about page, It doesn't work.
Do you have any suggestions on how to style the feature, so both the text, button and box is visible?
-
@TSJ
I wrote this CSS (look below) but it doesn't quite work on https://jonasgeorgchristensen.net/about:mc-field-group !important { font-family: neue-haas-grotesk-display, sans-serif; font-size: 85%; font-weight: 500; letter-spacing: 0.01em; position: absolute; right: 8.33%; top:8.1%; } input button !important { font-family: neue-haas-grotesk-display, sans-serif; font-size: 85%; font-weight: 500; letter-spacing: 0.01em; background-color: white; position: absolute; right: 1.5%; top:8%; }
-
Hey @TSJ!
Great that it worked out!
Maybe mailchimp uses different classes for the different embedded options. So maybe therefor you address the wrong classes. Also try to place the "!important" tag behind your stylings e.g.
.mc-field-group { font-family: neue-haas-grotesk-display !important; }
I can also send you a code snippet via DM that I used recently. Maybe it's useful for you!
Best
Christian -
@chris-vuko Thanks for the answer!
As i wrote earlier:
"My styling of the feature was working before, when I had the Mailchimp code placed in the custom CSS & HTML section, but now since I placed it on my about page, It doesn't work."
So it should be the same classes as used before. I am thinking that my code is not "overwriting" or "overruling" the one of laytheme and my about page.
Can that be a possibility and if so, is there another way to "overrule"?I tried moving the !important tag, and place it after each position, but still no result:
mc-field-group { font-family: sans-serif; font-size: 85%; font-weight: 500; letter-spacing: 0.01em; position: absolute !important; right: 8.33% !important; top:8.1% !important; } input button { font-family: sans-serif; font-size: 85%; font-weight: 500; letter-spacing: 0.01em; background-color: white; position: absolute !important; right: 1.5% !important; top:8% !important; }
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it