This topic has 11 replies, 3 voices, and was last updated 8 years, 4 months ago ago by Eva Kemp
Hello,
I’d like to use a popup code (form to subscribe to newletter) in my footer. The javascript code comes from a program called MailMaster, this is my newsletter sender application. I made the form and style in MailMaster, but the Subscribe button in the footer doesn’t appears the way I would like. MailMaster support says that the popup css (called from MailMaster) and my theme css are mixing, some of the theme css codes overwrites the original, so the button in the footer doesn’t appear correctly.
The code I inserted into a “Raw JS” object:
<link rel="stylesheet" href="https://salesautopilot.s3.amazonaws.com/newsletter/letter/c18697/formtemplates/main-kihzms8.css" type="text/css" media="screen" /><link type="text/css" rel="stylesheet" media="all" href="https://d1ursyhqs5x9h1.cloudfront.net/sw/css/iframe-popup1.1.css" />
<script type="text/javascript">
var listId = 43547;
var formId = 79312;
var popupWidth = 705;
var popupHeight = 600;
var openAfterMins = 120;
var openAfterSec = 5;
var randomParam = 1448059747;
var mmDomain = 'salesautopilot.s3.amazonaws.com';
var secure = ('https:' == document.location.protocol)?true:false;
var closeTitle = 'Bezárás';
var isExit = false;
var isButton = true;
var openButtonTitle = 'Feliratkozás';
var btnid = 'openmmpopuplayer793121448059747';
</script>
<script type="text/javascript" src="https://d1ursyhqs5x9h1.cloudfront.net/sw/scripts/mm-exitpopup-1.13.min.js"></script>
Could you please help me, how to solve this problem?
Thank you,
Zsu
Hello
You may add scripts into the Child theme functions.php. Please use Child theme funtions.php file to add .css and .js files.
Please refer to this article about adding your custom form css styles:
http://wp.zacgordon.com/2013/03/13/adding-css-to-wordpress-theme-via-functions-php-file/.
Here you may read about Child theme:https://codex.wordpress.org/Child_Themes.
Raw js element may contain working code . Css and js file links should be attached externally in Child theme to prevent overwriting during update or into the header.php in dasboard->appearance->editor. Please tell us your site credentials(not wp-admin) to enter in case any further assistance is needed.
Regards,
Brian Johnson
Hello Brian,
I will be honest, I’m absolutely not familiar with these codes, neither css, not js. I don’t dare to write anything to the css or js files.
In my last post you can find my FTP credentials too. Could you please make it for me, if it is possible? The code I copied in the prewious post should run only when my coustomes click to the “Feliratkozom” button in the footer (this is working now, this part is OK). The only problem is with the style of the button, as you can see on my Home page.
It would be good, if only in that DIV element, which contains the Raw JS element, was no css styles, so the code could refer to the styles what were set in MailMaster.
I hope this is possible… for me it’s too complicated.
Thank you for your help,
Zsu
Hello
Please provide us with login to the site. Check this sreenshot: http://prntscr.com/96qb2j.
Regards
Brian Johnson
Hello,
oh I see. Sometimes WordPress brings this page for security reasons. You should write only wp and wp, and then, on the next page, the login datas I gave you.
Thanks,
Zsu
Hello
We have checked the credentials you gave and not able to login. Please check them.
Regards,
Brian Johnson
Hello Brian,
I’ve checked the password and login name, they are correct, please try again, I write some more infos in private content.
Thank you very much,
Zsu
Hello,
Please specify where you have added your JS code and show a screenshot how popup form should be displayed.
Also show a documentation where you found that code.
Thank you.
Regards,
Eva Kemp.
Hello, Fantsia.
I have added script into the child theme and functions.php. I see that script contains some error in fuctioning. Sorry for inconveniences further customizations lays beyound the scope of our support service.
Regards,
Brian Johnson
Hello,
please see private content.
Thanks,
Zsu
Hello,
Please take our apologies.
The mail account of our support representative was hacked due to his own inadvertence.
We’ll resolve this issue in short time. Thank you for your alertness and notification.
Don’t answer any emails that are sent from non-official mail account of our company.
Thank you for understanding.
Regards,
Eva Kemp.
You must be logged in to reply to this topic.Log in/Sign up