-
AuthorPosts
-
November 2, 2015 at 3:11 pm #528525
Hi i want to use a pop up on a clients page for an opt-in form.
The Code for the po-pup is delivered by cleverreach.
Now i used the code block element to use it on the homepage.
But it does not work as it should. The menu moves over it and it just looks not right. On another page with another theme it worked out.
Could you please take a look.
And how can i manage it that the pop up does appear on every entry-page of the website and then not again?
Thanks Simon
November 2, 2015 at 3:39 pm #528538Hey simonac!
You’ll want to add it outside of the main containers. Add this to the bottom of your functions.php file.
add_action('wp_footer', 'enfold_customization_footer_scripts'); function enfold_customization_footer_scripts(){ ?> insert your code here <?php }
And replace “insert your code here” with the script, and HTML elements.
Best regards,
ElliottNovember 2, 2015 at 3:49 pm #528547Thanks Elliot.
It works now on Firefox. But not in Chrome. And on mobile version it is not displayed correct. You cannot move the form to fill it out…
And how can i make it that the pop up just appears once per user / session? And not on every page he clicks? Or what is the common way with these opt-in pop ups?
Regards, Simon
- This reply was modified 9 years, 1 month ago by simonac.
November 3, 2015 at 4:26 am #528962Hey!
The pop up form works when I check the page on Chrome. Regarding the other question, try to set a cookie or set the popup form to show only on a specific page, the home page perhaps:
http://www.w3schools.com/js/js_cookies.asp
https://codex.wordpress.org/Function_Reference/is_page
https://codex.wordpress.org/Function_Reference/is_front_pageBest regards,
IsmaelNovember 3, 2015 at 11:02 am #529092The cookie thing is beyond my skills. Is there a plugin for cookies like i need?
If i would like to use thePop-Up only onthe front page, would that code be right?
add_action('wp_footer', 'enfold_customization_footer_scripts'); function enfold_customization_footer_scripts(){ if ( is_front_page() ) { ?> insert your code here <?php } }
Thanks Simon
November 4, 2015 at 12:02 pm #529924Hi!
I think that could work and it would be best to ask cleverreach about it, as they should let you know how to implement their pop up into WordPress.
Let us know in a new ticket if you have some more questions directly related to the theme.
Regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.