HTML Embed collection button


I have a collection in the workspaces page for the private office’s section.

Each private office has a thumbnail and currently, I have a button created using and html embed set to email with the office name so Office 12, 13, 14 etc. So each thumbnail link has a different subject in the email.

As it is an html embed I would like to style the button like the other orange buttons on the site. What would be the best way to create a text box within the button?


Here is my site Read-Only:

Hey @scottalexwatson! Hope you’re well.

If I’m understanding you correctly, you’re looking for a way to style your HTML embed the same as your orange buttons, correct? And then place a text block inside of it?

If so, here’s what I did with your read-only link to achieve somewhat along the lines of what you’re looking for. In your HTML Embed, change your code (temporarily) to:

<div class="button-orange w-button">
     <p> Email </p>

When you do this, you’ll see the text “Email” within your Div, styled with your site’s default styles for paragraphs.

Now, for your specific use case, replace the code above with the code below:

<div class="button-orange w-button">
		<a class="w-inline-block button-private-office" href="{{wf {&quot;path&quot;:&quot;name&quot;,&quot;type&quot;:&quot;PlainText&quot;\} }}">Email</a>

It looks a little odd when you do this, but you just need to re-style the button-private-office class to fit more cleanly within the div.

Hopefully this makes sense. Let me know if you have any questions!

Hi Matt,

This worked perfect!!

Many thanks for the help!


1 Like