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 » Header configuration & styling »

Different header images for MU Blogs?


  #1  
Old Jun 12, 2010, 05: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 02:33 PM.
  #2  
Old Jun 15, 2010, 10:38 AM
wadams92101's Avatar
wadams92101
 
46 posts · May 2010
Anyone?
  #3  
Old Jun 19, 2010, 12:06 PM
wadams92101's Avatar
wadams92101
 
46 posts · May 2010
Has everyone taken a World Cup hiatus?
  #4  
Old Jun 25, 2010, 05: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 12:59 AM.
  #5  
Old Jun 26, 2010, 03:05 PM
juggledad's Avatar
juggledad
 
23,765 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, 10: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, 01: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 06:03 PM.
  #8  
Old Jul 5, 2010, 02: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, 08: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 09:12 AM. Reason: clarification
  #10  
Old Jul 14, 2010, 04: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 04:21 AM. Reason: typo
  #11  
Old Jul 14, 2010, 10: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 07:11 AM. Reason: typo
  #12  
Old Jul 15, 2010, 05: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



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


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


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