Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] bloginfo() fails (http://forum.bytesforall.com/showthread.php?t=13706)

jbrown13 Apr 8, 2011 12:11 PM

[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;
When I check the source code for the page as displayed, it shows this where the background style should be:
Code:

background: #AAFFAA url('<?php bloginfo('template_url'); ?>/images/cslbackground.gif') repeat-x top left;
I tried putting
Code:

<?php bloginfo('show'); ?>
in the text of a new page and previewing the page; nothing is displayed.

I just got done fixing the Suhosin blank page issue. Is this related?

My environment: Wordpress 3.1 & Atahualpa 3.6.4.

Thanks...

JGB

lmilesw Apr 9, 2011 03:13 PM

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.

jbrown13 Apr 11, 2011 11:06 AM

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

lmilesw Apr 11, 2011 01:15 PM

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;

jbrown13 Apr 12, 2011 09:21 AM

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.