Archived topic
WordPress inserts extra markup
2 replies · Started by Miroslav on September 22, 2017
Hi,
I'm not sure this is a GP issue (I'm using Sections), but WP insists on messing up my code even if I place all markup on one line.
My code in WP backend (Sections):

Screenshot
My code as rendered:

Screenshot
Any ideas? I checked for unclosed tags, but didn't find any. It seems WP has troubles processing tags nested inside an anchor tag (<a>).
Hi there,
I believe this is the issue: https://stackoverflow.com/questions/5320404/wrap-link-a-around-div
Yes, I guess you're right. I will try with inline elements, but I was just surprised how prude (outdated?) WP is in treating HTML markup.