Title: Removing ld script
Last modified: April 8, 2020

---

# Removing ld script

 *  Resolved [arafail](https://wordpress.org/support/users/arafail/)
 * (@arafail)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/removing-ld-script/)
 * Hello!
    You plugin is probably the best thing that happened to the internet since
   wordpress. I was wondering if you could help me with a small issue: I have this
   page: _[ redundant link removed, just use the link field ]_
 * On the structured data tester, it shows ok, `https://search.google.com/structured-
   data/testing-tool/`
 * However, I would like to remove this type: [https://i.imgur.com/HgRaKoB.png](https://i.imgur.com/HgRaKoB.png),
   so that only techArticle remains.
    I have traced the problem to this piece of
   code which your plugin appends to the header: `<script type="application/ld+json"
   >{"publisher":{"name":"Digital Citizen"},"description":"Cum configurezi modul
   Economisire Baterie din Windows 10? Cum il pornesti si cum il opresti? Cum te
   ajuta sa economisesti baterie?","image":null,"@type":"Article"}</script>`
 * How can I remove it?
    Thanks!
    -  This topic was modified 6 years, 1 month ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremoving-ld-script%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/removing-ld-script/#post-12647430)
 * I’m not entirely sure where that is coming from because I don’t see the expected`"
   @context":"http://schema.org"`.
 * What happens if you add this plugin code:
 * `add_filter( 'amp_post_template_metadata', '__return_empty_array', PHP_INT_MAX);`
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/removing-ld-script/#post-12647455)
 * Or rather, this would be better now in 1.5.x:
 *     ```
       add_filter(
       	'amp_optimizer_config',
       	function( $config ) {
       		$config['transformers'] = array_diff(
       			$config['transformers'],
       			[ \AmpProject\AmpWP\Transformer\AmpSchemaOrgMetadata::class ]
       		);
       		return $config;
       	}
       );
       ```
   
    -  This reply was modified 6 years, 1 month ago by [Weston Ruter](https://wordpress.org/support/users/westonruter/).
 *  Thread Starter [arafail](https://wordpress.org/support/users/arafail/)
 * (@arafail)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/removing-ld-script/#post-12647495)
 * Thank you very much!
    Both pieces of code do the job. I will use the second one.
   You know what really grinds my gears? Your plugin is not as well rated as others,
   but performs better! Thanks again!
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/removing-ld-script/#post-12647526)
 * [@arafail](https://wordpress.org/support/users/arafail/) Thank you! If you haven’t
   done so already, please [leave our plugin a review](https://wordpress.org/support/plugin/amp/reviews/#new-post)
   to improve the ratings!

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

The topic ‘Removing ld script’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [json](https://wordpress.org/support/topic-tag/json/)
 * [Linked Data](https://wordpress.org/support/topic-tag/linked-data/)

 * 4 replies
 * 2 participants
 * Last reply from: [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/removing-ld-script/#post-12647526)
 * Status: resolved