Where to set close link url for modal element in Cornerstone?

Hi there, I’m using the content modal element in Cornerstone and cannot find where you set the url action on close?

For some reason when I click on the X or on any of the close area I’m taken through to entirely seperate website?

I want to just close the pop up text and be on the same page as I was when I clicked it. I have not set this url or link anywhere and cannot see where to remove it?!

Hi @Mrs_E,

Thank you for reaching out to us. In Cornerstone there is no setting to add a URL on closing the modal element. This might have been added through custom JavaScript. Please check your Global JS section or Cornerstone’s JS section and remove the customization related to modal’s close event.

If you’re unable to find it then please provide the URL of the page in question so we can take a closer look at your current setup.

Thanks!

Is it because it’s in this dev area?

I’ve no idea where to look for this!
Have added a private note with the login deets.

Hello @Mrs_E,

I have checked your page and I found out that you are using an html link to close the content area modal.

<p style="text-align: center;"><a href="http://stlamed.wpengine.com/tla-medical-experts-medicolegal-case-managers/" data-x-toggle-close="1">CLOSE</a>

I would recommend that you update it and use this code only:

<p style="text-align: center;"><a href="#close" data-x-toggle-close="1">CLOSE</a></p>

I edited a few to give you an example.

1 Like

Than you, but the button wasn’t really the issue, I set that up so that at least part of it worked!

It’s when you click on the grey area or any of the background, you are taken to the Mirrorsphere website - which are the people hosting the staging area - instead of just to the page below…

Hi @Mrs_E,

I checked your site and the issue is happening because of the invalid HTML code in Theme Options > Footer > Footer Content. I went ahead and properly closed the anchor tags to fix the issue.

Please clear your browser’s cache and check the page now. Cheers!

YESSSSSS MY HERO!! :grinning:

Glad we could help.

Cheers!

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