http://bit.do/dgeRj Secret sale page at Orange-Themes.
Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: http://vid.io/xqRL Download our exclusive 10-Point WP Hardening Checklist: http://bit.ly/10point-wordpress-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: https://developer.wordpress.org/themes/basics/template-hierarchy/ 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: https://www.youtube.com/watch?v=Z8n1h-85SMQ 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. I hope this information helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter. -------------- If you want more excellent WordPress information check out our website where we post WordPress tutorials daily. https://wplearninglab.com/ Connect with us: WP Learning Lab Channel: http://www.youtube.com/subscription_center?add_user=wplearninglab Facebook: https://www.facebook.com/wplearninglab Twitter: https://twitter.com/WPLearningLab Google Plus: http://google.com/+Wplearninglab Pinterest: http://www.pinterest.com/wplearninglab/
Niciun comentariu:
Trimiteți un comentariu