Jump to content

Spotify embed size on Mobile version

Recommended Posts

Just renewed my website for another year, only to find that the Mobile version has a big space whenever I embed a Spotify playlist; this looks awful and so unprofessional.

For a musician who depends on playlists, the majority of which are Spotify tunes, I need it to look good - at the moment, there is a huge empty space on my page under EVERY playlist (the yellow I added is the space I wish to remove):

image.thumb.jpeg.41572638e30fd5755a679db720b6e362.jpeg

Can someone pls advise how to remove this blank space, and how to change the code so that the playlist is not minimised to a window that you have to scroll on.

Thanks for your help!

Edited by tommmmusic
Link to comment
  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

On 1/19/2023 at 4:06 AM, tommmmusic said:

Sure! Page is: 

https://www.tommmatthews.com/projects/tv-drama
 

Many thanks!

Add to Design > Custom CSS

@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1673746598493_19432 .embed-block-wrapper {
    padding-bottom: 30% !important;
}
}

 

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

Hey @tuanphan, thanks so much - that works great with one block (Spotify player), but if i try to apply that code as a list to the other Spotify playlists on the page, it doesn't work...

If you see how I've tried to add multiple, you'll see the effect it has on the page...

Question: How can I write a code for all 4 playlists on the page?

Many thanks!

Here is the code:

Quote

@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1673746598493_19432, #block-5f5bf147cd3a23fd488f .embed-block-wrapper {
    padding-bottom: 25% !important;
}

The coding for the first playlist doesn't work (div#block-yui_3_17_2_1_1673746598493_19432) but the second does

First playlist:

image.thumb.png.c2be1b42cbdb3ed5087bd8bed5af45eb.png

Second playlist:

image.thumb.png.13ee1a4a0236ff11cd054c6344ae5591.png

Thanks!

Link to comment
On 1/27/2023 at 1:56 AM, tuanphan said:

Hi,

It looks like you figured it out?

 

Hey Tuanphan, 

I basically copied the code and repeated it for each separate block.

I think no need to group them together, no difference right?

Thanks again!

Link to comment

Yes. Or you can combine them, something like this


@media screen and (max-width: 767px) {
    div#block-yui_3_17_2_1_1673746598493_19432 .embed-block-wrapper {
        padding-bottom:25% !important;
    }
div#block-5f5bf147cd3a23fd488f .embed-block-wrapper {
        padding-bottom:25% !important;
    }
div#block-61658798d199cd48c9e9 .embed-block-wrapper {
        padding-bottom:25% !important;
    }
div#block-yui_3_17_2_1_1651622547412_63949 .embed-block-wrapper {
        padding-bottom:25% !important;
    }
}

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.