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 » Page & Category Menu Bars »

ATA 3.5.3 Different Behavior In Child Theme from Non-Child Theme


  #1  
Old Dec 4, 2010, 01:44 AM
royhuggins
 
4 posts · Dec 2010
Hi everyone,

My client is running Atahualpa 3.5.3. I need to make changes to the header that require coding at the PHP level so I need to make a child theme. I made a child theme, but some essential behavior changes when the child theme is activated vs. having ATA 3.5.3 activated.

My child theme contains only style.css and no other files. The contents of style.css are:

Code:
/*
Theme Name:     Roy's Theme
Description:    Roy's modifications to Atahualpa for [REDACTED -- Client's site]
Author:         Roy Huggins
Author URI:     [MY WEBSITE URL]
Template:       atahualpa353
Version:        1.0
*/
@import url("../atahualpa353/style.css");
When the child theme is activated, the page menus in the header are not populated with the rMenu class names and IDs. I tracked the program flow to line 12 of bfa_header_config.php. The test "has_nav_menu('menu1')" is FALSE when the child theme is activated and TRUE when ATA 3.5.3 is the active theme.

Is Atahualpa 3.5.3 supposed to support child themes? I.e. is it expected that the child theme breaks or is this a compatibility bug? Is there something else I need to set up in my child theme in order to retain Atahualpa's configuration settings?

Thanks in advance!
-Roy
  #2  
Old Dec 4, 2010, 03:47 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
First off are you sure you have to make changes to the header code and that your change can't be made in the theme options? The majority of changes people want to make can be made using the theme options and there fore they don't need child themes.

So given that, what change are you attempting to make?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Dec 4, 2010, 10:06 AM
royhuggins
 
4 posts · Dec 2010
Hi Juggledad,

Thanks for the quick response!

My client wants more text in the header and she wants to be able to edit it (this is separate from the site's tagline and needs more complex formatting.) So I want to be able to use includes. I definitely know that Atahualpa is very customizable. My client has managed to do a ton with it on her own and called me in because she can't accomplish her desired change via the Atahualpa settings, unfortunately. Nothing is perfect.

Also in the future I might need other things that require being able to use my own functions.php file. So I'm curious about the status of child theme support in Atahualpa. But maybe the official stance is that Atahualpa is not compatible with child themes? If so, I'll need to break compatibility with future upgrades in order to make the changes my client is looking for. But such is web development life.

Thanks so much for your immense time and energy. I really appreciate it!
-Roy
  #4  
Old Dec 4, 2010, 11:25 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Why not add a widget area to the header and then you can put in a text widget and play to your hearts content?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Dec 4, 2010, 01:52 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
To add to Juggledad's idea you could then add the Spectau.la page plugin that will let you add any page to a widget area. Makes for very easy editing.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #6  
Old Dec 4, 2010, 05:27 PM
royhuggins
 
4 posts · Dec 2010
Those are excellent suggestions. Thanks, guys. I have a lot of experience with PHP but I'm pretty new to hacking on Wordpress so both of those are useful hints. I was able to execute the changes without a child theme!

I am interested in the child theme bug, however. I'm sure there are things someone might need to do that absolutely require extending Atahualpa. As it stands, making a child theme introduces buggy behavior. If Atahualpa is meant to be stand-alone without support for child themes then I can understand that. I'm just curious if your design goal includes a desire to be child-theme compatible or if I should regard Atahualpa as a highly flexible but not extendable theme.

Thanks again!
-Roy
  #7  
Old Dec 4, 2010, 05:29 PM
royhuggins
 
4 posts · Dec 2010
Ah, I just realized that I should specify that when I say "extendable" I mean to draw an analogy to OOP, where Atahualpa is like a class and a child theme from Atahualpa would be like a class that extends it. I understand that it presently can be extended using plugins or probably other means I haven't encountered yet.

Cheers!
  #8  
Old Dec 4, 2010, 07:26 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You would have to pose that question to Flynn, who is the developer/owner of the theme
Larry and I are just moderators
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Theme Settings not carrying over for child sites in a WP3 multisite setup slupo New Versions, & Updating 1 Dec 3, 2010 04:36 AM
Feedburner subscription vs default - ATA theme sjolyjuly RSS, Feeds & Subscribing 0 Sep 28, 2010 07:06 AM
Atahualpa child theme function php kdawes01 Atahualpa 3 Wordpress theme 1 Sep 23, 2010 03:58 AM
About Ata Theme jdem02 Plugins & Atahualpa 2 Apr 19, 2010 11:09 AM


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


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