Hi there,
I have a Looper Provider (Grid) that is pulling in a Custom Post Type (Team Member) into Cells, with basic info in the Cell. Within the Cell is a Modal which contains more of the Team Member info (pulling in ACF fields and featured image). The Modal has a Toggle Hash set up, and then the whole Cell (the Looper Consumer) has its HTML tag set to a and the link URL is set to the Toggle Hash of the Modal within it.
Also within the Modal Content is a Button, which has a URL from an ACF field. However, this link is not being applied to the Button, and it loses its a tag altogether (becoming a div instead).
When I set the Cell’s HTML tag to div, the Button within the Modal Content then works.
I understand that within HTML structure, you cannot have an a tag element within an a tag, which would be the case if the Button was directly within the Cell. However, in the outputted HTML of the page, the Button within the Modal Content is actually totally outside of the Cell’s HTML (since the Modal Content HTML is output after the rest of the page has been generated). Because the Modal Content HTML is completely separate from the Cell HTML, it should be possible to have an a tag within the Modal Content, even when the Cell itself is an a tag.
Is this a bug within Cornerstone? Or perhaps a filter that WordPress is applying to delayed output?
Cheers!







