Posted: March 10, 2018 at 12:14 am
Your last instruction with regard to troubleshooting was:
Other things I found out since then:
Any additional tips you can provide?
While I can’t guarantee this will work with the “gantry5/twig/timber” because that theme does not follow WP coding standards, you can try adding this code to a site-specific plugin and it may help:
You can add the above code to a functions plugin.
Thank you for giving that a go.
I created a site-specific plugin with your code.
I am sorry to report that it did not work.
To clarify, the primary reason why I need to clean up that part of the HTML is that I cannot create proper social cards for FB and twitter. I wanted the event pages to be used for that but the problem prevents the FB scrapers from reading the page properly.
My workaround is to create a site that does not have the HTML output problem just for landing pages then redirect them to the appropriate part of the site.
I’ll try to get someone at rockettheme.com to deal with it.