Format a "particular" Post differently
Okay. I now have just the most recent post of a specific category appearing at the top of the center section of my static homepage.
http://www.shepherdjim.com Please be kind -- the Shepherd Jim w/site is my sandbox where I'm testing stuff. Now, how do I format the elements of THAT post's <div class="post-bodycopy clearfix">, div class="post-headline">, etc. without changing the appearance of all the other posts on single, multiple, search, etc post pages? I know I should be simply targeting in CSS but I'm not clever enough. |
You can change in index.php, towards the bottom:
PHP Code:
PHP Code:
HTML Code:
body.page-XX div.post-bodycopy { With the above example you could also group-style all pages due to 2 classes (page and page-XX) being added, i.e. with a CSS Insert HTML Code:
body.page div.post-headline { |
All times are GMT -6. The time now is 09:22 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.