Editing The Template
-
I’m wanting to have a different template to use other than the widget.php, simply because I am using/making a responsive horizontal theme and I need little more flexibility.
I have already cloned the “widget.php” and named it “dashboard-widget.php”.
How can I make the featured image or image in the post, appear as the background of the list item? CSS & HTML is my thing, but not PHP…
Example:
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?> style="background: url(GRAB_THE_URL) center center no-repeat;">
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Editing The Template’ is closed to new replies.