Add schema to Pro Child theme?

Hi

I’d like to add some schema/structured data to my Pro Child theme but unsure on how to do this exactly?

I read another post that noted to copy the header file from the main theme to the child theme but i cant see an existing header file on the pro directory.

I’m using the ethos stack

[/details]

thanks

Hi There,

There’s changes on the structure. We can find it here: wp-content\themes\pro\framework\legacy\cranium\headers\views\global \ _header.php

Hope this helps.

1 Like

Wouldn’t we want to put that in the Child theme? Also, isn’t there a way to add this to the WP editor i.e. so we can have access without FTP?

I need to add my analytics code and this new structure has gotten me all turned around. I am afraid to make any changes.

perfect, thanks. worked a treat

You are most welcome. :slight_smile:

I tried adding my schema and analaytics to that file path and it didn’t work. Should I recreate that path in the child theme?

Hi There,

Yes, that is how it works :slight_smile:

Hope it helps!

So does this eliminate the need to even use a child theme then? I’m confused.

just create the child theme as per the instructions (search if you cant find) then recreate the file path as noted above in the child folder. Copy the header file from the main folder to your newly created folder path. thats it

1 Like

That’s what I thought. Thank you for that!!!

1 Like

Thank you for the help @cagwatson!

Glad that this is now sorted out for you @Toryan.

For further questions and inquiry, feel free to open up a new thread.

1 Like