Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating »

Child theme compatibilty


  #1  
Old Dec 13, 2011, 03:29 AM
Faffe
 
22 posts · May 2010
Sweden
Child theme compatibilty

Hello!

It would be nice if Atahualpa supported child themes a little better. I'm getting tired of manually moving language files, header images and favicons on upgrades. Since the native WordPress feature of keeping these things in a child theme folder works for other themes, I see no reason why Atahualpa shouldn't support them. It is the WordPress recommended way of making changes to a theme after all.

For some reason Atahualpa detects the header image folder as /wp/wp-content/themes/atahualpa373/images/header/, even though my child them is located in /wp/wp-content/themes/atahualpadjurby/images/header/. The same is true for the favicon folder. Ideally, when there exists a folder in the child theme folder, the contents of that should be used instead of the main theme's. I.e., if there exists a favicon.ico file in /wp/wp-content/themes/atahualpa373/images/favicon/, it should be detected if I set favicon.ico as the favicon file name. An option would be to allow full URLs for the header and favicon.

Please fix this. Aren't you tired of the support questions on every new version, that could be avoided by supporting great WordPress features? Also, child themes allow for easy inclusion of custom functions in functions.php, custom css (if you don't want to store it in the options for some reason, version control maybe?), and probably other great stuff.
  #2  
Old Dec 18, 2011, 03:23 PM
Knut Sparhell
 
34 posts · Jun 2010
Fredrikstad, Norway
The concept of child themes do not require a parent theme to support it's use. The support for child themes is in WordPress core.
  1. It will use the style.css fo the child theme
  2. It will use the template file of the child theme if it exists, following the template hierarchy of WordPress
  3. It will include the functions.php of the child theme. If the the new functions.php should just modify the existing functions, then all functions in the parent theme must be "pluggable".

There is no general rule that says if a file of other types than tempate files are found in the child theme, those should be used in favor of the ones in the parent theme.

A theme might check for and detect that it's called through a child theme, and then do those file checks itself. This would be som kind of explicit child theme support. But this will come at a performance penalty.

Better to allow for file paths to child theme folders in the rich theme options of Atahualpa.

The main problem with Atahualpa upgrading is that it uses it's own folders for media files. Those are removed and replaced by only the included files after an automatic upgrade. Twenty Eleven also uses header images, but they are uploaded to the media library.

A child theme of Atahualpa is the way to change the loop. After PHP was removed from options this is the only way, except modifying the theme files themselves.

Creatin of a child theme might be done by the end user by one click. A desired set of template files could be copied, and the user would be ready to edit them.

If then all PHP functions of Atahualpa was put inside a "if !function_exists()" block, then the child theme explicit support would be complete.

Bookmarks

Tags
child theme

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to create a child theme ? thekjub9 New Versions, & Updating 6 Jun 7, 2011 02:56 AM
ATA 3.5.3 Different Behavior In Child Theme from Non-Child Theme royhuggins Page & Category Menu Bars 7 Dec 4, 2010 07:26 PM
Atahualpa child theme function php kdawes01 Atahualpa 3 Wordpress theme 1 Sep 23, 2010 03:58 AM


All times are GMT -6. The time now is 01:14 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.