Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1119479

    The site is fiduciarylife.com. I’ve added the child theme and successfully added the pop-up script to the functions.php document. However, two issues remain:

    1) I’d really like it if I could make the pop-up only occur on my blog page and blog posts pages. As you’ll see, the way the pop-up is written, it really applies best on those pages. Is there a way to do that?

    And more importantly,

    2) How do I make it so that the pop-up isn’t partially hidden, when it pops up, behind my header? I saw on another thread that perhaps it had something to do with having my header static vs. fixed . . . or vice-versa. I tried it both ways to no avail.

    Any help you can offer would be greatly appreciated! Thanks!

    I’ll post your login credentials in the next (hidden) post.

    #1119480
    This reply has been marked as private.
    #1119896
    Christopher
    Moderator

    Hi there,

    Please update your code in functions.php file to :

    add_action('wp_footer','footer_embed_codes', 999);
    
    function footer_embed_codes() {
    
    if( is_singular('post') || is_home() || is_front_page()) {
    
      ?><script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us13.list-manage.com","uuid":"682b0fa34f583850061588895","lid":"285b689e6b"}) })</script><?php 
    }
    }

    Please add this CSS code as well :

    .mc-modal {
        z-index: 2000;
    }

    Hope it helps.

    #1120223

    Sorry, not seeing any difference. Pop-up still shows on home page. And is still half-hidden by the header.

    I made those changes functions.php file. I used the customizer to add the CSS code you provided. Was I supposed to add that CSS part somewhere else?

    I did clear cache and clear history and close all my browsers just to be sure.

    Thanks for your help!

    #1120627
    Christopher
    Moderator

    Hi there,

    Instead of using functions why don’t you you set up modal box with convertplug plugin? You’ll have more control options over modal box. Please check this link :

    https://community.theme.co/kb/integrated-plugins-convertplug/

    Hope it helps.

    #1125983

    Wow. Why didn’t you say so to begin with!?! LOL!

    #1126112
    Joao
    Moderator

    Im glad that works for you 🙂

    Joao

  • <script> jQuery(function($){ $("#no-reply-1119479 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>