ElMarketer Posted March 9, 2022 Share Posted March 9, 2022 Hello, I need to embed a YouTube video in accordion -complete coding noob- hope somebody can help. thanks in advance. P.S. checked this seems helpful but not for my copy-paste self. Link to comment
vocatvie Posted March 22, 2022 Share Posted March 22, 2022 Hi tuanphan, I just used the Accordion Plugin of sqspthemes and managed to create nice Accordions but I would like to add thumbnails to the tabs like this - https://drive.google.com/open?id=1A089tLYRMUrvQIk_3tpVmLIqLYozgDxv&authuser=kraftpotenzial%40gmail.com&usp=drive_fs How can I do this? https://www.kraftpotenzial.com/accoblocks Link to comment
tuanphan Posted March 24, 2022 Share Posted March 24, 2022 On 3/22/2022 at 8:50 PM, vocatvie said: Hi tuanphan, I just used the Accordion Plugin of sqspthemes and managed to create nice Accordions but I would like to add thumbnails to the tabs like this - https://drive.google.com/open?id=1A089tLYRMUrvQIk_3tpVmLIqLYozgDxv&authuser=kraftpotenzial%40gmail.com&usp=drive_fs How can I do this? https://www.kraftpotenzial.com/accoblocks (Just a test code) Try adding this to Design > Custom CSS /* Accordion - Add an image next to title */ div.c-tabs__content>a { padding-left: 70px; position: relative; margin-bottom: 10px; } div.c-tabs__content>a:before { content: ""; width: 50px; height: 50px; display: inline-block; position: absolute; left: 0; top: 0; } /* first item */ a#tab-video---vimeo:before { background-image: url(https://cdn.pixabay.com/photo/2022/02/23/18/11/drink-7031154__480.jpg); } /* second item */ a#tab-video---youtube:before { background-image: url(https://cdn.pixabay.com/photo/2021/12/21/08/29/owl-6884773__340.jpg); } /* third item */ a#tab-video---embedded-gooogle-drive:before { background-image: url(https://cdn.pixabay.com/photo/2022/03/03/11/18/nature-7045125__340.jpg); } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
vocatvie Posted March 24, 2022 Share Posted March 24, 2022 Hi Tuan, Nice! Thanks. I was trying to upload a 640 x 480 px image, but the image doesn't resize and also the text is not centered vertically. Can you make it responsive too? Like this - https://drive.google.com/file/d/1h8Q3gyl1eOU_TP6oDgTsvLy39O8RcxfK/view?usp=sharing Link to comment
tuanphan Posted March 26, 2022 Share Posted March 26, 2022 On 3/24/2022 at 5:40 PM, vocatvie said: Hi Tuan, Nice! Thanks. I was trying to upload a 640 x 480 px image, but the image doesn't resize and also the text is not centered vertically. Can you make it responsive too? Like this - https://drive.google.com/file/d/1h8Q3gyl1eOU_TP6oDgTsvLy39O8RcxfK/view?usp=sharing Try edit this code div.c-tabs__content>a:before { content: ""; width: 10em; height: 100%; display: inline-block; position: absolute; left: 0; top: 0; } to this new code (I added background-size: cover;) div.c-tabs__content>a:before { content: ""; width: 10em; height: 100%; display: inline-block; position: absolute; left: 0; top: 0; background-size: cover; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
vocatvie Posted March 28, 2022 Share Posted March 28, 2022 Nice! backround-size and .c-tabs__accordion-tab { display: flex; } aligned everything perfectly even on mobile. Link to comment
vocatvie Posted March 28, 2022 Share Posted March 28, 2022 Can you help me to style this site - https://www.kraftpotenzial.com/accoportfolio too to match the design exactly like CSS above? Currently, the pic is centered and above the title - I also want to make it like this page - https://www.kraftpotenzial.com/accoblocks (picture to the left and title+icon horizontally centered to the right) Link to comment
tuanphan Posted March 30, 2022 Share Posted March 30, 2022 On 3/28/2022 at 5:23 PM, vocatvie said: Can you help me to style this site - https://www.kraftpotenzial.com/accoportfolio too to match the design exactly like CSS above? Currently, the pic is centered and above the title - I also want to make it like this page - https://www.kraftpotenzial.com/accoblocks (picture to the left and title+icon horizontally centered to the right) Hi, You mean reduce image size? https://www.kraftpotenzial.com/accoportfolio Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
vocatvie Posted March 30, 2022 Share Posted March 30, 2022 Yes the Portfolio Accordion should also look like this too: Link to comment
tuanphan Posted April 1, 2022 Share Posted April 1, 2022 On 3/31/2022 at 12:31 AM, vocatvie said: Yes the Portfolio Accordion should also look like this too: Add to Page Header <style> .c-tabs__accordion-tab .c-tabs__tab-img, .c-tabs__accordion-tab .c-tabs__tab-img img { padding-bottom: 0 !important; margin-right: 20px; } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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