• Resolved mookki

    (@mookki)


    Topic: Deleted Code Still Showing

    I added a JSON script for FAQ schema to improve SEO.

    Initially, when I added the code, the plugin didn’t display it correctly. In the Rich Results Test, it showed a “text” field missing error.

    I suspected the code might be too long for the plugin, so I deleted it and added a new, shorter version. The new code works perfectly, but the deleted code is still appearing on the website. As a result, the Rich Results Test now detects duplicate FAQ schema markups.

    As shown in this link (https://search.google.com/test/rich-results/result?id=vtUlEsAHMNekq1yIuutH2w), the test detects two FAQ schemas:

    1. The old one (which I want to remove) with 10 critical errors due to the missing “text” field.
    2. The new one (which I want to keep), but it is flagged for duplication.

    How can I completely remove the old FAQ schema?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support DraftPress Support Team

    (@99robotsteam)

    @mookki

    It sounds like your issue is related to website caching. When you delete or update code, the changes may not reflect immediately because a cached version of your site is still being served. Here’s what you can do to ensure the old FAQ schema is fully removed:

    1. Clear Your Website Cache – If you’re using a caching plugin (e.g., WP Rocket, W3 Total Cache, or LiteSpeed Cache), clear the cache from the plugin settings.
    2. Purge Server Cache – If your hosting provider has built-in caching (like Cloudflare, SiteGround, or Bluehost), clear the cache from your hosting dashboard.
    3. Clear Browser Cache – Sometimes, your browser may still be displaying an older version of the site. Try clearing your browser cache or opening the site in an incognito window.
    4. Check CDN Caching – If you’re using a Content Delivery Network (CDN) like Cloudflare, clear the cache from your CDN dashboard.

    After performing these steps, test your page again in the Rich Results Test.

    Thread Starter mookki

    (@mookki)

    We have done all the steps you mentioned, but the code is still there.
    It is this link that I have duplicated FAQs schema markups.
    https://solanamadrid.com/faqs/

    Thread Starter mookki

    (@mookki)

    We also deleted the plugin and downloaded it again. But the code is still there and the programmer couldn’t find where it is. Do you have an idea of where it could be?

    Plugin Support DraftPress Support Team

    (@99robotsteam)

    Hi @mookki,

    Since the old schema persists despite prior steps, this strongly indicates a deeply cached version of the page is still being served. Let’s focus on aggressive caching layers:

    • If using Cloudflare/CDN, purge its cache and enable “Development Mode” (temporarily).
    • Contact your hosting provider to ensure server-level caches (e.g., Varnish, OPcache) are fully purged—many hosts require manual intervention.

    Let us know if duplicates remain.

    Thread Starter mookki

    (@mookki)

    The unwanted code still remains. We deactivated the other FAQ code, so it’s no longer duplicated. If you test it on the Rich Results Test, you will only see the unwanted error code there.

    Thread Starter mookki

    (@mookki)

    How do I delete this unwanted code?

    Plugin Support DraftPress Support Team

    (@99robotsteam)

    @mookki Could you please create a temporary WordPress admin account for us using this email: [email protected]?
    Once we have access, we will thoroughly check your site and help you remove the old schema properly.

    Thread Starter mookki

    (@mookki)

    I created an admin account using the provided email. You should receive the password in your inbox. Please confirm if you can access WordPress.

    Plugin Support DraftPress Support Team

    (@99robotsteam)

    Hi @mookki,

    Thanks for providing access. After logging into your site and inspecting the active snippets, I found that the outdated FAQ schema is actually coming from a different snippet within the Header Footer Code Manager plugin.

    The snippet is titled “Schema Markup – Organization”, and it’s currently set to:

    • Location: Header
    • Site Display: Site Wide
    • Status: Active

    This snippet appears to contain the old FAQ schema markup and is still being loaded on your pages, including /faqs/.

    To remove the unwanted code:

    1. Go to Header Footer Code Manager in your WordPress dashboard.
    2. Locate the snippet named “Schema Markup – Organization”.
    3. Either deactivate it or delete it entirely, depending on whether it’s needed elsewhere.

    Once you’ve done that, clear all caches again (site cache, server cache, CDN if applicable), and recheck your page.

    Thread Starter mookki

    (@mookki)

    I deactivated the organization schema.

    In rich results test, the organization schema is gone. The FAQ schema still remains.
    https://search.google.com/test/rich-results/result/r%2Ffaq?id=djUm4DBAHWi5x7Cg7zcMsg

    Plugin Support DraftPress Support Team

    (@99robotsteam)

    @mookki That was the only snippet on the faq page output by HFCM, anything else you see on there is coming from someplace else, please discuss with your developer. If the snippet is from HFCM it will show this on the source code, please see the screenshot here: https://prnt.sc/l0i8XfAiU92Q

    Thread Starter mookki

    (@mookki)

    As I mentioned in the comments above, I introduced the code only through this plugin.

    What happened is:

    1. I introduced the code through this plugin.
    2. I deleted the code, but it was still there.
    3. I deleted the plugin, hoping the code would disappear, but it is still there.
    4. I redownloaded the plugin, and this is my current state.

    That is my problem.

    My question is where could the old FAQ code possibly be? I am asking here because this plugin was the only place I introduced that code.

    • This reply was modified 1 year, 2 months ago by mookki.
    • This reply was modified 1 year, 2 months ago by mookki.
    Plugin Support DraftPress Support Team

    (@99robotsteam)

    Hi @mookki,

    If the code were still being output by the Header Footer Code Manager (HFCM) plugin, you would see a comment in the page source like this:

    <!-- HFCM by 99 Robots - Snippet # 1: Name of the Snippet -->

    This is how all HFCM snippets are marked in the source code, and it helps identify exactly which plugin is responsible for injecting the code.

    I inspected the source code of your FAQ page and did not find any such comment, which confirms that the remaining FAQ schema is not being output by HFCM at this point.

    Since you’ve already removed the snippet and even uninstalled the plugin, the persistent FAQ schema is likely being added by another plugin, your theme, or custom code in your site files. I

    Hope that helps point you in the right direction!

    Plugin Support DraftPress Support Team

    (@99robotsteam)

    Hi @mooki – Based on this troubleshooting, I can only assume that the cause is due to either:
    1) the snippet in question is hard-coded in your theme
    2) the snippet in question is being placed by a third-party plugin

    We can definitely guarantee (and you’ve confirmed it too) that it’s unrelated to our HFCM plugin. If it was an issue, we’d have many of the 600,000 other users reporting the same.

    Unfortunately, we cannot troubleshoot other people’s code or plugins.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Deleted code still showing’ is closed to new replies.