Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » FAQ - Atahualpa » Header »

How to: save your LOGO/FAVICON images over an upgrades


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 20, 2012, 03:05 PM
juggledad's Avatar
juggledad
 
22,312 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
Note: this has been replaced by a theme option in version 3.7.12 and some sites will encounter an error if 'modsec' is installed at there host. The option in the new version avoids this

Here is a neat little trick so you don't have to reupload your LOGO of FAVICON after doing an upgrade. The problem is that the images are stored in the ataualpa/images folder and that gets wiped out during an upgrade and your images are removed. So what do you do?

1) Create a new folder in your wp-contents folder called 'ata-images' and put your logo and favicon there.
2) go to ato->Style & edit HEADER AREA->Show Logo Image? and enter:
HTML Code:
../../../ata-images/your-logo.gif
3) go to ato->Add a FAVICON->Favicon and enter:
HTML Code:
../../../../ata-images/your-favicon.ico
you are done. You won't lose your logo image or favicon during the next upgrade. Oh, be sure to use the names of your logo and favicon.

How does it work?
The logo image is normally in the wp-content/atahualpa/images folder so the path to the image would be:
HTML Code:
mydomain.com/wp-content/themes/atahualpa/images/mylogo.jpg
but when you add a '../' to a path name, you bump up one level so
HTML Code:
mydomain.com/wp-content/themes/atahualpa/images/../mylogo.jpg
becomes
HTML Code:
mydomain.com/wp-content/themes/atahualpa/mylogo.jpg
and
HTML Code:
mydomain.com/wp-content/themes/atahualpa/images/../../mylogo.jpg
becomes
HTML Code:
mydomain.com/wp-content/themes/mylogo.jpg
and
HTML Code:
mydomain.com/wp-content/themes/atahualpa/images/../../../ata-images/mylogo.jpg
becomes
HTML Code:
mydomain.com/wp-content/ata-images/mylogo.jpg
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Apr 19, 2013 at 04:51 PM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Atahualpa 3.7.11 - how to save your header images across updates juggledad Old Version fixes and change logs 14 Mar 1, 2013 06:50 PM
Feature request: Allow full URL in Logo, header, favicon fields billc108 Header configuration & styling 0 Jan 29, 2013 02:29 AM
FR: Add variables to the paths to images, headers, logo, favicon, etc. interfasys Atahualpa 3 Wordpress theme 0 Jan 22, 2011 12:58 PM


All times are GMT -6. The time now is 06:15 PM.


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