• Resolved DavidSortOf

    (@davidsortof)


    I’d like to make the Soundcloud players a bit smaller, and perhaps horizontal rectangles rather than the large squares they are now. Any way to do that using css?

    • This topic was modified 4 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @davidsortof,

    I see your embedded players (iFrames) are already rectangles (604×400). But, you can try this CSS as an example to make them smaller and more flatter rectangles.

    
    
    .wp-block-embed-soundcloud iframe {
        height: 200px; /* Originally 400 */
        width: 400px; /* Originally 604 */
    }
    
    

    Got to Appearance > Customize > Additional CSS to add the CSS to your WordPress site.

    Shout if you have any questions 😉

    Cheers!

    Mark

    Thread Starter DavidSortOf

    (@davidsortof)

    Hey, thanks Mark! I ended up using the embedpress plug-in, which lets me change the size, but I’ll try your code, since this would be sans plug-in.

    • This reply was modified 4 years, 8 months ago by DavidSortOf.
    Thread Starter DavidSortOf

    (@davidsortof)

    Hi Mark, actually I do have a question:

    I added this

    .wp-block-embed-soundcloud iframe {
    height: 100px;
    margin-top: -17px;
    margin-bottom: -17px;
    }

    Which works, in the preview pane, but after I Publish, only the height parameter takes effect. I tried shift-refreshing the browser but that didn’t work. Theme is Twenty Thirteen if that makes any difference. Thanks!

    Thread Starter DavidSortOf

    (@davidsortof)

    Update: I just randomly checked the page and the margin changes took effect. Very strange, but all set now; thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Customizing Soundcloud Embed Block w CSS’ is closed to new replies.