Advanced Excerpt showing html
-
Since updating the plugin, now this shows at the beginning of all my excerpts: < !DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd”>
You can look at he blog page her for examples: https://iliketodabble.com/blog/
The page I need help with: [log in to see the link]
-
Hi,
Don’t see it at the moment, I assume you disabled the plugin.
Can you reactivate it and let me know when you do, I’ll give it a check and then you can disable it and we’ll figure out how to proceed.
Alright, I have reactivated it. See https://iliketodabble.com/blog/ under each featured image at the start of each excerpt.
Hi,
You can deactivate it.
I’ll recheck again in a couple hours, want to see if the same thing I’m seeing now happens when deactivated. That doctype part is also on the single post page, just before the main content, but it’s parsed as HTML so it doesn’t show up as text.
So it’s either being added by a plugin or somehow ended up in your content.
But first, let’s check the content. You are not using Gutenberg, correct? If not, go to edit one of those posts in the admin and in the top right corner of the content editor click on “Text” to show the HTML code. Does the doctype part show up in there?
It is deactivated now and yes I am using gutenberg
It’s deactivated now and I do still see those elements in the content of the posts:

Unlikely to be coming from the theme, it’s probably some plugin. Can you let me know which plugins you have active on there, I’ll set up the same ones on my installation and hopefully I get the issue as well.
Hmm okay.
Plugins I have activated are:
Beaver builder plugin lite
Beaver builder booster
Caos for webfonts
Comment link remove
Contact widgets
Convert kit
Fmtc affiliate disclosure
Google analytics dashboard for wp
Jquery pinit button for images
Limit login attempts
Mediavine control panel
Ninja forms
Official Facebook pixel
Post thumbnail editor
Pretty links
Real simple SSL
Regenerate thumbnails advanced
Schema all in one rich snippets
Scripts n styles
Semrush seo writing assistant
Shortpixel image optimizer
Social warfare
Stop spammers
Title remover
Wp rocket
Wp user avatar
Wp sweep
Yoast sep premium
Yoast seo search index purgeYea I know it’s a lot and since some are premium you may not be able to recreate but let me know what you find.
Thank you for your help!
Doesn’t look like it’s coming from the plugins.
Which theme are you using?
Also let’s check if it’s not maybe part of the content itself. Go to edit one of those posts in the admin, in the top right you’ll see a button with 3 dots ( each in it’s own row ), click that. A toolbar will show up, click on “Code Editor”.
That switches it to show the actual HTML code for the content. Is there “doctype” at the top?
You can switch back to the regular ( non HTML mode ) the same way, those 3 dots and then click “Visual Editor”.
I am using Blaskan. And I checked the code editor in the posts themselves and that code is not there. There hasn’t been any recent updates with the theme and I never had this problem until I updated the advanced excerpt plugin.
Thank you,
DaniellaYou don’t have to keep troubleshooting. I suspect it may be the theme. I’ve switched to a different plugin for my excerpts for now.
Thanks for your help,
DaniellaHi,
Ok. But you should look into that in any case, because doctype declaration, head and body tags should only be put once on a page. Otherwise it’s not valid HTML.
Oh I see. Do you have any idea how I can maybe fix this?
Best thing would be to make a backup of the website ( just in case ) and then:
1) Just try making a simple post, just write Test in the content and that’s it. View the post and check if the issue is there ( more on that after the list )
2) Make sure WP, theme and plugins are all updated to their latest versions
3) Switch to a different theme and check if the issue is gone
4) If not, disable one by one plugin and check if the issue is gone after eachThe way you can check for the issue is viewing the source code of a post. You visit the post, right click anywhere and click “View Source”. Then press CTRL + F to open up the search tool, type in <body and if it shows more than 1 result, the issue is there.
And I’d suggest disabling the caching plugin while you do the tests, otherwise it might show you a cached version of the page where the change you made ( plugin disable for example ) is not yet shown.
The topic ‘Advanced Excerpt showing html’ is closed to new replies.