[SOLVED] bloginfo() fails
What would prevent the php function bloginfo from working correctly? The following line in ATO > Body, Text & Links > Body Style fails to fill the page background with the image file:
Code:
background: #AAFFAA url('<?php bloginfo('template_url'); ?>/images/cslbackground.gif') repeat-x top left; Code:
background: #AAFFAA url('<?php bloginfo('template_url'); ?>/images/cslbackground.gif') repeat-x top left; Code:
<?php bloginfo('show'); ?> I just got done fixing the Suhosin blank page issue. Is this related? My environment: Wordpress 3.1 & Atahualpa 3.6.4. Thanks... JGB |
That has to do with the required use of stream wrappers. You need to use a relative path such as shown by the example above the Body Style box.
|
I am not sure I follow you, Larry. Are you saying that it is not possible to use the bloginfo() function in the Body Style option?
Thanks... JGB |
Yes... there some php code doesn't work as it used to because of changes to the WordPress requirements although I am not sure that the code you are trying ever worked in that area. I would just use as the example shows... A relative path
HTML Code:
background: url(/wp-content/themes/atahualpa364/images/backgr.gif) repeat top left; |
Thanks for the clarification, Larry. At least I do not have to bang my head against this particular wall any longer.
JGB |
All times are GMT -6. The time now is 10:19 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.