Advanced Webflow Solutions with Custom Attributes
Microcodes
Unlock the full power of Webflow with our Microcodes, custom attribute solutions that enable features Webflow doesn't support natively.
<!-- Basic: turns div into a link to /about-us --><div data-mc-url="about-us"> About Us</div> <!-- Add a prefix (e.g. /company/about-us) --><div data-mc-url="about-us" data-mc-url-prefix="/company"> About Our Company</div>HTML Embed Via Component Props
Paste and render HTML codes dynamically in Webflow Component via props
Webflow now does this natively. Kept for reference.
View microcode<!-- HTML Embed Component Structure --><div data-html-container> <!-- SVG code as escaped text (hidden from users) --> <div data-html-source style="display: none;"> <svg width="100" height="100"> <circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" /> </svg> </div> <!-- Rendered HTML will appear here --> <div data-html-target></div></div>Attribute-based Smart Link
Make any element a link using data attributes. Works on all HTML elements.
View microcode<!-- Basic: turns div into a link to /about-us --><div data-mc-url="about-us"> About Us</div> <!-- Add a prefix (e.g. /company/about-us) --><div data-mc-url="about-us" data-mc-url-prefix="/company"> About Our Company</div> <!-- Add a suffix (e.g. /about-us?ref=home) --><div data-mc-url="about-us" data-mc-url-suffix="?ref=home"> About Us (with ref)</div> <!-- Open absolute URL in new tab --><div data-mc-url="https://example.com" data-mc-target="_blank"> Visit Example.com</div> <!-- Combine prefix, suffix, and open in new tab --><span data-mc-url="team" data-mc-url-prefix="/company" data-mc-url-suffix="#leadership" data-mc-target="_blank"> Meet Our Leaders</span> <!-- Use on button --><button data-mc-url="contact"> Contact Us</button>How they work
Three steps,
no build tools.
Copy the script
Paste it into the head of your page.
Add the HTML structure
Build it with Webflow elements.
Apply attributes
Set the custom attributes on each element.


