Forums

how to change background color on INDIVIDUAL posts? (4 posts)

  1. adgel
    Member
    Posted 2 years ago #

    my theme has a white background...journalist.

    I want to "feature" or make certain posts a different color...just a simple tweak maybe a peach color background or some other subtle color to signify a "special post"

  2. alchymyth
    The Sweeper
    Posted 2 years ago #

    depends on the css ids or classes of your post, and also if your post has a surrounding div that helps to distinguish it from the rest of the page.

    some themes give an individual id to each post, containing the post ID; you could use this css id then in your style sheet to add a background color to specific posts.

    a link to your site might get you more help, as not everyone has 'journalist' installed or is totally familiar with this theme.

  3. MAzCastro
    Member
    Posted 2 years ago #

    You could use your post's "custom fields" to define a custom background color to that specific post.

  4. Edward Caissie
    Member
    Posted 2 years ago #

    I would suggest a simple edit (and suggest perhaps submit it back to the theme author for future updates):

    Add the body_class() function into the header.php file ... see this page for more details: http://codex.wordpress.org/Template_Tags/body_class

    Once added the theme will generate post/page specific CSS elements you can then address in your stylesheet.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.