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 »

Multiple Categories, Multiple versions of Altahualpa

Old Apr 20, 2009, 10:58 AM
16 posts · Apr 2009
Athens, GA
Layout Multiple Categories, Multiple versions of Altahualpa

This one's for Flynn (or whoever's looked at the coding deeply enough to know what I might be looking for).

First like everyone else, I have to say this: Altahualpa ROCKS! It's the best coded, best designed, and most flexible theme, without any doubt.

Now because my blog (like everyone else's, I'm sure) covers an eclectic mix of topics, I've decided some of my top one will have a different look to reflect their respective topics. For that reason, I'd already installed (long before I got Ata) GYS Themed Categories, which is very good at it's job.

The next step was to create a separate Ata install, which I renamed "atahualpa-books" (just to make it easier to tell them apart). A few false starts led me to look through the database, and I realized I also needed to change the $shrotname variable's value in bfa_them_options.php from:
PHP Code:
$shortname "bfa_ata"
PHP Code:
$shortname "bfabk_ata"
Likewise, in fucntions.php, I changed:
PHP Code:
PHP Code:
(as the second version is in the folder "atahualpa-books").

Unfortunately, now I can't get the book version to work at all (it seems to be missing all the header information from the theme), and the categoried version only works when I'm in category view, but not when I go read the individual posts in that category.

What am I missing? Is there something else I needed to change? I've been raking through the code, but can't find whatever it might be.


Last edited by Jaguwar; Apr 20, 2009 at 11:33 AM.
Old Apr 20, 2009, 08:32 PM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
It'll be troublesome and require many file edits to do it this way, I suggest that you use HTML -> CSS Inserts to apply different looks to different sections of the site.

If you look into the source code you'll notice that on each page the <BODY> tag has various classes and often an ID, too. You can use these classes and the ID's to target specific pages with CSS or even "group style" a selection of pages differently from the rest of the site.

Start each CSS style with the body class or ID of the page or pages you want to target and add the element you actually want to style after that, like this

This would let you style the post container on the page with the ID 13
HTML Code:
body#body-page-13 div.post {
All Headline containers on the Category page with the ID 1:
HTML Code:
body#body-cat-1 div.post-headline {
You should be able to style every single element on any given page or group of pages with this method.
Old Apr 21, 2009, 06:08 AM
16 posts · Apr 2009
Athens, GA
Hmmm.... that sounds even longer, considering I want to change the look of the whole page. Lots of elements there. I'll take a look again, though. Thanks for the suggestion!
Old Apr 21, 2009, 09:49 PM
16 posts · Apr 2009
Athens, GA
I've solved it! I'm guessing there was a namespace violation problem preventing what I needed to have happen. And no tedious item-by-item css additions.

I'm nothing if not lazy...
Old Apr 21, 2009, 10:49 PM
5 posts · Apr 2009
I had a question along these lines too. How much editing of source files would need to be done if one were to have multiple installs of a theme? I help run a fansite for a theme park, and we like to have special themes for holidays, and maybe even for new ride openings if it makes itself friendly to a theme. For the sake of conversation, let's say the default theme is Ata, and the special theme is Ata-Purple. Can Ata and Ata-Purple automatically have the same sidebar widgets, or would I have to start all over from scratch? Same with the overall layout (other than colors)?

Thanks for your help.
Old Apr 21, 2009, 10:58 PM
16 posts · Apr 2009
Athens, GA
No, all widgets would still be in your sidebars and so on. However, I discovered that multiple installs of Ata doesn't lend itself to multiple color schemes easily. I had to change variable names....
Old Apr 22, 2009, 12:59 AM
5 posts · Apr 2009
So Jag, what was the variable you had to change? I did the same tweaks as what you posted and now I'm left with a naked site. I'm not too great with code, but willing to learn!
Old Apr 25, 2009, 09:08 AM
5 posts · Apr 2009
No help for this one? Is this a task that's really just too big to be reasonable?
Old Apr 26, 2009, 05:56 AM
paulae's Avatar
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
Why not just have some custom post and/or page templates?
Old Jun 4, 2009, 05:35 PM
16 posts · Apr 2009
Athens, GA
Well shoot, I never saw this or got an email about it. Must have ended up in my spam box, and I apologize for the loooooooong delay.

Ok, here's what I did. I have a really neat little text editor called NoteTab Pro that allows me to search the disk for a particular string, and make those changes without having to open the file. If you have something like that, it will be very easy. If not, it might be a little longer, but not impossible: just open every file in the theme and use your software's "Search/Replace" function (hitting CTRL+F should launch said function).

Either way, in your COPY of the theme files (they should be in a separate folder and everything) you want to replace the string:
with something else

In my case, since I wanted the theme to be adjustable for various categories, I used abbreviations of the categories. For instance, "bfa_ata" became "bfapoe_ata" for the poetry category.

Save the files, and upload.

Now you also need some way to give each category it's own theme (I'm using GYS Themed Categories), and something else that let's you view and CUSTOMIZE each of your Atahualpa versions. I'm using "Theme Test Drive" for that.

Hope that h


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple post pages michael close Forum How-To 3 Jun 23, 2009 07:03 PM
Multiple / Alternate Sidebars ??? Shepherd Jim Sidebars & Widgets 7 Jun 10, 2009 07:34 AM
Adding multiple background images? crashley1784 Atahualpa 3 Wordpress theme 0 Jun 6, 2009 07:30 PM
multiple pages... (homepage) designer666 Atahualpa 3 Wordpress theme 1 May 12, 2009 09:43 AM
Deleting multiple entries HenryGomez Installing & running WordPress 3 Apr 15, 2009 01:59 AM

All times are GMT -6. The time now is 02:11 PM.

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