How can I frame an individual post and/or change background colour of an post?
Here is one example about what I mean:
http://www.pearsonified.com/2007/06/how-to-format-images-for-feed-readers.php
Can anyone advice how is that box done?
H.
How can I frame an individual post and/or change background colour of an post?
Here is one example about what I mean:
http://www.pearsonified.com/2007/06/how-to-format-images-for-feed-readers.php
Can anyone advice how is that box done?
H.
hello heinakenka,
welcome to the wordpress support forums.
To create such a box, you need two things:
#1 A XHTML and CSS Design for your box - to know what wordpress should output.
#2 A theme -or- a plugin that supports such things.
The way I would do it:
#1 Create a CSS class to create the frame. That is defining the border and background. Adding this to my themes CSS file.
#2 Creating a customvalue that remarks if a post should be framed or not.
#3 Editing the theme for any display of posts checking the the custom value. If it is set, the additional XHTML will be added. The Post will then be spawned inside a div like <div class="myframe">standard output</div>.
You find a lot of information about editing themes and wordpress API in the codex.
Just found this interesting info in the codex that might do the job for you:
http://codex.wordpress.org/The_Loop#Style_Posts_From_Some_Category_Differently
This topic has been closed to new replies.