Archived topic
How to Add Custom Header.php and Single.php in the Child Theme directory?
3 replies · Started by Filip on September 19, 2020
Hi there,
I am trying to figure out how to add the header.php and single.php in the child-theme so updates on the main theme won't make changes.
Short story, im installing Barba.js on my installation and need to add attributes to the <BODY> and <MAIN> in order for transitions to take effect.
I tried the change with php/functions but i can only target classes, not attributes.
Thank you.
Hi there,
you can simply copy those two templates into the root of your child theme directory.
Thank you!
You're welcome