|
#1
Apr 16, 2013, 03:59 AM
|
|
Hi,
I'm using the Atahualpa theme (3.7.11) with WP 3.5.1 and would like to use a child theme.
I've added the directory atahualpa-child in wp-content/themes, created a style.css file and activated the child theme. All seems ok but none of the css in this file is applied.
Should this work ?
Wordpress is not installed in the root but a sub-directory wp.
Do I need to change the header.php ?
Thanks.
|
#2
Apr 16, 2013, 04:14 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Can I ask why you want to use a child theme?
|
#3
Apr 16, 2013, 05:11 AM
|
|
Hi,
Reading through the Wordpress documentation, this seems to be the best way to maintain changes when upgrading WP or theme.
Please could you confirm if it is possible with Atahualpa, if not I won't spend any more time trying to find out why it's not working.
Thank you.
|
#4
Apr 16, 2013, 05:47 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
yes you can make a child theme, but unless you edit the actual theme code, all the theme options are stored in the database and saved over updates. In addition, version 3.7.12 (which is in the theme review queue) will have an option to point at another folder in the wp-content folder, that you can store your logo, favicon and header images so they will remain over updates.
you will need to copy style.css and index.php, but don't modify style.css, use the theme options - for 'extra' css use the ato->Add HTML/CSS Inserts->CSS Inserts option
|
#5
Apr 16, 2013, 08:01 AM
|
|
Thanks very much for the info.
I've just tried your suggestion (copied index.php and style.css to atahualpa-child directory unmodified)
When I browse to site I get:
Fatal error: Call to undefined function bfa_get_options() in /home/sevenoak/public_html/wp/wp-content/themes/atahualpa-child/index.php on line 2
|
#6
Apr 16, 2013, 08:06 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
did you create the child theme properly?
also I will once again state that Atahualpa is different than other themes, 99% of the time you don't need a child theme with atahualpa (and I don't have any idea when the 1% might be needed)
Last edited by juggledad; Apr 16, 2013 at 08:08 AM.
|
#7
Apr 16, 2013, 10:46 AM
|
|
Sorry, I'm not sure what you mean by properly.
I created the directory atahualpa-child directory in themes, copied style.css and index.php from atahualpa to atahualpa-child and activated atahualpa-child.
Is this correct ?
I appreciate that it is not likely to be required, however I would like to understand why it's not working if possible.
Thanks again.
|
#8
Apr 16, 2013, 11:52 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
you should try a google search using 'how to create a child theme'
|
|