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 »

Different header images for MU Blogs?


  #1  
Old Jun 12, 2010, 06:06 PM
wadams92101's Avatar
wadams92101
 
46 posts · May 2010
Different header images for MU Blogs?

I've got an MU installation and want different headers for each of the blogs. Is there a way to do it with Atahualpa? Right now I'm using the Atahualpa header for Main blog but on the sub-blogs I'm replacing the theme header images with the dynamic header plugin. However, that results in a really slow load. Is there a way to do it within the Atahualpa theme?

Last edited by wadams92101; Jun 14, 2010 at 03:33 PM.
  #2  
Old Jun 15, 2010, 11:38 AM
wadams92101's Avatar
wadams92101
 
46 posts · May 2010
Anyone?
  #3  
Old Jun 19, 2010, 01:06 PM
wadams92101's Avatar
wadams92101
 
46 posts · May 2010
Has everyone taken a World Cup hiatus?
  #4  
Old Jun 25, 2010, 06:02 PM
wadams92101's Avatar
wadams92101
 
46 posts · May 2010
Ok, So as to close this unanswered post, I'll assume that means its not possible.

Last edited by wadams92101; Jun 30, 2010 at 01:59 AM.
  #5  
Old Jun 26, 2010, 04:05 PM
juggledad's Avatar
juggledad
 
23,755 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what version of Atahualpa and WP?
I haven't had much reason to play with MU and don't have a test site setup
Have you tried the built in rotating headers?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Jun 27, 2010, 11:07 AM
talynndar
 
18 posts · Jun 2010
I am looking for same answer...

the built in rotating headers will give you the same headers on multiple blogs

I think the original poster and myself looking for a way to do a different header on each blog

so I have mainblog.com - that will rotate headers
and then I have jane.mainblog.com will have jane header
and then mary.mainblog.com would only have mary header

I thought maybe this could be done by uploading a maryheader.jpg in a folder called maryheader vs header and then calling the %image from that folder only or maybe calling %maryimage

so the easy fix would be uploading a few files and then editing the theme within the theme options editing in the backend of that particular blog. Any edits made in the main theme on WPMU would apply to all blogs

but am lost at where the %image is created and called on?

am happy to send paypal for help on this one
  #7  
Old Jul 1, 2010, 02:55 PM
johanM
 
16 posts · Jun 2010
in bfa_rotating_header_images.php, comment as in the code

Code:
// if (file_exists(ABSPATH."/wpmu-settings.php")) {
       ................
// }

//     if ( !file_exists( ABSPATH."/wpmu-settings.php" ) OR !$files ) {    
    if ( !$files ) {   // <====== change to this
            .........
    }
perhaps you need to modify .htaccess as

Code:
#upload files
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
that would be enough

Last edited by johanM; Jul 1, 2010 at 07:03 PM.
  #8  
Old Jul 5, 2010, 03:15 PM
wadams92101's Avatar
wadams92101
 
46 posts · May 2010
Thank Johan. I've been away from this thread for awhile and just saw your reply. I'll give it a try and report back.
  #9  
Old Jul 13, 2010, 09:32 AM
Aubergine's Avatar
Aubergine
 
15 posts · Sep 2009
Maryville, TN
Thanks to Johan for posting a possible fix. I made the changes to WP 3.0 MU with Atahualpa3.5.1, with an added test site on my web host. The changes did no harm to either site, but on the test blog, header images still load from the main site. I placed the header image for the test site in its files folder (not in the year/month folder). I found a place in the functions file that looks for wpmu-settings.php and changed it to ms-settings.php.

Perhaps a temporary kludge would be to install a copy of Atahualpa in the themes folder (named Atahualpa351-sitename) and use it with the added site?

Last edited by Aubergine; Jul 13, 2010 at 10:12 AM. Reason: clarification
  #10  
Old Jul 14, 2010, 05:20 AM
Aubergine's Avatar
Aubergine
 
15 posts · Sep 2009
Maryville, TN
I found a simple fix for the short-term. In CPanel, I added an images folder under the site's "files" folder. Added the desired header image to it and added an overriding style to ATO Options, Add HTML/CSS Inserts, using the !important property. It worked in FF, IE, and Chrome.

#imagecontainer.header-image-container {
background: url('<?php bloginfo('url'); ?>/files/images/filename.jpg') top left no-repeat !important;
}

Easy to change later, if Atahualpa folds in this feature in a future release, and it won't break if the same procedure is used with multiple blogs.

Last edited by Aubergine; Jul 14, 2010 at 05:21 AM. Reason: typo
  #11  
Old Jul 14, 2010, 11:08 AM
tsotsi
 
5 posts · Jun 2010
Siegburg
Thanks Aubergine!

you specify a "filename.jpg" for the headerimage. Does that mean, rotating headers are not working in this fix and you can only use one single image here?

Last edited by tsotsi; Jul 15, 2010 at 08:11 AM. Reason: typo
  #12  
Old Jul 15, 2010, 06:52 AM
Aubergine's Avatar
Aubergine
 
15 posts · Sep 2009
Maryville, TN
Yes, a single image. I'm making a site for someone who is wants one header image on each of several subdomains. In that situation, the CSS bandaid works.

Otherwise, the theme code would need to be edited to look inside the individual site folders for the array of images or look into sub-folders of the /images/header folder and use ones with a certain filename pattern. I just don't have time to mess with that, or more accurately, make a mess with that.

Since there are still WPMU sites out there, with site files in a different folder, revisions to the theme would be a little tricky, but I hope this feature will be added in the future. Atahualpa is well-suited for multisites, since it's so easy to tweak options for each site, and the new Menus work fine with it as widgets.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
WPMU search all blogs plugin billc108 Plugins & Atahualpa 3 Aug 28, 2010 05:21 AM
Multiple Blogs on One Site? gcarson Center area post/pages 1 Jul 13, 2010 06:46 PM
Header Image - 5 images in one header jkfly4 Header configuration & styling 3 Jan 4, 2010 05:57 PM
Best way to do static site with multiple blogs? (collective wisdom needed) lhanft Atahualpa 3 Wordpress theme 2 Aug 17, 2009 03:11 PM
header images PJK Header configuration & styling 1 Apr 11, 2009 06:53 PM


All times are GMT -6. The time now is 04:47 PM.


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