Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Trying to avoid child themes. Header problems


  #1  
Old Feb 5, 2014, 06:30 PM
Kudzu
 
32 posts · Nov 2009
I have a WordPress network site and each blog shares the same header navigation, but separate header layout.

The ideal solution would be to do a php include file in the header option area of theme configuration. That way, I can have the following:

navigation.php gets loaded into:
business_hdr.php
homestead_hdr.php
main_hdr.php

Then, for each sub blog, all I have to do is include the proper php header for the design I need. Then, if I ever have to change the navigation link, I just update one file...navigation.php.

The problem is, I'm not allowed to do php code in the theme options and the code doesn't recognize html include.

That only leaves me to use child themes so each blog can have the php include header code on the index.php file. That's how I'm giving each header it's own look. I had to duplicate the atahualpa folders so I can do a php include line on each of the index pages.

It's a pain to maintain. Now that there is an update available for atahualpa, I have to update a lot of instances!

Is there a better way?
  #2  
Old Feb 5, 2014, 06:50 PM
juggledad's Avatar
juggledad
 
23,569 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what is in the header configuration you need to change? you can have separate header images for each blog now (see the onscreen info ATO->Image Location->Images Directory)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Feb 5, 2014, 07:04 PM
Kudzu
 
32 posts · Nov 2009
The problem with just using an image is that I need a navigation inserted within each header image. The only way I know how to do that is to use tables. The image files surround a row. Inside the row is where I load the navigation.php.

If you look at my site, http://kudzujungle.com you'll see the main header. Click on the homestead link, and you will see the same header style, using the same navigation, but I need to change the entire header image. The same will hold true for the business section, and so on. Each section needs a different header color/image theme, but the same navigation buttons that control the whole network of blogs.

If I just use a header image, then how do I get the navigation buttons within each image?

Last edited by juggledad; Feb 5, 2014 at 08:30 PM.
  #4  
Old Feb 5, 2014, 08:47 PM
juggledad's Avatar
juggledad
 
23,569 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
I need a navigation inserted within each header image
whay don't you use the Atahualpa image them the atahualpa menu, ie in 'Configure Header Area' use
HTML Code:
%image %pages
Your image will show first then the menu. With the new image location. you could create a folder for each site, put the image you want in it and that image would show for that site.

Using CSS you can style the menu's as you want.

Let me ask, how many sites do you think you will have? I'm just always interested in why people decide to go with a multisite.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Feb 5, 2014, 09:29 PM
Kudzu
 
32 posts · Nov 2009
The reason I have so many sites is because each site has it's own specific business plans, functions and purpose.

I have a business plan for opening and running a coffee house. If I mix up coffee house things with homesteading plans, it's going to get confusing. I also have a business site, which has business topics that might not have anything to do with running a restaurant. Then there is music because my husband and I are musicians, and we keep that separate, and it will eventually have an online radio station that has nothing to do with the other sites. However, I keep them all on Kudzu Jungle, as a giant community.

I guess I compartmentalized everything so the plans can be separated, yet as one community.

As for the menu, I tried that option you described. It wants to make a button out of pages that I don't want to have buttons. Plus, I want my own graphics for the button. I guess I'll just have to have multiple instances of the theme.
  #6  
Old Feb 5, 2014, 10:18 PM
Kudzu
 
32 posts · Nov 2009
I just noticed your "for hire" footer on your posts. I really really really don't want to have multiple instances of the theme to have to update for the rest of my blogging life.

Can you make php work in the theme options, where it says php can no longer be added?

All of this would be solved if I could just put a php include file there. I could call each header file right into the options.
  #7  
Old Feb 6, 2014, 04:54 AM
juggledad's Avatar
juggledad
 
23,569 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You CAN add a new widget area to the 'Config Header Area' option - something like
HTML Code:
<?php bfa_widget_area('name=Header'); ?>
Then you could add a text widget to the new 'Header' widget area.
Install teh plugin 'exec php' and you can put php in the text widget.
__________________
"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
Does Montezuma not support child themes? UTAN_dev Montezuma Theme 8 May 17, 2013 11:20 PM
scared of updating - no child themes used jcpcosta New Versions, & Updating 1 Jan 7, 2013 10:54 AM
Atahualpa child themes + Thesis look-a-like everyman New Versions, & Updating 3 Feb 11, 2010 12:42 PM
Child themes David Latapie Header configuration & styling 3 Nov 2, 2009 06:33 AM


All times are GMT -6. The time now is 05:35 AM.


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