- This topic has 3 replies, 2 voices, and was last updated 8 years, 1 month ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forums › Pro Themes › Education Hub Pro › Set Maximum Height for featured slider
Tagged: featured image, slider
Hi,
We are trying to set a maximum height for the featured slider, as it works well on mobile/tablet layouts but on the desktop it’s quite overbearing.
What custom CSS can we add to achieve this?
Thanks
@dnorth@derbyhigh, actually it would be helpful for us to provide the custom CSS if we be able to inspect your site against the current issue .
If possible, please share us your site URL.
Hi,
It is an internal site at the moment, so I can’t provide you access.
I’ve worked out how to do it via editing style.css
I’ve added the max-height to the section below.
/*————————————————————–
## Custom Basic Slider Style By WEN Themes
————————————————————–*/
#main-slider img{
width:100%;
max-height: 250px;
}
Is there a way that I can instead do this in the advanced settings>Custom CSS area, to ensure that the setting remains if the theme updates.
Well, yes the CSS written in setting > Custom CSS would remain safe even after theme updates.
Alternatively, you can make a Child Theme and write your custom CSS to skip future overrides from theme updates.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |