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 »

[SOLVED] HOW TO: MultiSite or WP Multi Network: Easy Header Images


  #1  
Old Jan 15, 2011, 07:56 PM
LANtait's Avatar
LANtait
 
56 posts · Jan 2011
Cebu Island, Philippines ~ I live on a tropical island!
Tick [SOLVED] HOW TO: MultiSite or WP Multi Network: Easy Header Images

This represents an easy way to add header images to MultiSite or WP Multi Network installations of WordPress for each site.
In five easy steps…

Download the Zip File, Unzip, Upload the Three Files to Your Server, Create the New Directories, and Upload Your Header Images.

1. Download the Zip File

CLICK HERE

Username: atahualpa
Password: custom

2. Unzip

Gee, you already know how to do that!

3. Upload the Three Files to Your Server

Atahualpa 3.6.1

If you are using Atahualpa 3.6.1 you can just copy the files to your server with your favorite FTP program. Just replace the files that are there in these two directories.

themes/atahualpa
functions.php

themes/atahualpa/functions
bfa_rotating_header_images.php
bfa_custom_site_dir.php


Atahualpa Other (manual)

If you are not on 3.6.1 upgrade to 3.6.1 first! OR...
Follow the manual upload instructions HERE…

4. Create the New Directories

Using FTP, you will need to create a new header directory for each of your sites.

You need this directory structure...

wp-content/blogs.dir/example.com/images/header

Replace example.com with your domain name, without the www.

5. Upload Your Header Images

Using your FTP Program Upload Your Header Images to the header directory you just created.

You Are Finished!

Just give it a try!

Click Here for More Detailed Instructions.

Last edited by LANtait; Jan 15, 2011 at 07:58 PM.
  #2  
Old Jan 16, 2011, 06:17 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You could just add the rest of the directions here instead of making users travel to another location. That would be much more helpful and supportive.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 16, 2011, 06:26 PM
LANtait's Avatar
LANtait
 
56 posts · Jan 2011
Cebu Island, Philippines ~ I live on a tropical island!
@juggledad
Oh, ok.

These are the directions for...
Other than Atahualpa version 3.6.1

1. Download the zip file.

Same As Above…

2. Unzip

Same As Above…

3. Upload ONE File to Your Server

See instructions above for downloading, however upload only ONE file into this directory:

themes/atahualpa/functions
bfa_custom_site_dir.php

4. Modify

themes/atahualpa/functions
bfa_rotating_header_images.php

Replace This:

PHP Code:
$imgpath TEMPLATEPATH '/images/header/';
$imgdir $templateURI '/images/header/'
With This:

PHP Code:
if ( is_dirBFA_CUSTOM_DIR '/images/header/' ) ) {
    
$imgpath BFA_CUSTOM_DIR '/images/header/' ;
    
$imgdir BFA_CUSTOM_URL '/images/header/' ;
} else {
    
$imgpath TEMPLATEPATH '/images/header/' ;
    
$imgdir $templateURI '/images/header/' ;

5. Modify

themes/atahualpa
functions.php

Replace This:

PHP Code:
include_once (TEMPLATEPATH '/functions/bfa_header_config.php'); 
With This:

PHP Code:
include_once (TEMPLATEPATH '/functions/bfa_custom_site_dir.php');
include_once (
TEMPLATEPATH '/functions/bfa_header_config.php'); 
Note: Actually this just adds the first line before the second, which already exists.

6. Create the New Directories

Same As Above…

7. Upload Your Header Images

Same As Above…

You Are Finished!

Just give it a try!
  #4  
Old Jan 16, 2011, 07:05 PM
LANtait's Avatar
LANtait
 
56 posts · Jan 2011
Cebu Island, Philippines ~ I live on a tropical island!
Directory Structure Details for Less Experienced Users.

You will need a new header directory for each of your sites.
Use your FTP program and start with your wp-content directory.

You need this directory structure for each site.
wp-content/blogs.dir/example.com/images/header

Replace example.com with your domain name. See Examples Below.

That Means:

Using your FTP Program:
1. In the wp-content directory create a directory that is blogs.dir (if it doesn’t already exist).
2. In the blogs.dir directory create a directory that is your domain name.
To find your domain name, look at the address bar.
Mine says: http://alantait.net/
The domain name is between the two slashes // and the very next slash /
DO NOT include any www. if you are using that.
So http://www.blog.example.com/ would be a directory called blog.example.com
3. In your domain name directory create a directory that is images.
4. In the images directory create a directory that is header.
This structure mimics the structure in the Atahualpa theme directory.

EXAMPLES:
These Examples are for single sites, multisite subdomains, and WP Multi Network sites.

http://acts-29.net/
http://www.acts-29.net/
wp-content/blogs.dir/acts-29.net/images/header

http://franciskong.acts-29.net/
http://www.franciskong.acts-29.net/
wp-content/blogs.dir/franciskong.acts-29.net/images/header

http://filipina.fil.net/blog/
http://www.filipina.fil.net/blog/
wp-content/blogs.dir/filipina.fil.net/images/header
  #5  
Old Jan 16, 2011, 07:59 PM
LANtait's Avatar
LANtait
 
56 posts · Jan 2011
Cebu Island, Philippines ~ I live on a tropical island!
SPECIAL INSTRUCTIONS FOR
MultiSite Sub-Directory Users

Warning: Do Not use these instructions for a single site, a multisite subdomain, or a WP Multi Network site.

When you use multisite in sub-directory mode, there is no unique domain name, so the directory structure changes slightly... this is ONLY for sub-DIRECTORY mode, if you set that up at the very start of your WordPress install.

Here is how sub-directory sites would look...
Code:
http://www.example.com/peter/
http://www.example.com/paul/
http://www.example.com/mary/
The instructions are the same, except you need to add a dash (-) Plus the sub-directory.
wp-content/blogs.dir/example.com-directory/images/header

Where:
example.com = Your Domain Name (no www.)
directory = Your Sub-Directory

EXAMPLES
Code:
http://example.com/peter/
http://www.example.com/peter/
wp-content/blogs.dir/example.com-peter/images/header
Code:
http://example.com/paul/
http://www.example.com/paul/
wp-content/blogs.dir/example.com-paul/images/header
Code:
http://example.com/mary/
http://www.example.com/mary/
wp-content/blogs.dir/example.com-mary/images/header
  #6  
Old Jan 16, 2011, 08:09 PM
LANtait's Avatar
LANtait
 
56 posts · Jan 2011
Cebu Island, Philippines ~ I live on a tropical island!
Question, why the empty image directory?

The empty image directory mirrors the theme file structure. However, this directory is a convenient place to put things like logo files on a per site basis.

Likewise we will be looking at additional site customization issues regarding theme updates, multisite, and WP Multi Network sites and will be using this for storage of unique files in this regard.

For example, a custom site may need logo files, icon files, footer or sidebar image files, and header files. This gives a place that will not be overwritten with each theme update and would allow the use of automatic updates without loss.

Bookmarks

Tags
header, header image, multi network, multisite



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Header Images and other elements in WP Network installations BanditSiix Header configuration & styling 1 Jan 13, 2011 06:47 PM
Wordpress network feature > header problem! JeromeH Header configuration & styling 10 Oct 4, 2010 11:05 PM
Easy: Left-align headlines on multi-post pages but center on single? Jeff G Excerpts, Read more, Pagination 5 Jul 26, 2010 09:08 AM
How to: The easy way to add Facebook thumbnails to posts with no images Androsko Center area post/pages 0 Mar 8, 2010 08:15 AM
Is it easy to place a new widget in the header and footer for a novice jkfly4 Sidebars & Widgets 1 Jan 30, 2010 01:09 PM


All times are GMT -6. The time now is 05:42 PM.


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