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

<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?

View Replies:
ronyDdeveloper replied on at Permalink Reply
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.

madeforspace replied on at Permalink Reply
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.

Hope that helps