Child theme

Posted in: Newspaper
Post count: 11

Hello!
If I add json-ld file in header.php, should I use Child theme??
Or I can do some code modifications directly in “parent” theme ?

What is the main reason and purpose for using Child theme?

THX )

Post count: 18283

Hello !

A child theme in WordPress is a sub theme that inherits all the functionality, features, and style of its parent theme. Child themes are a safe way to modify a WordPress theme without actually making any changes to the parent theme’s files. When the parent theme gets updated, changes made in the child theme are preserved and applied on the updated version as well.

Find out more about the child theme here: https://forum.tagdiv.com/the-child-theme-support-tutorial/

You can try first to paste your code into Theme Panel – Custom Code and see if everything works ok: https://www.screencast.com/t/Ht0acC6t

If it doesn’t work then use the Child Theme.

Thank you !

Post count: 11

ok. Thanks.
But how can I paste my code with json-ld?
http://joxi.net/brRNJj6H7opn0r
Custom Code maintains only JS, and I need some php also

Post count: 18283

Hello !

Sorry for missleading you !

Please paste the code here: https://www.screencast.com/t/jKaoofBxqnyb This will insert your code between the head tags.

Thank you !

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.