Dec 27, 20184:20 PM - edited Dec 28, 201810:24 AM
Participant | Elite Partner
Home Gallery Image Zoom
I have contacted Hubspot support who lead me to post here. The home page image slider on my website does not cover the full width of the page, which it used to do.
I'm hoping someone can tell me why this is happening and how to fix it.
@ashleyroth I was able to take a look at this page for you and believe I see what is causing the image you're using to not be full width. While there is an animation on the image that creates the zoom effect there is other CSS in which is keeping the image from expanding to the full width of the page. On the class here .hs_cos_gallery_main .slick-slide img which is part of our boilerplate CSS and there is a max-width and a margin: 0 auto which is going to center the image and that adds about 550px of margin to the left and right side of the image.
Since we are not able to directly access the CSS in projects.css we can overrride or add additional CSS in your stylesheet attached to the template to help to solve this issue.
This will expand the image to be 100% of the viewport and therefore remove the large space on the left and right on larger viewports. I would try and add this into your stylesheet and that should help to expand the image for you.
That being said looking at your page it looks like it does grow to full-size and shrinks again on reload which makes me think it's some JavaScript related. Unfortunately, that's out of my wheelhouse but I hope that helps some.
Just so you know your last link won't work. You want to be sure when you post links they aren't app.hubspot.com as that is the internal URL, it directs those without portal access to login. You will need to publish it to let anyone outside your team and HubSpot see it without login. I'd suggest setting the URL to something outside your normal web structure so nobody accidentally stumbles upon it.