Forum Replies Created

Viewing 15 replies - 121 through 135 (of 204 total)
  • Theme Author Rough Pixels

    (@roughpixels)

    Making adjustments to this area might be a bit challenging, but the site header area where the image goes into as a background is automatically sized to “fill” the area. This is the CSS code that does that when using background-size: cover;

    .site-header {
        position: relative;
        text-align: center;
        background: var(--rp-header-bg-colour);
        background-size: cover;
        background-position: center;
        overflow-y: hidden;
    }

    You could change that to be background-size: contain;

    Of course, it depends on what you are actually trying to achieve–it might not be perfect.

    Theme Author Rough Pixels

    (@roughpixels)

    This is what creates that space:

    #content {
        margin: calc(3rem + 2vw) 0;
    }

    You can copy that and paste it in the CSS tab, but adjust the values to be smaller. This does the top and bottom margins of your content area. Try making the 3rem as 2rem and then the 2vw as 1vw and see if that works better.

    Theme Author Rough Pixels

    (@roughpixels)

    Thanks for that, although I still make mistakes at times 🙂
    Aside from that, did the solution above work out?

    Theme Author Rough Pixels

    (@roughpixels)

    Thanks for the new posting!

    To remove (hide) all “page” titles throughout the site, you can do this:

    .page .entry-title {
    display: none;
    }

    If you want even blog posts as well (basically all page/post titles), you can do this:

    .entry-title {
    display: none;
    }

    I’m wondering if I should add a theme option (setting) to disable page/post titles…every once and a while, I get requests for that. Doesn’t matter what theme.

    Theme Author Rough Pixels

    (@roughpixels)

    The support forums here at WordPress usually prefer anything new to be posted as a new topic. However, while I’m here, there is setting to remove page or post titles, but if you just want “page” titles hidden, is there a particular page title other than the home page gone?

    If just the home page, add this to the Additional CSS tab in the Customizer:

    .home .entry-title {
    display: none;
    }

    Regarding the full page to “fill”, can you describe what would be seen or hidden from view in this kind of template option?

    Theme Author Rough Pixels

    (@roughpixels)

    Needing only two pages is good (less work). But the full-width template is just the main content that is full width–without a left or right sidebar.

    Was this what you were wanting?

    By the way, I’m in BC, so it was nice to see a site about it!

    Theme Author Rough Pixels

    (@roughpixels)

    Do you have a lot of pages with the sidebar that you want to hide? This theme uses actual page templates, a left sidebar layout, right sidebar layout, and a full width (no left or right sidebar) option. These would be selected by opening a page in the editor and choosing the template for it. This can also be done as a global edit if you have several pages to change at the same time.

    Theme Author Rough Pixels

    (@roughpixels)

    Thank you very much for that glowing review and rating! Greatly appreciated 🙂

    Theme Author Rough Pixels

    (@roughpixels)

    Thank you for that! 🙂

    However, did either of the two code snippets above work out? That is the more important element 🙂

    Theme Author Rough Pixels

    (@roughpixels)

    No worries 🙂

    REM is a relative value, whereas px (pixels) is static, meaning it will always be that size, but rem is relative. Being relative means that the size will self-adjust based on the window size the page is being viewed in. This helps make the sizing responsive.

    I could give you a px value height for the banner image, but it would require more modifications, but let’s try this method first…

    Copy and paste this into your Additional CSS tab of the Customizer:

    #site-branding {
        padding: calc(3rem + 7vw) 0;
    }

    The above code will still keep your banner responsive and auto-size the height based on what the person is viewing the page(s) on (desktop, phone, tablet, etc). You can still adjust that 7vw to whatever works best for you. For example, making it 6vw.

    ALTERNATIVE:

    If you want to make sure your banner is always 400px, you can try this code:

    @media (min-width: 1200px) {
       #site-branding {
        padding: 0;
        height: 400px;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
      }
    }

    This makes the padding 0 pixels top, right, bottom, and left for the text area. Then, it will make that container always 400px in height–whether the page is being viewed on a desktop, phone, or tablet. The last few lines simply make the text stay centered and in the middle.

    Try the first code option or if you want the fixed height, try the second code snippet above.

    Theme Author Rough Pixels

    (@roughpixels)

    If you want this for all pages, you can try this code then:

    .page #comments {
        display: none;
    }

    That will hide the comments on all “pages”.

    Theme Author Rough Pixels

    (@roughpixels)

    Hi Sharon,

    Are you referring to the image on your front page and its height?

    The height is actually determined by this:

    #site-branding {
        position: relative;
        z-index: 10;
        padding: calc(3rem + 12vw) 0;
    }

    The padding above means on mobile, go as low as 48 px in top and bottom padding, but on larger screens, go as much as 48px + the browser window’s percentage width.

    Basically, to make that smaller, you can make the “12vw” part a lower number to your preference. Just add this to your Additional CSS tab in the Customizer and adjust the number:

    #site-branding {
        padding: calc(3rem + 12vw) 0;
    }

    Also, thanks for the theme comment…is it worth 1, 2, 3, 4, or 5 stars? 🙂

    Theme Author Rough Pixels

    (@roughpixels)

    There is a setting in the editor when you have the page open (to edit) that lets you disable comments. However, this doesn’t always work when there are existing comments.

    A quick method can be CSS to hide them. Such as this:

    .page-id-9 #comments {
        display: none;
    }

    If you use the above code, simply copy and paste it into the Additional CSS tab of the customizer. This will hide them from view for that particular page, which has the body tag page-id-9

    Hopefully, this works for you.

    Best Regards,
    Andre

    Theme Author Rough Pixels

    (@roughpixels)

    No worries. Anyway, I have a possible solution for you, but it’s not perfect because of how that page is structured. But this might be something you can try by copying and pasting it into the Customizer’s Additional CSS tab:

    .home .cover-header.bg-image {
        background-attachment: fixed;
        height: 100vh;
    }

    A person will still be able to scroll down the page, but when they first arrive on that page (or return to the page), the image and CTA will be full window view, right to the browser bottom edge. This will also happen in the mobile mode too (or should).

    If you want to also hide the lower page elements, the title, and any content stuff there, you can also add this to the Additional CSS tab too:

    .home #post-inner {
        display: none;
    }

    The footer will still be seen, though, when scrolling down.

    Side Note: The class .home that you see in the code snippets will only apply these styles to the home page.

    Theme Author Rough Pixels

    (@roughpixels)

    You are very welcome.

    Regarding the page and title, etc. Is that page available to view? If I understand correctly, do you just want the image and CTA as a splash page with no other element/content?

Viewing 15 replies - 121 through 135 (of 204 total)