Links within a modal problems

Hi, this is a bit of a strange one. It could be Blocs, server, modal or Volt CMS related, or all 3, so here goes.

There’s a page on site I’m working on which has a row of 4 accordions, click the name and the dropdown accordion gives a brief description of the relevant course with a ‘Learn More’ button at the bottom.
Click on this and it opens up a modal with more detail and a testimonial or two on that particular course, and a ‘buy now’ button which takes you to the page to buy the course. I can type copy, change copy etc. in the modal and that works fine.

So far so good, but I’m having a problem within the modal trying to get the ‘Buy Now’ link to stick. In fact within the modal, it doesn’t really want to let me have anything as a hyperlink using Volt.
I select the word, or type in the relevant phrase, hit the link button in the menu and the box pops up above the selection for me to type or paste the link into, and it won’t let me.

Is this a limitation of a new link in a modal?
On a couple of other modal pop-ups links work, but they may have been copied over a different way, I can’t remember.

Any thoughts appreciated.

Could be. I suggest to “outsource” this exact field on a separate (hidden) page, where you are able to edit the same content area (with reusing the same id).

1 Like

Hi @Jannis,

Thats worked as a workaround for now.

So, a new hidden page (ie: not in the menu), a Volt content area with the same name as the modal, and I was able to add the hyperlink - which all populated back to the original modal, so for now, all good.

But any idea of why it should be going wrong in the modal itself? It’s just an extra step the client isn’t too keen on (and the explaining of it is doing my head in!).

Cheers, happy boy for now!

Unfortunately I wasn’t able to generate this link pop up correctly in a modal window.

OK, so this suggested workaround has to stay in place for now?