Forums

Change background color of individual posts (3 posts)

  1. igneous
    Member
    Posted 4 years ago #

    I'm looking to change the background color of certain individual posts on my site. I think I could put them all in a certain catagory and change the CSS(although I have no clue how to do this) but I'm looking for a simpler solution. Are there any plugins that allow you to change the color of a single post?

  2. igneous
    Member
    Posted 4 years ago #

    I found these instructions, but I cant seem to follow them because my theme doesn't have this in it that they are talking about here: <div class="post" id="post-<?php the_ID(); ?>">
    http://www.wpdesigner.com/2007/06/22/styling-posts-by-category-and-category-specific-images/

  3. igneous
    Member
    Posted 4 years ago #

    This is what my wordpress theme code looks like:
    <div id="contentmiddle">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class="contentdate">
    <h3><?php the_time('M'); ?></h3>
    <h4><?php the_time('j'); ?></h4>
    </div>

    <div class="contenttitle">
    <h2 class="home_title">" rel="bookmark"><?php the_title(); ?></h2>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.