Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #493269

    Hi

    I need all my site pages to be black except the portfolio item pages which i want all to be grey.
    In Enfold General Styling options i have set the predefined color to black.
    But how can with css make only all the portfolio item pages to have different bg color?
    What is the easiest way possible?

    Thx
    dmanbo

    #493622

    Hi Dmanbo!

    Drag a codeblock element to the page content and add this inside.

    <style type = "text/css">
    .header_bg, .main_color, .stretch_full { background: red !important; }
    </style>

    Cheers!
    Elliott

    #494564

    I dragged a codeblock in the Portfolio item and placed the code and it worked fine, thank you :)

    I’m wondering if we can achieve the same result by putting code inside the General Styling > Quick CSS instead of on every single portfolio item page, because i’ll have soon more than 300 items.
    Is it possible?

    thx

    #494891

    Hi!

    If you want it done on every portfolio post then add this to your custom CSS.

    .single-portfolio .header_bg, .single-portfolio .main_color, .single-portfolio .stretch_full { background: red !important; }
    

    Cheers!
    Elliott

    #496158

    thank you so much it works fine

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Portfolio Item pages to have different BG color than rest of site’ is closed to new replies.