Is there a way to control the size of the Soundcloud player in Webflow and have the ability to add embed code instead of just the URL?
Yes, there is a way to control the size of the Soundcloud player in Webflow and also add the embed code instead of just the URL. Here's how you can do it:
Drag and drop an Embed component onto the page where you want to display the Soundcloud player.
Double-click the Embed component to open the settings panel.
Go to the "Settings" tab and click on "Custom Code".
In the "Embed Code" field, paste the Soundcloud embed code that you obtained from the Soundcloud website. This embed code will provide you with more control over the player size.
Once you've pasted the embed code, you can modify the size of the player by editing the width and height values within the code. You can set the width and height to specific values or use percentage values to make it responsive.
For example, you can set the width to 100% to make it fit the container, like this:
<iframe width="100%" height="166" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/293&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>
Customize any other settings you want, such as autoplay, hiding related tracks, showing comments, etc., according to the Soundcloud documentation.
Click "Save & Close" to apply the changes and exit the settings panel.
Now the Soundcloud player with the specified size and settings will be displayed on your Webflow site.
By using the embed code instead of just the URL, you have more control over the appearance and behavior of the Soundcloud player within your Webflow project. This allows you to create a more seamless integration and customize the player to better suit your website's design and functionality.
Additional Resources:
Q&A:
- How can I control the size of the Soundcloud player in Webflow?
- What is the difference between using the Soundcloud URL and the embed code in Webflow?
- Can I customize the appearance of the Soundcloud player in Webflow?