robwneilly
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Named Anchor Tag Keeps Malfunctioning@macmanx OK James, I rest my case on being inexperienced! I’m not exactly sure what you mean by “using”. The actual script for the popup, do you mean? If so, it’s JavaScipt, created by the same person who coded the JavaScript action. I don’t know if you want to see that script? Forgive me if I’m missing a step here. Here’s the script that initially causes the pop-up on any of my site’s webpages:
<!-- show signup form popup start --> <script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/unique-methods/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script> <script> function showMailingPopUp() { dojoRequire( ["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us20.list-manage.com","uuid":"2f0771b1f5c1d91d545db83f9","lid":"49fa515218","uniqueMethods":true}) } ); document.cookie = 'MCPopupClosed=;path=/;expires=Thu, 01 Jan 1970 00:00:00 UTC;'; document.cookie = 'MCPopupSubscribed=;path=/;expires=Thu, 01 Jan 1970 00:00:00 UTC;'; } setTimeout(function(){ showMailingPopUp(); }, 20000); </script> <!-- show signup form popup end --> <!--- Style for popup start --> <style> .mc-banner{ display: none !important; } .mc-modal, .mc-modal-bg{ visibility: visible !important; } </style> <!--- Style for popup end -->
The popup, coding seen above, works flawlessly on any Page. Maybe the problem is with any Post? The person that did this did not explain things well – that process was difficult, to use a word – so it’s very possible I’m missing a key step or component somewhere.
If this gets too involved or time-consuming, please tell me, and I will be looking to pay someone for clearer instructions ??
Thanks again,
RobForum: Fixing WordPress
In reply to: Named Anchor Tag Keeps Malfunctioning@macmanx On looking more closely at your solution – but more so, at my original post – I don’t think I was clear. Also, my coding disappeared from my original post. I’m going to try to reproduce my coding here, as it got lost in the shuffle/interpretation.
I start like this:
<a id="open-popup" onclick="showMailingPopUp(); return false;" style="cursor: pointer;">subscribe</a>
But here’s what happens after I publish (everytime):
<a id="open-popup" onclick="showMailingPopUp(); return false;" style="cursor: pointer;"></a>subscribe
As I hope you can see, the word “subscribe” now appears outside the anchor that uses an id to call a process. (Sorry, I might have my language/terms wrong here.)
I did try your solution, but it didn’t work. I’m thinking that’s probably because you were unable to see my original coding?
Appreciate your time/help!
RobForum: Fixing WordPress
In reply to: Named Anchor Tag Keeps Malfunctioning@macmanx Thanks so much; I will give this a shot tomorrow James. Guess I’m being a too stubborn HTML guy to have thought this about a named anchor. Will update you soon. ~Rob