How to add background image to " li " with using content block Edit HTML

Permalink
<ul class="item slides">
<li style="background-image: url('<?php echo $this->getThemePath();?>/img/featured1.jpg')">


I want to add a background image to li..above it is added as style..but that php code desnt work..any suggestion for this problem?

 
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
You cannot put PHP code in blocks while adding/editing. Actually PHP is a server side language. It doesn't render on the fly. In your case, you need to add the images through file manager & copy the image path. Then set the background image in li.

Rony
madeforspace replied on at Permalink Reply
madeforspace
I have used this before and it worked well, not sure if it is exactly what you want but it may be worth a look.

http://www.concrete5.org/marketplace/addons/kinos-image-menu/...

Hope that helps