Tagged: x
-
AuthorPosts
-
May 12, 2016 at 10:10 am #987903
AnonymousInactiveHi,
In your customization best practices article, it says: “What you will need to do is find the View that you plan on modifying in X, and then copy that View and its exact path over to your child theme.”However, in the Child Theme tutorial, it says: “You might also want to setup a functions.php file for various pieces of functionality that you want to add or modify. Fortunately, we’ve done all the heavy lifting for you in this area and all you need to do is use our provided child theme, which requires none of the setup listed above.”
This appears to be a conflicting advice. Best practices says copy files, installation guide seems to indicate that it’s already done.
If I installed a child theme per instruction, do I still need to copy over files to sub-directories? Which article/instruction takes precedent?
Thanks again.
Thank you!
May 12, 2016 at 2:48 pm #988393
DarshanaModeratorHi there,
Thanks for writing in! Child themes are used to extend functionality of certain template files of your theme. So you just have to copy the file that you want to edit, into your child theme’s respective location. For example if you want to add some changes to your logo, you have to copy the file _brand.php which is located under (/x/framework/views/global/) into your child theme’s respective location (/x-child/framework/views/global/). Then the changes will be override.
Certain changes you can do without editing template files directly using WordPress hooks (actions & filters: https://codex.wordpress.org/Plugin_API/Hooks). Here’s one example usage of that (https://community.theme.co/forums/topic/share-social-shortcode-placement/#post-905997).
Let us know if you have further questions.
Thanks! -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-987903 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
