Modal close button opens another website in new page

Hi,

This site is still in development.
For some reason, the mobile modal close button was sending the user to an offsite URL (My website), opening in a new tab in the process. I have not custom coded this in. I used Search and Replace plugin to replace that URL with # but while the user is not sent to the offsite URL, the page opens up in a new tab upon closure of the modal.

Where is this pulling from? How can I fix it so that the modal just closes, without going anywhere or loading any page?

The site is http://poli.icandymedia.co.nz/

Any help will be much appreciated.

Hello Kelly,

Thanks for writing in! You are experiencing this issue because you have inserted a broken html code in the footer content section which affected the modal popup close buttons. Please have the footer content updated and use this instead:

<div class="copyright">
  <p class="icandy-tag">
    <a href="#" target="_blank">
      <img class="ic-logo" src="http://poli.icandymedia.co.nz/wp-content/uploads/2019/04/merco-logo-white.png" alt="POLi by Merco">
    </a>
  </p>
  <p style="color:#fff;">© 
    <script>new Date().getFullYear()>2010&&document.write(""+new Date().getFullYear());</script>
    Merco
  </p>
</div>

We would love to know if this has worked for you. Thank you.

1 Like

That is amazing thank you! Its been stumping me for quote some time! all works fine now. :slight_smile:

You’re welcome!
We’re glad we were able to help you out.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.