WordPress.org

Forums

Customizr
[resolved] Change customizr background (7 posts)

  1. Leapmkt12
    Member
    Posted 1 year ago #

    Is there a way to have the Customizr background on the pages only and not on the home page?

  2. rdellconsulting
    Member
    Posted 1 year ago #

    @nikeo provided a number of classes:
    .home = Front Page
    .blog = Posts Page
    .page = Other Pages
    .page-id-n = Selected Page

    So using this snippet, I'd use:

    body.home {
    background:     none;
    }
    body.page  {
    /* Adjust the Image location 'wp-content/uploads/NAMEOFFILE.png' */
    background:     url(/wp-content/uploads/NAMEOFFILE.png) repeat fixed 0 0  ;
    }
    /* Set the color (#FAFAFA) of the internal body */
    #main-wrapper {
    background-color: #FAFAFA;
    margin-top:     0px ;
    margin-bottom:  0px;
    }
  3. afjsystem
    Member
    Posted 1 year ago #

    how to insert featured image as title background ? like twentyfourteen ?

  4. rdellconsulting
    Member
    Posted 1 year ago #

    Error in my previous post. .blog should be .post

  5. Leapmkt12
    Member
    Posted 1 year ago #

    Once again Mr rdellconsulting, you are a star! Thank you! I was close, I had '#body-home' wrong class :-P

  6. phamvansu
    Member
    Posted 1 year ago #

    thanks rdellconsulting
    I also met a similar case

  7. RodwellBuildingServices
    Member
    Posted 5 months ago #

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.