Was hoping someone could help. I’m pretty new to webflow and figured out how to create a custom email subject line using embeded code and a link block. However, the embeded code is small and I am unsure of how to make it cover the full button.
I have attached a screenshot of the button, the red part is the embeded code.
I have already tried to make it absolute and cover the button but it does not work properly and only covers the top.
And here is the code inside the button.
<a class="w-inline-block book-class-button" href="mailto:email@example.com?subject=CLASS BOOKING - CMS ITEMS HERE"></a>
Thanks in advance!
Hey Brandon. You actually don’t need an HTML embed for this. If you use the button component or any link, you can choose from mail, phone, URL, page, file, or anchor. In the mail option, you can set the subject line. See below!
Thanks for the response! Yes I did see that, however I want to combine class name, date of class and instructor which are 3 different CMS items.
It works perfectly with the embed but just having issues with styling the embeded block.
Gotcha. Does it look like that only in preview or when it’s published, too?
Okay, it’s formatting like that because it has the same class name as your button. So, it’s inheriting colors and sizing. The red border shows because the background on the HTML embed is set to red.
Remove the class in the embed. If you need a class name, don’t make it the same as the button. Or, set up a combo class.
Okay gotcha! Thank you, that has solved the issue of the embed looking weird (I purposely made it red to show it on here), and I thought the class had to be the same in the embed to connect them but I was wrong.
However, now the button looks fine, but I cannot click it and get the email pop up
Also just discovered that if I change the embed class name to something else, it does not open the email at all. Not sure why that is, but it seems like it has to be the same as the button unless it is something else wrong
I found a make shift solution, not sure if it’s the most effective way to do it but it works.
It is quite easy to make a button out of the html embed, but I couldn’t figure out how to put text.
So I built a button, named the html embed class the same as the button, and made the embed absolute and made it cover the button. Works now, thanks for the assistance!
I was about to say the same, I want to add the HTML full Embed button on my website for the user interaction when they visit my website need any help regarding my website they can directly contact with me how can I do this. My website is control asistencia biometrico. Need help regarding this how can I do this.