Change text max width for some pages don't show Category:X (Orvis theme)

  • Unknown's avatar

    Hello,

    Orvis is a great theme and I love how it looks. However, I have two questions:

    1. When opening a Portfolio Project page, the text stays on the left instead of using full width (it’s ok-ish on mobile but horrible on desktop).
    I’d like to know how to change text width in those single pages.

    2. I have linked a Portfolio page to actually display a Category (so I can for example link the full blog). Here the width is perfect but I still see Category:XYZ on top of it. How can I hide showing that part?

    Many thanks for your help!

    D.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi @dariowrites, portfolios are designed to use large featured images, and the space you are seeing to the right of the content, such as on your Bathroom Love page, is being held for the featured image. We can hide that with CSS and adjust things so the text content takes up more of the space, but what I might suggest for anything that is not going to have a large featured image, is that you use Pages instead, like your About page, which would not require modifications. If you wish to try the CSS, go to Appearance > Customize > CSS, delete all the informational text in that window, and paste in the following custom CSS.

    .single-jetpack-portfolio .portfolio-media {
        display: none;
    }
    .single-jetpack-portfolio .portfolio-content {
        max-width: 750px;
        margin-left: auto;
        margin-right: auto;
        float: none;
        width: 100%;
    }
    .single-jetpack-portfolio .entry-header {
        max-width: 750px;
        float: none;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    The above will target all single portfolio pages, so if you have one that you use a featured image on, that featured image would not show up. The above CSS seems to work quite well though, if you aren’t going to use any featured images with your portfolio projects.

    We can also target pages by their unique page id CSS class from the opening body HTML tag if you only wish to change certain pages.

    Let me know your thoughts.

  • Unknown's avatar

    That works perfectly, thank you very much!

    I’m gonna use this at the moment, and being very text-heavy I would not need Featured images once the project is open. For now :)

  • Unknown's avatar

    Awesome, and you are welcome.

  • The topic ‘Change text max width for some pages don't show Category:X (Orvis theme)’ is closed to new replies.