Hi - I would like to add a sticky or fixed CTA to ...
# replo-help
j
Hi - I would like to add a sticky or fixed CTA to my landing page. I do not want this CTA to show up in the buy box module, but I do want it to appear as the user scrolls down the rest of the page. 2 questions: 1. Do you know how I get adjust the button so that it doesn't show up on the buy box section of the page? 2. What is the difference between a sticky and fixed cta? I've googled and read everything I can find but it's still not clear to me. This is the basic model we are trying to follow - see how the 'Try gruns' CTA does not show in the buy box? right now our sticky cta for the Variety Pack Landing page is in the bottom left, but we will move it to the top right corner before launch.
o
you put a banner at bottom of page make stick to bottom do opacity for the banner to zero on default and create a custom state for titled 'showing' set to greater than 1,500 px
Sticky follows you down the page and fixed stays where its placed
j
Ok…so I do a banner at the bottom of the page for the whole page? How do I ensure it does not show up in that buy box section?
Also what’s a custom state and how do I implement that?
o
Ill film a loom
j
Thanks, that would be helpful!
j
Thanks for this - does it have to be a product sticky bar or can it be a button? Right now, we have it set as a button with positioning set to sticky...I also do not see the states default vs. showing, i only see default. here's a screenshot of what I see on my end
in case you want to look at our page - it's the Variety Pack Landing Page here https://dashboard.replo.app/editor/5454338c-5e76-4098-8a7f-ea8f6faddd0c/22005f4a-da6d-4a12-968f-1964afc47989
o
Click the plus in the top right corner to add a custom state I just tilted mine 'showing' so I know what it is
and change sticky to bottom if you want it on the bottom - does not have not be a product can just be a CTA
j
ok i got that. thank you! so why does my opacity have to be 0% on default? Also, I am following your steps and then trying to view my work in preview mode but i dont see any cta showing...
o
Can you send a pic so I can see what your show state settings are?
This is because you dont want it to show on the buy box only after x amount of pixels on scroll
j
Sure - is the screenshot I sent above not what you are looking for?
o
I see default and hover there
j
i just followed whatever you did in your loom video
i would have no idea how to find the amount of pixels on scroll
o
that all looks good
Thats just trail and error
j
um...
o
Is it still not working
j
sounds like i could be trial and erroring for hours lol
well first of all, i cant see anything when i go into preview mode
so i cant tell you what is or is not working.
no sticky cta appears in preview mode despite all of the settings you see in the screenshot
o
hmm let me build one on loom
you have it sticking to the top and make sure on your showing the opacity is 100% so you can see it
j
wait - i thought my opacity was meant to be 0%
i followed everything in your loom - i can see my button showing on desktop though it does not dissapear at the buy box (i have tried up to 1500 pixels, it still shows) and it is not showing at all in the mobile preview
i wonder if we could hop on a slack huddle? i have a feeling that might be fastest so I can screenshare with you and you can instruct from there
p
Hi Julie, I'm Leo from the Replo team. 1- The simplest way you can recreate that setup is as follows, using 2 buttons and 2 states on each. This way you can hide one and then show the other one after you scroll the product box. Here is the video: https://www.loom.com/share/071a74f7a0374eebba151c8a9589180a 2- When you need an element to stay in a specific position within its container as you scroll, you can use Sticky. On the other hand, if you want an element to stay fixed in a specific position relative to the viewport, you should opt for Fixed. This URL illustrates an example of the behavior of both Positioning values https://codepen.io/tippingpointdev/pen/rNwyPrN
j
@Leo Garcia (Replo Team) thanks for this. Unfortunately, I followed all of your guidance here and it's still not working. Is it possible for you to re-create this example on our existing landing page and we can edit it from there? You did that with another question I had and it was extremely helpful. Here's a loom video of what I see: https://www.loom.com/share/9c9dca7868414cafae1668370a514b12?sid=3cec5bb6-a647-481e-b026-ab1abed489e8 The 2 issues are: 1. The button container appears but not the button text, then when you scroll the button text appears twice...why? 2. The button does not show up at all whatsoever on Mobile preview I also realize I am using the Button component rather than CTA layer...must this be a CTA layer or can it just stay as a button component?
p
Hi, this is Andres from Replo team. Can you start a live chat? We'll take a look at your case from there.
Hi Andres, thanks for hopping on - I would love to figure out the sticky CTA with you
Sure I'll be waiting for you!
ok im in the replo chat - what else do you need from me to get started on this togehter?
Only need to create a new chat