Tagged: x
-
AuthorPosts
-
August 5, 2016 at 6:29 pm #1119479
Michael Burton, CFP®ParticipantThe 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.
August 5, 2016 at 6:30 pm #1119480
Michael Burton, CFP®ParticipantThis reply has been marked as private.August 6, 2016 at 2:24 am #1119896
ChristopherModeratorHi 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.
August 6, 2016 at 10:14 am #1120223
Michael Burton, CFP®ParticipantSorry, 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!
August 7, 2016 at 12:25 am #1120627
ChristopherModeratorHi 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.
August 10, 2016 at 1:16 pm #1125983
Michael Burton, CFP®ParticipantWow. Why didn’t you say so to begin with!?! LOL!
August 10, 2016 at 3:04 pm #1126112
JoaoModeratorIm glad that works for you 🙂
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1119479 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
