Relocate button between animation and section below on dawn.

Solved

Relocate button between animation and section below on dawn.

Phreshcareco
Excursionist
40 0 7

Hey guys, 

 

Ive been a little stuck on this one, i was hoping someone could help. I want to move the the button half way between 2 sections.

I have a animation at the top & a rich text section with a button at the bottom. 

I was hoping i could move the button in between the animation and rich text section. I would also like to make the rich text bottom padding smaller so it doesnt look so clunky. 

Url - www.phreshcareco.com.au

 

Ive attached a screenshot for a reference. 

Any help would be greatly appreciated. 

 

Screen Shot 2024-08-15 at 8.22.07 am.png

 

Cheers,

 

Accepted Solution (1)

vinh0225
Shopify Partner
128 26 25

This is an accepted solution.

Hi @Phreshcareco 

 

1. From your Shopify admin, go to Online Store > Themes.
2. Find the theme that you want to edit, click the ... button to open the actions menu, and then click Edit code.
3. Open the file assets/base.css and add the following snippets:

.home__richtxt.isolate {
    top: -48px;
}

.home__richtxt .rich-text.content-container {
    background: transparent;
    padding: 0;
}

.home__richtxt .rich-text.content-container .rich-text__blocks {
    background: transparent;
}

Please let me know if you have any concern.

Cheers!

Was my response useful?  Click Like to let me know!
Was your query resolved? ✓ Mark it as a Resolved Solution
If you need custom Shopify changes, ️you can hire me.
Contact me at  ✉️ jalicorich@gmail.com.

View solution in original post

Replies 3 (3)

PaulNewton
Shopify Partner
6722 610 1433

@Phreshcareco as a band-aid use a custom-css setting and absolutely position the button, the containing parent will need position:relative for this to work.

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css

.rich-text__blocks {
  position: absolute;
  top: -40px;
  background: transparent;
}

test on mobile devices, the -100px may need to be changed to percent, or rem, or viewport-heights; 

 

If you want this to behave consistently really the button should be a part of the section with the animation , so it's positioned below starting out then it animates to a default position on load or as user scrolls.

 

If you need that customized further or the video section to have a button, custom-liquid/html setting block then contact me by my email for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

 

Good Luck.

 

 

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


vinh0225
Shopify Partner
128 26 25

This is an accepted solution.

Hi @Phreshcareco 

 

1. From your Shopify admin, go to Online Store > Themes.
2. Find the theme that you want to edit, click the ... button to open the actions menu, and then click Edit code.
3. Open the file assets/base.css and add the following snippets:

.home__richtxt.isolate {
    top: -48px;
}

.home__richtxt .rich-text.content-container {
    background: transparent;
    padding: 0;
}

.home__richtxt .rich-text.content-container .rich-text__blocks {
    background: transparent;
}

Please let me know if you have any concern.

Cheers!

Was my response useful?  Click Like to let me know!
Was your query resolved? ✓ Mark it as a Resolved Solution
If you need custom Shopify changes, ️you can hire me.
Contact me at  ✉️ jalicorich@gmail.com.

BSSCommerce-B2B
Shopify Partner
1194 308 365

Hi @vinh0225 ,

I have reviewed your requirement, you just need to edit css script and the issue will be resolved.  You can follow my instructions! 

 

Step 1: Go to Admin -> Online store -> Theme > Edit code:

BSSCommerceB2B_0-1723681630022.png

 

Step 2: Search for the file base.css. And add this code snippet to the end of the file.

.home__richtxt.isolate {
    top: -48px !important;
}
.isolate {
    position: relative !important;
}

 

Step 3: Save and reload home page.

=>> The result: 

 

#Mobile: 

BSSCommerceB2B_1-1723681719587.png

#Desktop: 

BSSCommerceB2B_2-1723681726878.png

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


BSS: B2B Wholesale Solution |BSS: B2B Portal, Quote, Net 30 | B: B2B Lock Password Protect


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency