Sketch theme – change background colour of gallery pages only

  • Author
  • #3318410


    I don’t know if this is possible but I would like to change the colour of the ‘inner’ div (id=page) from grey to white. I can do it so this happens on all the site’s pages but is it possible to do for the portfolio/gallery pages only??
    Thanking you in anticipation.

    The blog I need help with is



    I was looking for some CSS snippet that might help you with this kind of change but I think that white background will make the gallery title (from the top) or images caption go away since they are white too. Are you sure that this is what you want to do?

    This is the CSS that will affect the inner only from the portfolio pages:

    .single-jetpack-portfolio #page {
    background: #fff;

    You can give it a try and see how things look this time. Also, you can easily replace the #fff value for white with anything else.
    Please let me know if this is what you were looking for and if there’s anything else I can help you with, regarding this change.




    Thank you very much. I am working on behalf of a client so yes, I will have to change the text, logo etc too on those particular pages but I just couldn’t find out the class for the portfolio pages.

The topic ‘Sketch theme – change background colour of gallery pages only’ is closed to new replies.