I have a custom liquid section that displays a video on my landing page. I was wondering if it was possible to add a “call to action” button (to send people to my shop) that overlays the video? The code I have so far is:-
<style>
video {
display: block;
margin: 0 auto;
width: 97%;
height: 50%;
}
@media screen and (max-width: 767px) {
video {
display: none;
}
}
</style>
<!-- Video section will be hidden on mobile devices -->
<video autoplay loop playsinline muted>
<source src="https://cdn.shopify.com/videos/c/o/v/dfc57cbdaa394a368dd633a60a1c9615.mp4">
</video>
Sorry! I’m sure I’m being numb here but I’ve been trying to find out a way to this without success. I’m assuming that instead of sending the click of the button I created to the video file, it needs to reference the section that you want to jump to so it’s at the top of the page?
For my own learning, could I ask why you get the string "
#shopify-section-template–19592360198454__df329a39-baec-4186-82b2-b20f9fb17e73" from that goes into the button element?? How do you know what to leave out?
Hi! I would like to use this to add a CTA button to my home page video. I want it to link to a collection or landing page elsewhere on the site. How do I do that? I am also sorry if I’m being dumb here
Please create a Custom Liquid section on your homepage in Sales channels > Online Store > Themes > Customize, replace Add your site URL here in the code with the page link you want the button to open.
Hi, I don’t have the option to ‘replace Add your site URL herein the code with the page link you want the button to open.’ I only see the attached when I add a new section:
Go to your store admin > Sales channels > Online store > Themes > Customize > click + Add section > Custom Liquid, add above code which marked as solution, and add your link
next question: how do I create a button? at the moment it’s just text and it’s not in keeping with our brand. So can it be made to look the same as our other CTA buttons? Pls see attached screen shots - if possible I’d love to have the white CTA button?