Docs / Frameworks
Plain HTML
Use the HTML version of an item in any page: link two files and paste one block of markup. No build step, no framework.
- Version
- HTML
- Needs
- Nothing
- Setup time
- About 1 minute
Set up
Get the files
On the item page, switch Get it to HTML and click Download zip. Or copy each file from the Code view.
glow-button-html.zipglow-button-html/ index.html script.js style.cssLink the files
Put
style.cssandscript.jsnext to your page and link them from it, once.your page<link rel="stylesheet" href="style.css" /> <script src="script.js" defer></script>Paste the markup
In the item's
index.html, copy what sits between its copy from here and to here comments. Paste it where the item should show.index.html<button class="glow-button" type="button"> <span class="glow-button-label">Get started</span> </button>
Good to know
- Vue and Svelte: put the markup in a component's template and link the two files once, in
index.htmlor your root layout. - Laravel: put the files in
public/, link them in your Blade layout withasset(), and paste the markup into a Blade view. - WordPress: put the files in your theme and load them with
wp_enqueue_styleandwp_enqueue_scriptinfunctions.php, or paste the markup into a Custom HTML block. script.jssets up the markup that's on the page when it runs. For markup a framework adds later, run the item's setup again: Glow Button's iswindow.initGlowButton().