timrocheleau Posted August 30 Share Posted August 30 (edited) Hi everyone ! Haven't found exactly what I'm looking for yet, so I figured I would ask here. I made a promotional video for my company that I set as a background on the website's main page. However, I also made a vertical version of the same video to post on Tiktok and Instagram, and I would like to have it as the mobile background. This is my website : https://rtfxcreative.com (It's in french) This is the original video : https://youtu.be/dSLlPzs87MY And this is the vertical one for mobile : https://youtube.com/shorts/Kd9T37ntvIs Ideally I would like to have them both directly hosted on the website instead of relying on YouTube links. Is there a way to do that ? Thanks in advance for your help ! Edited August 30 by timrocheleau Link to comment
Lesum Posted August 30 Share Posted August 30 @timrocheleau You have the option to create a section with the vertical video background just below the background video section for desktop view. With custom CSS code, we can ensure that the section with vertical video background is visible only on mobile devices. Once you've created this section, I can provide you with the necessary code. Additionally, you can download and upload the YouTube video on Squarespace and use it as a background. Thank you. timrocheleau 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
timrocheleau Posted August 30 Author Share Posted August 30 Thanks for your quick response @Lesum ! I just created the section like you said. Link to comment
Solution Lesum Posted August 30 Solution Share Posted August 30 @timrocheleau Here's the code snippet to display the second section you just added only on mobile view: section[data-section-id="64ef64b0faeb714170c9687c"] { display: none !important; } @media only screen and (max-width: 767px) { section[data-section-id="64ef64b0faeb714170c9687c"] { display: block !important; } section[data-section-id="6465756225992a307c3806fe"] { display: none !important; } } If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
timrocheleau Posted August 30 Author Share Posted August 30 It worked ! Thank you so much for you help ! Lesum 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment