Rough Pixels
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Alurra] Banner SizingMaking 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.
Forum: Themes and Templates
In reply to: [Alurra] Removing the page name from the top of the pageThis 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.
Forum: Themes and Templates
In reply to: [Alurra] Removing the page name from the top of the pageThanks for that, although I still make mistakes at times 🙂
Aside from that, did the solution above work out?Forum: Themes and Templates
In reply to: [Alurra] Removing the page name from the top of the pageThanks 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.
Forum: Themes and Templates
In reply to: [Alurra] Can I remove the side bars on certain pagesThe 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?
Forum: Themes and Templates
In reply to: [Alurra] Can I remove the side bars on certain pagesNeeding 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!
Forum: Themes and Templates
In reply to: [Alurra] Can I remove the side bars on certain pagesDo 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.
Forum: Reviews
In reply to: [Alurra] Beautiful theme and fast customer serviceThank you very much for that glowing review and rating! Greatly appreciated 🙂
Forum: Themes and Templates
In reply to: [Alurra] I want the banner to be narrowerThank you for that! 🙂
However, did either of the two code snippets above work out? That is the more important element 🙂
Forum: Themes and Templates
In reply to: [Alurra] I want the banner to be narrowerNo 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.
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”.
Forum: Themes and Templates
In reply to: [Alurra] I want the banner to be narrowerHi 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? 🙂
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,
AndreForum: Themes and Templates
In reply to: [Prologe Lite] How do I activate the cover header?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.
Forum: Themes and Templates
In reply to: [Prologe Lite] How do I activate the cover header?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?