Cornerstone: Elements: Div: HTML A: not wrapping child elements

Hello,

I have a wired issue on this page:

I would like to use a div element as a link box. But when I select the html a attribute in the setup, the a tag is not wrapping its child elements.

Here you can see the highlighted line:

It’s not wrapping its children.

Could you help me, please?
What am I doing wrong?

Best regards
Carlo

Hi Carlo,

Thanks for reaching out.
I have checked your website but didn’t locate the section your trying to point and also the screenshot is not showing the marked section. I would suggest you share the login credentials along with the following information for further investigation.

– WordPress Site URL & Login URL
– WordPress Admin username/password
– Specific section where you are having this problem

To create a secure note, click the key icon underneath any of your posts.

Thanks

1 Like

Hej @tristup,

thank you for your offer.
I added the login information to my initial post.

Hope you can help!
Thank you.

Hello @carlomue,

I checked your settings it seems that you have added the Bunnton Element inside the DIV element. Please note Buttom element renders an anchor tag on the Front-end. According to the HTML markup rule, you can not have multiple anchor tags inside the anchor tag so I would suggest you remove the button element to wrap the child elements.

If you want to have the button there you can use the Raw content element where you can add custom HTML for the button. Please have a look at this article to learn more about how to add the button from HTML https://www.w3schools.com/tags/tag_button.asp

Thanks

1 Like

Oh, Lord! – thank you very much for the explanation!
It’s working now!

Thank you!

Hello @carlomue,

Glad that we were able to help you. Please feel free to reach us if you have any more queries.

Thanks

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