Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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

    #528538

    Hey 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,
    Elliott

    #528547

    Thanks 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.
    #528962

    Hey!

    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_page

    Best regards,
    Ismael

    #529092

    The 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

    #529924

    Hi!

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.