Changing the background of pages

resolved (7 posts) (4 voices)

  1. Hello,

    How can I change a background color of the pages in the site from white to a nice gradient color (or any)?

    Posted 1 year ago #
  2. Elliott
    Support

    Hello Yakir,

    Do you mean the white background of your content? If possible then take a screenshot and highlight which areas you are talking about just so we are on the same page.

    Posted 1 year ago #
  3. I added a photo. I also mean of course the rest of main body in pages and posts.

    Attachments

    1. main_body.jpg (75.7 KB, 0 downloads) 1 year old
    Posted 1 year ago #
  4. Ruderic
    Support

    Hi,

    Go to the theme folder, and open the file "header.php". Just before the </head> tag, paste this code:

    <style type="text/css">
    #body_block_background {
        background: #000;
    }
    </style>

    This code will make the background black, so you will probably want to replace "000" with your own color.

    Hope that helps.

    Posted 1 year ago #
  5. mottac
    Member

    I tried this on Awake.. didn't work, any suggestions?

    Posted 1 year ago #
  6. Elliott
    Support

    Try this mottac,

    #body_block_background { background: black !important; }

    Depending on what you are trying to do you may also need to edit a bunch of images such as the breadcrumbs, sidebar, thumbnails etc etc.

    Posted 1 year ago #
  7. worked for me!

    Posted 1 year ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme