Ok, so the solution is to go to the “Customize” menu → “Custom CSS” and add the following line:
.page-header.page-header--image-full > img {
max-height: unset !important;
object-fit: unset !important;
height: auto !important;
}
This will do for the Collections banner. The site banner is a bit more tricky, as it really expects to be overlayed by the site title, so it doesn’t care on cropping. I did some tests here and you could:
- Go to the “Customize” menu → “Header Image”;
- Disable (hide) the Site Title, so it doesn’t appear in front of your banner;
- Go to the “Custom CSS” section and add this:
.page-header.page-height {
background-position: left;
}
This will make sure the “Majuli Archive” logo is not cropped, but the rest of the image, on the right side, will be. I don’t think it is an ideal solution. A preferred way to this is to disable the header image completely (Go back to step 2 and look for the “hide banner” option). This will allow you to set the Site banner as you wish using Gutenberg blocks.
To give you more details, once you open any page/post of your site to edit it on Gutenberg, you will see a “page template” option, like this:
Instead of the Default Template, select “Landing” or “Landing with Breadcrumb”. This will allow you to display that page (may be a landing page, a home page) without the space existing for the banner and title. So you can use an image block, set it to full-width and insert your image there.
A similar approach can also be done to collection pages, if you want to take more control over their layout. You can:
- Create a new page using the Gutenberg editor, build it as you like;
- Insert a Gutenberg block to display the items list (that would be Faceted Search block). Just remember to set it’s alignment as fullwidth;
- Once the page is saved, you can go to your Collection’s setting on Tainacan and set the created page as “Cover page”.
This will replace the traditional page created by the theme with your own page. A good thing about building your layouts instead of using images is that they can be more responsive (better to read on mobile screens) and accessible (you can set alternative text to be read by screen readers on the image block).
I know it is a lot, but take a time to play around. If you need more details, just ask me here
Also, if you ever feel too limited by the configurations of Tainacan Interface you may try using the Blocksy with the support plugin, but I can tell you upfront that you will have similar challenges with the collection banners as they really are made to be more decorative than informational (we tend to let textual information for the Collection description).