Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   HOWTO: Easy Header Fix (http://forum.bytesforall.com/showthread.php?t=14544)

LANtait Jun 8, 2011 07:39 PM

HOWTO: Easy Header Fix
 
If you use this fix... Think about donating to Juggledad, I've spent time figuring this issue out and coming up with the fix, but Juggledad is here daily supplying support. Being in the Philippines and without paypal, I cannot send money. However, you sending Juggledad a donation will encourage him (and me) to continue to support Atahualpa. You can use the 'Donate to Juggledad' button on the donate page.
Thanks, LAN

The Atahualpa Easy Header Fix has many great features including...
  1. It protects custom header images, logo images and favicons during updates (even automatic updates).
  2. It is backwards compatible with all Atahualpa settings (it breaks no functionality).
  3. It works for Single Sites and Multi Site Sites and WP Multi Network Sites.
  4. It allows automatic updates of Atahualpa (from WordPress.org), which will not delete custom image files (Truly automatic if merged into the Atahualpa code).
  5. It includes uploading all per-site graphics, the headers, the the logo and the favicon (Even for MultiSite Installs!).
  6. All image files are uploaded via the WordPress media uploader (no FTP access is needed).
  7. It uses standard WordPress functions to find the upload directory.
  8. It allows Sort and Shuffle modes for Multi Site and Multi Network as well as Single site mode.
  9. It allows Normal Default Settings for Atahualpa to function in a normal way.
  10. It is SMALL (only 22KB download) and makes only nine very tiny changes in five easy to upload files ~ with full documentation.
All in all it is a very nice Fix, super easy to use, stable, and hopefully, it will be considered for permanent inclusion into the Atahualpa Core Code.

Installing the Easy Header Fix
This fix is very stable, powerful and much easier to use! In fact, easy as One, Two, Three!

Atahualpa Easy Header Fix Download Page

Atahualpa Easy Header Fix Complete Instructions
Note: These instructions will be posted below...

The website for this fix (including history and versions) is at:
http://alantait.net/atahualpa/

LANtait Jun 8, 2011 08:26 PM

Installing the Easy Header Fix
This fix is very stable, powerful and much easier to use! In fact, easy as One, Two, Three!

Step 1 ~ Download
Step 2 ~ Unzip
  • You know how to do that!

Step 3 ~ Upload

Just upload these files into your Atahualpa Theme directory on your server via FTP. (This is the only time you need FTP. All uploads of image files will be handled by the Media Uploader inside of Wordpress.)

This Fix contains Six files.

One File is added, namely:
  • functions/bfa_ata_multisite.php

Four Files are modified, namely:
  • functions/bfa_rotating_header_images.php
  • functions/bfa_header_config.php
  • header.php
  • functions.php

One ReadMe File:
This file documents and explains the fix including nine tiny modification, and where they are.
  • README_EASY_HEADER_FIX.php
Note: The ReadMe file is for information only and does not need to be uploaded.

=====

If you use this fix... Think about donating to Juggledad, I've spent time figuring this issue out and coming up with the fix, but Juggledad is here daily supplying support. Being in the Philippines and without paypal, I cannot send money. However, you sending Juggledad a donation will encourage him (and me) to continue to support Atahualpa. You can use the 'Donate to Juggledad' button on the donate page.
Thanks, LAN

LANtait Jun 8, 2011 10:18 PM

Configuring the Easy Header Fix

STEP 1

Upload Image Files to any Page or Post

Note: I suggest you use the ABOUT page! This makes them easy to find and change later. However you can use any post, page or even go straight to the media uploader. The rest of this will assume we are using the About page to anchor our site images to.

From the About Page Click Upload/Image >> Add an Image

Upload all Headers, Logos and your Favicon in the same place makes it easy to maintain. The Header Files and the Logo File MUST be in the same location.

TAKE NOTE of the "File URL" and copy it!

For this example case I will assume the following: (But you must use what your WordPress gives you!)

FAVICONNote: If you have problems uploading .ico type files, login as Super Admin, navigate to the "Super Admin" menu "Options" >> Upload Settings >> Upload file types >> and add "ico" to what is already there.

Example: jpg jpeg png gif ico

LOGO
ROTATING HEADERS
Note: Important Rules For Header File Names...
1) Header files MUST begin with "header_"
2) Header files MUST NOT contain a dash (-)
3) Header files MUST NOT contain extra dots (.)
Note: The following are examples of WRONG file names...
header_be-4.jpg ~ Contains a Dash
header_nice.1.jpg ~ Contains extra Dot
header2good_2.jpg ~ Does NOT start with "header_"


STEP 2

Rotating Header Files and Logo Examples

Insert into:
Atahualpa Theme Options >>
Style & edit HEADER AREA >>
Show Logo Image?

1) Custom Headers and Custom Logo
http: //example.com/files/2011/02/Rx_symbol.png

In this case we have uploaded both a custom logo and one or more custom headers in the same folder.
From the Upload page we copied this...
http: //example.com/files/2011/02/Rx_symbol.png
The part in blue tells the theme where to find the header files.

2) Custom Headers and DEFAULT Logo
/files/2011/02/logo.png

In this case we want to use our custom headers but the default logo, logo.png
One of our upload headers was...
http: //example.com/files/2011/02/header_be_4.jpg
We use the part after the domain name and before the file name and add the default logo from the theme as shown in blue and brown above.

3) Custom Headers and NO Logo
/files/2011/02/

In this case we want to use one or more custom headers, but we want NO logo at all. Like in step two...
One of our upload headers was...
http: //example.com/files/2011/02/header_be_4.jpg
We use the part after the domain name and before the file name as shown in blue above.

4) DEFAULT Headers and Custom Logo
~http://example.com/files/2011/02/Rx_symbol.png

In this case we plan to use the default headers from the theme, but we want to use a Custom Logo.
This step is identical to step one, except we add a tilde "~" to the beginning to tell the theme to use the default headers instead.

5) DEFAULT Headers and DEFAULT Logo
logo.png

In this case we want to use the default headers and the default logo, just put in the default filename,
logo.png
This is the standard startup for Atahualpa when it is first loaded.

6) DEFAULT Headers and NO Logo
(leave blank)

In this case we just want to configure our site to get rid of the default logo, and to use the default headers. Just delete everything in the box and leave it blank.


STEP 3

FAVICON Examples

Insert into:
Atahualpa Theme Options >>
Overall Style & Config. >>
Add a FAVICON

1) Custom FAVICON
http: //example.com/files/2011/02/rx.ico

In this case we have uploaded both a custom Favicon called <strong>rx.ico</strong> (or anything you want).
From the Upload page we copied this...
http: //example.com/files/2011/02/rx.ico
This Favicon may actually be anywhere on the Internet that you have permission to use. So the Favicon does not have to be in the same location as the Logo and Headers.

2) DEFAULT FAVICON
new-favicon.ico

In this cause we do NOT want to use a custom Favicon so we just leave it with the default value. We may also wish to choose one of the other file names included in the Atahualpa Theme and insert that file name here. This is the default setting.


Building on Success!

Do you want to know the History of this Fix?
=====
If you use this fix... Think about donating to Juggledad, I've spent time figuring this issue out and coming up with the fix, but Juggledad is here daily supplying support. Being in the Philippines and without paypal, I cannot send money. However, you sending Juggledad a donation will encourage him (and me) to continue to support Atahualpa. You can use the 'Donate to Juggledad' button on the donate page.
Thanks, LAN

LANtait Jun 8, 2011 10:31 PM

Although it is possible to use an external (not on your server) URL for the Favicon, I would not advise it.

For example:

If your website was:
http://example.com/
You could use a favicon at:
http://example.net/some/favicons/christmastree.ico
This is NOT possible in the case of the Headers and Logo.

If this helped... Think about donating to Juggledad. He is here daily supplying support. Sending Juggledad a donation will encourage him (and me) to continue to support Atahualpa. You can use the 'Donate to Juggledad' button on the donate page.
Thanks, LAN

LANtait Jun 9, 2011 05:58 PM

BUGFIX and Easy Header Fix

Both Atahualpa 3.6.4 and 3.6.7 have a BUGFIX (one or more) that can cause problems for the Easy Header Fix.

Please Go Here and install all BUGFIX's for your version BEFORE installing the Easy Header Fix.

Look at the sticky topics at the top, you will notice Threads that begin something like "BUGFIX 364-09:"

That means it is the BUGFIX for Atahualpa Version 3.6.4 and it is the Ninth (-09) BUGFIX for that version (meaning there are eight BugFixes before that one for Version 3.6.4).

If you would like to know which BUGFIX's conflict with The Easy Header Fix (Which BUGFIX's you should not apply AFTER loading the Easy Header Fix) those are documented on the DOWNLOAD PAGE.

It is always safe to do all BUGFIX's and then do the Easy Header Fix last, as we apply all BUGFIX's to the download version.

AndreyYe Nov 29, 2011 02:18 AM

Thank you for your job! This is very useful fix and shurely should be included in branch. I'm going to test this.
But will it work with newer versions of Atahualpa? I have 3.7.1 now


All times are GMT -6. The time now is 07:56 AM.

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