WordPress.org

Ready to get started?Download WordPress

Forums

Background Image in Page or Post (4 posts)

  1. ScubaQ
    Member
    Posted 5 years ago #

    This may be a simple problem, but I am looking to achieve a special look in a post/pages taht I designing for my blog. What I want is have on certain select pages or posts a unique background image. How would I do this?

  2. Dagon Design
    Member
    Posted 5 years ago #

    You can do a simple conditional statement to see if it is a certain page, and if so, add extra css, etc..

    <?php if (is_page(1) || is_page(2) || is_page(3)) {
    // add extra css here
    }

    That will be triggered if the page ID being viewed is 1 2 or 3

  3. ScubaQ
    Member
    Posted 5 years ago #

    Thanks!!!

    I will give this a try on my test Blog and play with it. I knew there had to be a way to do it.

  4. enigma23
    Member
    Posted 4 years ago #

    I spotted this thread and hope that someone is still watching. My non-profit blog is http://ramseyantidrug.com . I'm trying to duplicate the framed photo look from my sidebar, only drop it into a certain page. I think this is very similar to ScubaQ's query. I also want to embed a video file over the frame, rather than a photo file. Can you help?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.