Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   CSS Date Icon on posts (http://forum.bytesforall.com/showthread.php?t=14734)

CypherUK Jun 21, 2011 02:00 PM

CSS Date Icon on posts
 
Hi guys

Firstly, Thank You for everything you do to make this theme everything that it is! - You're legends!

Secondly, I'm really sorry if this has been covered elsewhere, but i can't find if it has anywhere, and also if it sounds like something dumb, i apologize !

I'm just starting to set up my theme and i came across this post http://forum.bytesforall.com/showthread.php?t=12627 about putting a date/calender icon in kicker of posts.

Just what i wanted...

Then i came across this post - http://forum.bytesforall.com/showthr...light=calendar - that detailed the change in code in 3.6.4 - Sweet!

So now i am using 3.6.7 and i notice that the add HTML/CSS section states
Quote:

Since 3.6.5 PHP code cannot be used anymore in HTML/CSS Inserts
This is fine, but in the first post, the call for the icon image was:
Code:

  background: url('<?php get_option('wpurl'); ?>/wp-content/atahualpa_images/cal-redgradient.jpg') repeat-x  scroll top left;
Now the above has a PHP call in it. So my question is, with 3.6.7, what would the new code be? :o

I've had a try to sort it, but i can't seem to get it working :confused:

Can someone point me in the right direction to save me pulling out any more hair ? ;)

Many Thanks
Mark :)

juggledad Jun 22, 2011 08:31 AM

see http://forum.bytesforall.com/showthread.php?t=14303

lmilesw Jun 22, 2011 09:55 AM

Quote:

Originally Posted by CypherUK (Post 68633)
So now i am using 3.6.7 and i notice that the add HTML/CSS section states "Since 3.6.5 PHP code cannot be used anymore in HTML/CSS Inserts"

This is fine, but in the first post, the call for the icon image was:
Code:

  background: url('<?php get_option('wpurl'); ?>/wp-content/atahualpa_images/cal-redgradient.jpg') repeat-x  scroll top left;
Now the above has a PHP call in it. So my question is, with 3.6.7, what would the new code be?

You would just put the full path to the image such as
Code:

  background: url('http://www.yoursite.com/wp-content/atahualpa_images/cal-redgradient.jpg') repeat-x  scroll top left;


All times are GMT -6. The time now is 03:17 AM.

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