Increase Button Size with CSS: Impulse Theme Hero Video

Solved

Increase Button Size with CSS: Impulse Theme Hero Video

WesQ
Excursionist
32 1 4

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

 

Screenshot 2024-05-13 111558.png

Accepted Solution (1)

Arif_Shopidevs
Shopify Partner
264 37 36

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

Found it helpful? Please like and mark the solution that helped you.
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

View solution in original post

Replies 4 (4)

Arif_Shopidevs
Shopify Partner
264 37 36

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

Found it helpful? Please like and mark the solution that helped you.
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
WesQ
Excursionist
32 1 4

Thank you for this solution

WesQ
Excursionist
32 1 4

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

Raj-webdesigner
Shopify Partner
354 88 84

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;
}

Are you looking for Shopify Developer then your search is over I will help you


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.


Your Willpower Contribution Link

:-

❤️Tip❤️

Contect On My Mail :-Mail@gmail.com