My code is repeated twice

Hi,

I was having a problem embedding my link in Discord (it wasn’t grabbing any data like title, thumbnail etc as it should do). When I checked my source code I notice that the entire code is repeated! That is, I have a complete page of code, anding in , and then it is replicated from the tag all over again.

Any is this happening? I include my login details.

Thanks

Hi @demonboy,

Please note that the custom coding and related issues are beyond the scope of Theme Support. I would suggest you hire a developer who can assist you to do the customization or you can avail of our newly launched service called One, where we answer the questions beyond normal theme support.

Thanks

Eh? This is the Pro theme. It appeared after I switched from X!

Hi @demonboy,

If the code was running correctly in the X and the problem suddenly arises when it converted into the Pro, there might be something wrong happens during that process. I have checked your website for investigation but didn’t find the page where you have added the code. I would request you share the exact page URL for further assistance.

Thanks

Just to be clear, this isn’t about Discord, I was just saying I only noticed the problem when trying to embed the Discord widget. The repeated doctype tag manifests itself on every page and post. See our latest blog post and also the login page I attached, above. Select any page and view source and you will see that, half way through the code, the original closes and then a new begins.

Hello @demonboy,

You are having this issue because of your child theme. Your _header.php file in the wrong place.

It should be relocated to: wp-content/themes/pro-child/framework/legacy/cranium/headers/views/global/ folder.

Kindly let us know how it goes.

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