January 10, 2013 at 4:17 pm #19137
I was wundering if it’s possible to override some of the theme options in a child theme? For example;
I want to add some social media profiles in the header of the Angular theme so I edited the header.php file in my child theme and added some css in the style.css of my child theme.
However I also need to add some lines in this file: includes/admin/register-admin-options.php
So I copied that file with the same folder structure to my child theme and made the changes, but this doesn’t work. The child theme still uses the parent theme options. Is this even possible?
Another thing I noticed is that most of the child’s theme css does not override the parent’s css. Only when I add a !important the css is overridden by the child theme…
This and the lack of documentation about child themes makes me consider my decision about using a child theme in the first place.
What are your thoughts about this? Is it easier to just use it as a standalone theme and not be able to update the theme in the future?
Thanks, ToineJanuary 10, 2013 at 4:27 pm #102370
For Kriesi’s themes I’m not a big fan of Child themes for the same reasons you are running into. Its a complicated Framework and the benefits of a child theme are often lost on themes that have most of the options available in the theme options.
Instead what I recommend doing is just add all your css changes to the custom.css file in the css folder. If you make any changes to the theme files, just add a comment into the file (in php thats putting two slashes in front of it // ) and then make a separate text file that you can use as your own version/change file. Keep a nice log of any permanent changes you make.
Whenever you need to update you can run your list of changes against the version.rtf and any conflicts will need a closer look to see if you need to re-add anything. If there are no conflicts just update those new files onto your server.
I hope that helps a bit :)
DevinJanuary 10, 2013 at 4:32 pm #102371
Thanks for your quick response!
Yeah, that’s probably easier and quicker…
Normally you can achieve a lot with overriding parent functions in your functions.php, but in this case with the avia framework nested deep into the templates I think I’m not gonna bother…
Cheers, ToineJanuary 10, 2013 at 4:39 pm #102372January 16, 2013 at 6:37 pm #102373
I always feel kind of bad that I don’t do child themes often enough…this makes me feel a little better about doing it the way I’ve already been doing it, with comments and a text file of changes. Now I feel brilliant. Thanks.January 17, 2013 at 12:45 am #102374
The topic ‘Override theme options in child theme?’ is closed to new replies.