Collection banner image full width of screen - dawn theme

Solved

Collection banner image full width of screen - dawn theme

nudehaven
Tourist
39 0 1

I need help with my collection banner images, right now they are cropped to the right side of the screen but I want the image to be the full width of the banner without the collection name on the side as my collection names are in the picture.

Accepted Solution (1)

PageFly-Kate
Shopify Partner
1371 375 424

This is an accepted solution.

Hi @nudehaven ,

 

This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/component-collection-hero.css->paste below code at the bottom of the file:

.collection-hero--with-image .collection-hero__inner {
    width: 100%;
    padding: 0;
    max-width: 100%;
}
.collection-hero--with-image .collection-hero__text-wrapper {
    display: none
}

.collection-hero__image-container {
    margin-left: 0 !important;
}
.collection-hero__image-container img {
    top: 50% !important;
    transform: translateY(-50%) !important;
}
@media screen and (min-width: 750px) {
    .collection-hero__image-container {
        min-height: 37rem;
    }
}

I hope it would help you
Best regards,

Kate | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


Unlock the secrets to a record-breaking BFCM with PageFly and Canva


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)


➜ Weekly updated Shopify tutorials on YouTube


All features are available from the Free plan. Live Chat Support is available 24/7.


View solution in original post

Replies 13 (13)

nudehaven
Tourist
39 0 1

my url is nudehaven.myshopify.com

dmwwebartisan
Shopify Partner
12366 2558 3743

@nudehaven 

This needs some liquid/html changes with collection template. But try to check if following hack works.

Please add the following code at the bottom of your css file.

 

//for desktop
@media screen and (min-width: 750px){
.collection-hero--with-image .collection-hero__text-wrapper {
display: none;
}
}

//for mobile
.collection-hero--with-image .collection-hero__text-wrapper {
display: none;
}

 

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
PageFly App to customize your pages | The most powerful Shopify page builder app
nudehaven
Tourist
39 0 1

this didn't work:( how else would I go about it?

dmwwebartisan
Shopify Partner
12366 2558 3743

After adding above code. It should look like  this

NUDEHAVEN.jpg

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
PageFly App to customize your pages | The most powerful Shopify page builder app
nudehaven
Tourist
39 0 1

which file did you upload to? I tried the base.css file and nothing changed:( I also want it so it doesn't it off their faces and the image is wrapped to the screen size

GemPages
Shopify Partner
5625 1262 1279

Hello @nudehaven 

It's GemPages support team and glad to support you today.

 

You can follow these steps:

1. Go to Online Store -> Theme -> Edit code

2. Open your base.css file and paste the following code below: 

 

.collection-hero .collection-hero__text-wrapper{
  display: none;
}
.collection-hero .collection-hero__image-container{
  margin: 0;
}
.collection-hero .collection-hero__image-container img{
  position: relative !important;
}

 

If you require any further information, feel free to contact me.
Best regards,
GemPages Support Team

 

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
nudehaven
Tourist
39 0 1

It got rid of the collection title which I wanted but now it has a white border and I just want the picture to be the full collection banner with no spaces

BSS-Commerce
Shopify Partner
3477 464 554

Hi @nudehaven 

+ We see that if you do as you want, the result will be like this:

view - 2023-02-02T112743.227.png

--> It can't be perfect because the size of the section banner & img-banner has a completely different aspect ratio.
- If the model's face is shown, it will lose its title and the image will be broken.
- If you want the image not to be broken, it will reveal white space on both sides.

view - 2023-02-02T112919.815.png

or

view - 2023-02-02T112923.654.png

- If the size ratio of the banner = img, the result will be like this:

view - 2023-02-02T113007.430.png

Please let me know in detail how you want your website to look. We're happy to support you.

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

PageFly-Kate
Shopify Partner
1371 375 424

This is an accepted solution.

Hi @nudehaven ,

 

This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/component-collection-hero.css->paste below code at the bottom of the file:

.collection-hero--with-image .collection-hero__inner {
    width: 100%;
    padding: 0;
    max-width: 100%;
}
.collection-hero--with-image .collection-hero__text-wrapper {
    display: none
}

.collection-hero__image-container {
    margin-left: 0 !important;
}
.collection-hero__image-container img {
    top: 50% !important;
    transform: translateY(-50%) !important;
}
@media screen and (min-width: 750px) {
    .collection-hero__image-container {
        min-height: 37rem;
    }
}

I hope it would help you
Best regards,

Kate | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


Unlock the secrets to a record-breaking BFCM with PageFly and Canva


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)


➜ Weekly updated Shopify tutorials on YouTube


All features are available from the Free plan. Live Chat Support is available 24/7.


nudehaven
Tourist
39 0 1

this worked thank you!

SusanDev
Tourist
3 0 0

Hi @PageFly-Kate ,

Your solution worked for me as I had same issue and wanted the image full width. However, I'd like to show description on top of image. Is this possible? or even below the collection banner ...

Thanks

JBMartin
Excursionist
22 0 7

I have the opposite problem.  I am trying to have the full main-collection-banner just contain the description, with no featured image.  When I click to remove Featured Image in the page settings it leaves all the empty space on the right-hand side where the image should go.  I want the description to cover the full width of the banner (with some padding).  Any thoughts??  Thank you.

Jess1-95
Visitor
1 0 0

I have just tried this and it has worked perfectly! I was wondering whether there was a way to have the collection title in the middle of the collection imagine banner at all?