Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   [SOLVED] Suggestion to allow easier upgrades... (http://forum.bytesforall.com/showthread.php?t=8054)

PainFreeComputing Jul 10, 2010 10:34 AM

[SOLVED] Suggestion to allow easier upgrades...
Suggestion: Change the theme to allow the use of logo and favicon images that reside OUTSIDE the theme directory.

If we could do this, upgrading would be SO much more simple. Nothing would need to be added to what's in the zip file at all, unless the user had customized some of the code. As is, I have to copy custom images into the theme directory every time I upgrade. I don't use the rotating header images, so I don't know if this suggestion could also apply for them.


PainFreeComputing Jul 24, 2010 08:46 AM

Surely I'm not the only user who this would help...:confused:


PainFreeComputing Aug 23, 2010 09:47 PM

Just in case anyone else wants to keep "custom" logo images and favicons outside the atahualpa theme directory, here's how I did this on Apache 2.x:
  1. Create a "custom_images" directory in the DocumentRoot directory (it could be anywhere you want it).
  2. Create an AliasMatch in the virtual host's config file as follows:

    AliasMatch ^/wp-content/themes/atahualpa.*/images/custom_images/(.*) [/absolute/path/to/custom_images]/$1
    This is for a Linux box. If you used spaces in your directory names, be sure to escape them in the code. If you use a Windows machine, you should probably put the path to your directory all in quotes and hope for the best. WARNING: Bad syntax can cause your httpd server not to restart.
  3. Restart httpd
  4. Go to the Wordpress Dashboard, Atahualpa Theme Options | Style & Edit Header Area. In the field under "Show Logo Image?" put custom_images/yourlogo.jpg (substitute the actual directory and image name, of course). Upload the custom logo to the directory you created in the first step above.
Now the new Atahualpa theme will not need my custom images copied into it every time I upgrade.

The procedure for the favicon.ico is similar enough that I won't spell that one out. I do not know if this would work for rotating header images, I just don't use those.


PainFreeComputing Aug 2, 2013 02:42 PM

This is no longer an issue, since recent versions allow a custom image location outside the Atahualpa theme directory (in wp-content). My solution was simply a workaround. This is an actual fix.


All times are GMT -6. The time now is 12:00 PM.

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