Shopify themes, liquid, logos, and UX
Hi,
I have 2 different hero videos (desktop version and mobile version). I am trying to increase the size of the button that is overlayed on the video. The controls for this section within the Shopify editor are very limited. Is there some CSS code that will increase the button size. The code I have tried is not working. The webpage is https://bionicgym.com/pages/a10052024
Thanks
Solved! Go to the solution
This is an accepted solution.
Hi @WesQ
if you use this css it will increase the button of the hero video link
.hero__link .btn {
width: 200px !important;
height: 50px !important;
}
Insert this in your base.css or section CSS area. I will solve your issue.
THank you for ShopiDevs
Syncora: Backup & Restore [Free] - Automated real-time store backup with one-click easy restore.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery, and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers.
This is an accepted solution.
Hi @WesQ
if you use this css it will increase the button of the hero video link
.hero__link .btn {
width: 200px !important;
height: 50px !important;
}
Insert this in your base.css or section CSS area. I will solve your issue.
THank you for ShopiDevs
Syncora: Backup & Restore [Free] - Automated real-time store backup with one-click easy restore.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery, and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers.
Thank you for this solution
Hi,
This code worked when I have the hero video on a regular page. I now have the video on my homepage but when I include this css it affects the formatting of all the buttons on the homepage. I have removed the CSS for now and everything is back to normal. I am wondering if there is additional line of code I need so that changes are only made to the button in the hero video section? The webpage is http://www.bionicgym.com
Add This css in your edit Code > theme.css File
main#MainContent .shopify-section.index-section--hero:first-child .hero__text-wrap .animation-contents a{
width: 300px;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
}
main#MainContent .shopify-section.index-section--hero:nth-child(2) .hero__text-wrap .animation-contents a {
width: 250px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
}
If you require further help to optimize your store, please don’t hesitate to reach out.
This contribution will always benefit you and you will get my full help easily and you can contact me easily.
Contect On My Mail :-Mail@gmail.com
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025