Customize ClassiPress through Child Theme
I've been working quite a lot on customizing your ClassiPress Template to satisfy my needs. Until now I've been editing the core files of the ClassiPress Template, I know I did it all wrong because I forgot the existence of Child Themes, my bad!
Now that I've update my version of ClassiPress (188.8.131.52) and I want to start following the right path, the creation of Child Themes!
This is my first time I am going to develop a child theme for WordPress, and in this particular case for ClassiPress too, so I want to apologize in advance if some of my question could seem really silly
In my customization I have been working to create an enviorment that will change upon the kind of user is going to be logged in. To accomplish this feature I've modified some internal files of your theme, some of them are includes/theme-login.php
and so on...
Now reading your helpful tutorial ClassiPress Child Theme Tutorial (Part 2)
I've understand that if I would like to override some of your internal functions I should recall them inside my functions.php file and edit them as I would like.
But when I tried to edit the function cp_load_scripts()
present inside the file includes/theme-enqueue.php
; when I check my website is a black page, as something is not working properly. I am sure is not a type error because I've tried with just a:
In this case I shouldn't get a blank page, but just my homepage without any js
loaded (because this is what the function does...).
I also thought that if I want to keep as tidy as possible my functions.php file I could recreate the directory structure of the ClassiPress Template, just as is possible override the index.php file or any other file inside the ClassiPress main folder. But that is not been helpful at all...
So here I am asking "How can I be able to override some of the included file inside the ClassiPress template?".
There are some ways to do it? Am I mistaken something?
Thank in advance for you help!
PS: by the way, congrats for your amazing work on all your templates!!!