How To Duplicate Files From The Main WordPress Theme To The Child Theme | WP Learning Lab




Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist:
Download our exclusive 10-Point WP Hardening Checklist:
How To Duplicate Files From The Main WordPress Theme To The Child Theme | WP Learning Lab

In this quick tutorial you will learn a little bit about the WordPress Child Theme Hierarchy and how to easily duplicate files to your child theme folder.

First the Child Theme Hierarchy. This is the order in which WordPress looks for theme files and it is the reason child themes work.

When WordPress looks for the header.php file it will first look in the child theme folder, if one exists. If there is a header.php file present in the child theme folder it will load that one. If there is no header.php file present in the child theme folder it will load the header.php file from the main theme folder.

So it goes for many of the important files, including but not limited too: header.php, footer.php, page.php, single.php, and style.css.

You can read more about the hierarchy here:

So, if you want to make changes to the header.php template file of your theme without having those changes potentially overwritten when you update your theme then you will want to create a child theme. Watch this video on how to create a child theme:

To duplicate the files first login into either the File Manager for your website in your host’s cPanel or log into your website’s folder using FTP. Then go to the parent theme folder and select the files that you want in your child theme.

Then either click the “Copy” icon at the top of the File Manager or right click and select “Copy”. You will asked where you want to copy the files too. Choose the path to your child theme and click ‘ok’. The files will then be copied to the child theme folder. Ready for you to start editing theme.

Subscribe to this awesome channel here:


Fuente – Source

How To Duplicate Files From The Main WordPress Theme To The Child Theme | WP Learning Lab

Necesitas ayuda con wp? Entonces WPVideo es tu sitio.
Encuentra lo que buscas entre cientos de miles de videos y experiencias personales de otros usuarios. Todos los que empezamos con wp deberíamos tener acceso a esta web, ojalá yo hubiera tenido algo así cuando empecé mi camino como webmaster 🙂
Pero ahora quiero y puedo poner esta web a vuestra disposición.
Disfrutadla 😉

Need help with wp? Then WPVideo is your site.
Find what you are looking for among hundreds of thousands of videos and personal experiences of other users. All of us who started with wp should have access to this website, I wish I had something like that when I started my journey as webmaster 🙂
But now I want and I can put this website at your disposal.
Enjoy it 😉

https://www.wpvideo.eu

Publicado en Temas (Themes), Tutoriales (Tutorials), Wordpress y etiquetado .

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *