data-audio
, data-audio-title
) on the parent <div>
via the Element Settings panel.You cannot directly access or modify Webflow’s generated code, but you can use custom attributes and custom code to dynamically change a parent <div>
value—like those required by Udesly’s audio player—based on CMS fields.
<div>
or element, then go to Element Settings.data-source
and set the value using Add Field → Choose your CMS audio URL field.Example:
data-src
Add Field → Audio File URL
(from your CMS)data-audio
, data-audio-title
, etc.).<div>
includes all attributes Udesly requires, populated using CMS field bindings.Example attributes you might need:
data-audio
: CMS audio linkdata-audio-title
: Song titledata-audio-artist
: Artist fielddocument.querySelector()
or equivalent methods to target and update the correct parent element.data-*
attributes as selectors or data sources.Example:
audio-wrapper
)document.querySelector('.audio-wrapper').setAttribute('data-audio', newUrlFromField);
You can’t edit Webflow’s raw code, but you can set custom attributes on a parent <div>
using CMS fields and use these dynamically with Udesly’s audio player. Optionally, use small JavaScript snippets to modify them after load if more flexibility is needed.