Mailchimp pop up
-
Hello there!
I'm adding a pop up to a website for a client (that, unfortunately wants it everywhere). I did it with Mailchimp, I was wondering if-
is there's any chance to place it in the homepage AND in the get in touch page?
The mailchimp pop up code is this.. but if I copy and past it in the page as html it wont' work, it only work in the custom head html, but I'm not sure how to say trigger it also on the contact page.. -
Do you think is possible to avoid it only shows once (mailchimp pop up are made for clearing the cache)? What would you reccomend for this?
Thank you so much in advance for any help to one of these issues.
Here the sample of pop up
www.theamikkelsen.com -
-
Dear @robsdonatini
you can make it easy:Paste it into the html code if this works well. And then just hide the box with CUSTOM CSS on the pages where you don't want it.
Best!
Marius
-
@robsdonatini said in Mailchimp pop up:
Thank you so much in advance for any help to one of these issues.
Thanks, but unluckly the pop up code is already coded with the cookie cleaning. I was wondering if there's any to avoid this, but I guess is something with js to block this feature inside the pop up.
thanks anyway
-
Dear @robsdonatini
what do you use the cookie cleaning thing for?Best!
Marius
PS: You could code the popup very easily.
-
@mariusjopen said in Mailchimp pop up:
what do you use the cookie cleaning thing for?
Dear Marjus
I needed to clean the cookie to always have the pop up visible!
R -
Ah ok,
I understand now.
LayTheme is coded as a single Javascript website. So the head content will load only once in the beginning. And not on every refresh.
When you put the popup in the head, it will get called only once.In this case I would code the popup with jQuery myself. That is very simple. Will take a code probably 30 minutes.
Best!
Marius
-
@mariusjopen said in Mailchimp pop up:
In this case I would code the popup with jQuery myself. That is very simple. Will take a code probably 30 minutes.
Ehi thanks, but do you know if coding a pop up would still be possible to rely on mailchimp completely? So that the signup form allow to subscribe directly without passing to the second page of mailchimp and re-enter the address? basically working as this pop up here
My question is.. do you think that it would be possible to make the following default script of mailchimp for pop up
<script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/unique-methods/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">window.dojoRequire(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us6.list-manage.com","uuid":"87ff200a38e7e7963238672d6","lid":"6e1a1ab654","uniqueMethods":true}) })</script>
clear the cookie with this
function delete_cookie( name ) {
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
}this would probably affects gdpr cookie as well?
thanks
r
-
Dear @robsdonatini
maybe I think too simple. But what about this solution:- Make a div and place the Mailchimp field in it. That people can enter their email and press confirm.
- With CSS make it position fixed and position it where you want.
- Hide it with CSS
- Write a little jQuery which makes it visible on a specific event
IFOr this you don't need a cookie.
Best!
Marius
-
@mariusjopen said in Mailchimp pop up:
With CSS make it position fixed and position it where you want.
Dear Marius, it's what I did, thank you!
The mailchimp pop up was pretty hard to customize for cookies :)thanks for the help
roberta
-
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