Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Old Version fixes and change logs (http://forum.bytesforall.com/forumdisplay.php?f=37)
-   -   Atahualpa 3.7.11 - how to save your header images across updates (http://forum.bytesforall.com/showthread.php?t=19705)

juggledad Feb 22, 2013 07:50 PM

Atahualpa 3.7.11 - how to save your header images across updates
NOTE: some users have reported that using the '../../' redirection triggers a security error eror on their hosts. This has been changed in 3.7.12

With the release of version 3.7.11 there is a new option in the 'Header Image' section of the theme options. This new option 'Header Images Directory' defines where your header images will be stored. It defaults to the themes 'images/header' folder.

You can point to a folder in your 'wp-content' folder by prefixing the folder name with some updirectory pointers. For example: say you add a folder to the 'wp-contents' folder called 'header-images'. to point to that folder you would enter '../../header-images' and you would now get your images from there.

The way it works is that each '../' moves you up a directory. you start in the 'atahualpa' folder so you are here:
HTML Code:

the first '../' moves you to the 'themes folder
HTML Code:

the second '../' moves you to the 'wp-content' folder
HTML Code:

and now you can name a folder that is in the wp-content folder ie 'header-images' so you are at
HTML Code:

and that is where the images will be grabbed from.

Since this is outside of the theme folder, an update of the theme code will not tougch your images and since the path to the folder is a theme option, it will remain across updates.

MULTISITE since each multisite has it's own set of tables, each site can point to a diferent folder, so you could have
etc, etc

For Logo's and Favicons see the thread How to: save your LOGO/FAVICON images over an upgrades in the 'FAQ - Atahualpa' forum

--yeah--wow Feb 26, 2013 09:03 AM

Hi Juggledad,

Great new addition that I know a lot of people will like. Updating Atahualpa became a lot easier with the new save-your-headers-across-updates function! Thanks!

Favicons have the same issue as headers. They get lost in updates if you are not careful. Wouldn't it be nice to have the same solution for favicons too? Is this something that can be added to the next release?

juggledad Feb 26, 2013 09:24 AM

take a look at the 'FAQ - Atahualpa' forum in the header section. There is a solution for Logo and Favicon there.

paulae Feb 26, 2013 09:47 AM

Yes, this is great! I second the request for the same persistence for our custom favicons.

vrielance Mar 1, 2013 06:20 AM

I tried this and now my whole site is gone!!! Even after changing it back to the original setting, my site is completely gone. http://ayurveda-hengelo.com

Please help

vrielance Mar 1, 2013 06:27 AM

Luckily I got my site back...

I created a subdirectory header_images in my .../wp-content

My original images are in .../wp-content/themes/atahualpa/images/header

So this means that I have to enter ../../../../header_images into ATA Header Images Directory?



juggledad Mar 1, 2013 08:30 AM

No, you would use ../../header_images

The reason is the option is starting in the Atahualpa folder - ie
HTML Code:

The default for the option is 'images/header' - this points at
HTML Code:

but you only need to move up two levels to get to wp-content

vrielance Mar 1, 2013 02:55 PM

ok thanks got it

vrielance Mar 1, 2013 03:29 PM

oops spoke too soon.... I changed the file location and the headers were gone... I changed it back to the original state and still all white... And suddenly my header is clickable, it wasn't before. Is this a java issue?

vrielance Mar 1, 2013 03:32 PM

and it get's weirder: when I click on the header the image changes to the next, but there's one image blank (the most important one)

juggledad Mar 1, 2013 03:33 PM

Are you moving the atahualpa/images/header folder? If so you should not. Create a new folder

vrielance Mar 1, 2013 03:41 PM

no no, I only created the new folder, copied the images via ftp, set the option in ata to point like this: ../../header_images

juggledad Mar 1, 2013 04:04 PM

does the folder have the same permissions as the header folder?

vrielance Mar 1, 2013 04:13 PM

yes, and I changed everything back to the original state and problem remains. I can toggle clickable header now, but images do not rotate and one image dissapeared from header area. Do you see the same? Maybe I should just empty cache and restart?

vrielance Mar 1, 2013 05:50 PM

I was about to give up the fight for today, when I decided to take one shot in the dark and restart in Windows (I mostly work in Linux), and recopy all the images to the specified folders. To my amazement it worked immediately!

Don't know how, but I solved it. Thanks for your efforts juggledad

All times are GMT -6. The time now is 10:37 AM.

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