Site logo

Archived topic

Missing white space in schema data

4 replies · Started by Anders Nielsen on October 2, 2020

Viewing posts 1–5 of 5

Hi

If you look op the schemadata generated, word are putToghter – and does not have awhitespace every time a new headline or paragraf starts...

This creates unreadable words for google...

Hopefully you can fix this :)

As usesual - I have created a video trying to explain.

Hi there,

The issue here seems to be because the schema is attached to your entry-content element and you're adding the title/sub-title to the content, so it's being parsed as part of your content.

Not sure why they're not adding spaces - that part is definitely strange.

My suggestion would be to disable the structured data as it is now:

add_filter( 'generate_schema_type', '__return_false' );

Then use JSON-LD for structured data. Most SEO plugins will have this built in, but there are standalone plugins as well: https://wordpress.org/plugins/wp-structuring-markup/

Ok, this setup only uses generateblocks and generatepress rc1

But I will disable the data for know.

I'll dig into it a bit to see if it's something we can control. I have a feeling this sort of thing would happen with a regular H1 inside your content as well.

I think JSON-LD is the future vs the HTML markup, anyways. Definitely worth exploring :)

Agree that JSON-LD is the future – Google also made that statement..

And when using AMP – JSON-LD is choice too :)

This archived topic is closed to new replies.