Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   IMage Background not show in 3.6.4 (http://forum.bytesforall.com/showthread.php?t=13317)

mpoma Mar 15, 2011 02:41 PM

IMage Background not show in 3.6.4
 
Hello, last Friday when my site is updated from 3.5.7 to 3.6.4 the background image is not displayed.
I use a relative path in ATO-> Body-> Body Style

background: url('<?php bloginfo('wpurl'); ?> /wp-content/my-atahualpa/background/gerardo_buchmann.jpg') no-repeat center top;

When I changed to
background: url('/wp-content/my-atahualpa/background/gerardo_buchmann.jpg') no-repeat center top;

the image is displayed.

After updating another site on another server, the same problem occurred.
Please could you consider whether it is a problem of Atahualpa?

Please apologize for my English.
Marcelo

lmilesw Mar 15, 2011 02:51 PM

Did you use the automatic or manual upgrade?

mpoma Mar 15, 2011 07:55 PM

Hi LArry! MAnual update. If i put the path in the browser, can accessed the image.
If use the bloginfo() the background image dissapear from dispaly and CSS (I used Firebug).
When I use fixed path without bloginfo(), I see the image and show in CSS Firebug.

I expected you understanme

lmilesw Mar 15, 2011 09:12 PM

Instead of bloginfo try somthing like the following
HTML Code:

background: url('<?php echo get_template_directory_uri(); ?>/images/bullets/round-gray.gif') no-repeat 0 7px
If you use either the above or /wp-content/images..... you will need to make sure the images you had in your old Atahualpa installation are in the images folder or sub-folder of the new installation.

mpoma Mar 16, 2011 07:56 AM

Nothing....

I use this code:
HTML Code:

background: url('<?php echo get_home_url(); ?>/wp-content/my-atahualpa/background/gerardo_buchmann.jpg') no-repeat center top;
Can you see the site http://www.buchmann.com.ar In the bottom left sidebar I put a PHP Widget whit the follow:
PHP Code:

 url('<?php echo get_home_url(); ?>/wp-content/my-atahualpa/background/gerardo_buchmann.jpg');

I donīt see any errors in the php code. No errors in folders. They are separated.

Thanks!!

lmilesw Mar 16, 2011 08:11 AM

Just use the following for the path
HTML Code:

background: url('/wp-content/my-atahualpa/background/gerardo_buchmann.jpg') no-repeat center top;

mpoma Mar 16, 2011 09:46 AM

Yes Larry, in the top of the post I say that. But I like to show you because I think is an issue of Atahualpa (or WP ??)
By the way, because I use a local server for development with diferent folders for each site, I need the function bloginfo or get_homeurl for a more simple domain change.

juggledad Mar 16, 2011 11:08 AM

this functionality did work in 3.5.3 but because of the forced removal of the eval() function by WordPress, it no longer works in 3.6. If I get time, I take a look and see if there is something I can do about it.


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

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