Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #51314

    Sam H
    Participant

    Hi,

    I want to change the background color on the portfolio pages from the default light grey to white. I have tried adding custom css on the pages, but nothing happens. Please advise. Thanks in advance.

    Sam

    #51387

    Aman
    Member

    Hi there,

    Please provide the URL of your website so I could provide a customized CSS code for you.

    Thanks!

    #51397

    Sam H
    Participant

    izzdo.com

    Thanks again for all the help!

    #51630

    Christian
    Moderator

    Hey Sam,

    Please add the code below in the Customizer > Custom > CSS.

    .page-template-template-layout-portfolio-php .site {
    background-color: white;
    }

    Hope that helps. 🙂

    #51697

    Sam H
    Participant

    Thanks. It didn’t seem to work though.

    #52011

    Christian
    Moderator

    Please try

    .page-template-template-layout-portfolio-php .site {
    background-color: white !important;
    }

    If that still doesn’t work, please give us access to your WordPress admin.

    Thanks.

    #52229

    Sam H
    Participant

    Thanks! That changed the background on the portfolio page, but all the projects in the portfolio still have that grey background. Please advise, thanks!

    #52412

    Aman
    Member

    Hi there,

    Please add this CSS to Customizer > Custom > CSS:

    .x-portfolio{
     background:#fff;
    }

    That should help.

    Thanks!

    #52791

    Sam H
    Participant

    Worked great! Thanks for all the help

    #52853

    Christian
    Moderator

    You’re welcome Sam.

    #339731

    CAMSS
    Participant
    This reply has been marked as private.
    #339958

    Rue Nel
    Moderator

    Hello There,

    Thanks for updating the thread!

    Please use this code in your customizer, Appearance > Customize > Custom > CSS

    .x-portfolio,
    .x-portfolio .entry-wrap {
        background: #f0ecd3;
        box-shadow: none;
    }
    
    .x-iso-container>.hentry {
        padding: 0 0.5em 1em;
    }
    
    .x-iso-container>.hentry:nth-child(1),
    .x-iso-container>.hentry:nth-child(2),
    .x-iso-container>.hentry:nth-child(3),
    .x-iso-container>.hentry:nth-child(4){
        padding-top: 1em;
    }
    
    .x-iso-container>.hentry:first-child,
    .x-iso-container>.hentry:nth-child(4n+1) {
        padding-left: 1em;
    }
    
    .x-iso-container>.hentry:nth-child(4n) {
        padding-right: 1em;
    }

    Please let us know if this works out for you.