• Hi Folks,

    I have read through several threads about this problem in its various guises, and tried various fixes, but I still am mystified – and out a few dollars for paying to have this fixed twice – why the coding I so carefully type in the text editor disappears either in the post’s Preview or once the post has actually been published.

    The page referenced above shows the text Click to Subscribe! near the bottom of the post. It *used to* have coding around it. Once published the anchor tags put the coding outside of them and so there’s no link anymore.

    Original Coding
    <p>Click to Subscribe!</p>

    Replaced Coding – Once Published
    <p>Click to Subscribe!</p>

    As you can see, the text is now outside the anchor tags. The fellow I hired to create and then fix the coding, for the original popup and for the anchor-text popup, claimed I made the mistake of updating the theme and that’s what happened. (I.e., his original coding was deleted.) So this time around, I have not updated the theme. FYI, the theme is Graphene.

    So this making me crazy! The original popup does work, set to appear after approximately 20 seconds. But any use of the named anchor coding you see above simply replaces itself: this happens either after I switch from the Text to the Visual editor, or after the post has been published.

    I’m not the most technical kid on the block, but I can work with HTML. If someone can help me, I’d be greatly appreciative. Thank you!

    Rob

    PS If this is a theme-related issue, my apologies in advance, and I’ll head over to the theme’s support page.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    Try creating the anchor with the editor’s built-in functionality: https://www.ads-software.com/support/article/page-jumps/

    Thread Starter robwneilly

    (@robwneilly)

    @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

    Thread Starter robwneilly

    (@robwneilly)

    @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!
    Rob

    Moderator James Huff

    (@macmanx)

    Ah, that’s not really an anchor then, that’s a JavaScript action.

    What are you using to provide the subscription popup?

    Thread Starter robwneilly

    (@robwneilly)

    @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,
    Rob

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Named Anchor Tag Keeps Malfunctioning’ is closed to new replies.