Skip to main content
Contributor ⭐️⭐️⭐️
August 27, 2020
Solved

Community Hero Banner

  • August 27, 2020
  • 15 replies
  • 534 views

Hi guys, 

I have a question, we are working on re-branding our ranking structure which is going well and my next project is to redesign our homepage banner. However, the problem that I am having is that I can’t see any option to upload a version of the Hero banner for Mobile and another version for desktop.

When you think about how small the banner is on mobile there is very little room for creativity here. Is there not a way or a function which allows you to show mobile users 1 banner and desktop or tablet users another? 

thanks, 

Emil  

Best answer by SmartlyGreg

@Julian in the meantime I’ve added a bit of custom CSS to fix the mobile issue. ( @Suvi Lehtovaara maybe no longer relevant for you with your new hero image, hopefully that wasn’t why you changed...)
 

We use an image with a gap in the center for the search bar and title:

 

Which works great on full width screens:

 

But then gets messed up by default on mobile:

 

So with this small custom CSS code:

.brand-hero {
background-repeat: no-repeat;
background-position: center;
background-color: #8D19A5;
}
.custom-hero-banner {
max-height: 12vw;
min-height:250px;
}

(Note: Background colour matches our image to ensure text is legible even before the image loads)

 

We ensure the experience stays consistent throughout screen sizes, like mobile:

 

Or tablet:

 

15 replies

Suvi Lehtovaara
Helper ⭐️⭐️
September 1, 2020

I have this very same question as @Emil !

We’ve just changed our hero banner and it works fine on desktop:

 

 

But very poorly on mobile:

 

 

https://yhteiso.elisa.fi/
EmilAuthor
Contributor ⭐️⭐️⭐️
September 8, 2020

@Suvi Lehtovaara Hey, I just wanted to ask, have you had any response to our question yet? 

Suvi Lehtovaara
Helper ⭐️⭐️
September 8, 2020

@Suvi Lehtovaara Hey, I just wanted to ask, have you had any response to our question yet? 

No, I have not :frowning2:

@Julian, maybe you can help us?

https://yhteiso.elisa.fi/
ErikT
Contributor ⭐️⭐️
September 10, 2020

Have not tried it myself yet but I think you should be able to solve it with css media queries by adding it to custom css. But you’ll probably need to host intended image for smaller screens somewhere to make it work. :thinking:

@Julian, what do you think?

 

 

Julian
Gainsight Employee ⭐️⭐️⭐️
September 11, 2020

Yes, I know about this. I had a quick chat yesterday about it with our product designer, as we also want to improve this for you. We surely recognize that it can be a challenge to find an image that is working on all the different viewports.

I think you could work with custom CSS, I will ask some colleagues who actually know way better how this could be done so that I can share some options with you.

I follow my nose, it always knows
EmilAuthor
Contributor ⭐️⭐️⭐️
September 16, 2020

@Julian and @ErikT thank you for your response it would be really good if you could find out and let us know as this would be a massive help! 

Suvi Lehtovaara
Helper ⭐️⭐️
October 13, 2020

Yes, I know about this. I had a quick chat yesterday about it with our product designer, as we also want to improve this for you. We surely recognize that it can be a challenge to find an image that is working on all the different viewports.

I think you could work with custom CSS, I will ask some colleagues who actually know way better how this could be done so that I can share some options with you.

@Julian Do you have any suggestions for custom CSS options?

https://yhteiso.elisa.fi/
EmilAuthor
Contributor ⭐️⭐️⭐️
October 13, 2020

Hi Suvi, 

That sounds great, it would really be beneficial to a lot of platform users if this could be rolled out, as it is extremely difficult to have any creativity due to the limitations on the space that is shown when viewing on mobile. 

That other option sounds good, but also complex. So if you could get someone who could explain this is a detailed way, that would be great. 

EmilAuthor
Contributor ⭐️⭐️⭐️
March 3, 2021

@Julian Is there anyway this topic can be converted into an idea to allow other users to vote on it for development?

SmartlyGreg
Helper ⭐️⭐️⭐️
December 18, 2021

@Julian has the above happened? I’d love to upvote that idea!