K2 Style Hints and Tips: Adding a Footer Image to Posts

It’s easy to add an image to each post as in my K2 RC2 style Autumn.

footimage.jpeg

Make sure the image background colour matches your page and the size is appropriate. The size of my image was 300 px x 125px but you’ll have to adjust your size to suit your theme. I named my image bg.jpg. Upload the image to the same folder as the style.css file (wpcontent/themes/K2/styles/theme folder). Now edit the style.css. Find .entry-content (or add it if it’s not present) and add the following

.entry-content {background: url(’bg.jpg’) bottom no-repeat;padding-bottom:55px;}

changing bg.jpg to whatever you named your image.

The padding-bottom is necessary to place the image below the text. Adjust the value until your image is correctly placed.

You have to edit the style sheet in a text editor and upload via ftp to your theme folder. For the K2 styles the style sheets are not accessible in the Presentation/Theme Editor of the WordPress Dashboard.

0 Responses to “K2 Style Hints and Tips: Adding a Footer Image to Posts”


  1. No Comments
digg this
Subscribe to My Feed AddThis Social Bookmark Button

Leave a Reply