-
AuthorPosts
-
April 10, 2017 at 1:07 pm #1025524
Hi
I am using modern theme which is using one single image as the background image for the hero-unit.
But it is not responsive in mobile view.
Where should I change the code to make it responsive?
Best regards,
KalycitoPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 11, 2017 at 1:54 am #1025607Hi
Please share the URL of site Here, So that i can check this issue on your site.Regards
April 11, 2017 at 8:16 am #1025693Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 12, 2017 at 1:58 am #1025840Hi
the background image is set the cover size and it will follow the size depends on the Text over it.
If you put the background size 100%
example code.hero-unit { background: url(../../../images/banners/header-bg.jpg) no-repeat center top; background-size: 100%!important; }
It will no longer follow the text height but gives you responsive view.
Regards
April 12, 2017 at 6:08 am #1025910Hi,
Please see the attached screenshot, the text is coming out the image. But I would like to have the text on top of the image and the image to be responsive or re-sized to mobile view.
Looking forward for your reply!
Regards,
Kalycito
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 12, 2017 at 7:14 am #1025922Hi
You can not make it on the image, because image is responsive and it will resize in small screen with respect to its width and height.
You have to remove use the background-size as cover to get the text on image.Regards
April 13, 2017 at 3:56 am #1026139Hi
Can I get any sample code where the image and the text are responsive and the text appears on top of the image?
Or
The right hand side of the banner image where the gear is appearing can appear in the mobile instead of the plain grey side(left side of the banner image)?
Looking forward for your support.
Regards,
KalycitoPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 13, 2017 at 6:29 am #1026152Hi
With same text style, i am afraid you can not show the full image as its not possible, if image responsive it will resize.You can replace below code in custom.css file
.hero-unit { background-size: cover; }
with this code
.hero-unit { background-size: cover; background-position: right; }
AuthorPostsViewing 8 posts - 1 through 8 (of 8 total)This topic contains 7 replies, has 2 voices, and was last updated by Pankaj Sharma 7 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Hero unit
Viewing 8 posts - 1 through 8 (of 8 total)