WordPress.org

Ready to get started?Download WordPress

Forums

Change CSS Background Image with Custom Field (3 posts)

  1. kevmatic
    Member
    Posted 3 years ago #

    I'm currently building a site where I need to have a different background image in my header on each page. I'm wanting to do this using a css background style and set it using a custom field as I'm creating the page, and also if no image is set, I need it to use a default image? Any suggestions? I'm fairly new to php, so please be patient. Thanks!

  2. Avnish Awasthi
    Member
    Posted 3 years ago #

    you want to change header background image or body background image.first clear it to me

  3. Diego Jiménez
    Member
    Posted 3 years ago #

    @Avnish I think what @kevmatic wants to do is change a CSS property (the background image) through a Custom Field. In this article (#6) the guys of Smasing Magazine explains the way to embed custom CSS styles using custom fields, this other one can also be useful to you, take a look.

    Good luck @kevmatic :)

    [signature moderated]

Topic Closed

This topic has been closed to new replies.

About this Topic