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 » FAQ - Atahualpa » Header »

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


 
Prev Previous Post   Next Post Next
  #1  
Old Dec 20, 2012, 03:05 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
How to: save your LOGO/FAVICON images over an upgrades

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 03:00 AM.


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