Skip to main content
Solved

How to add a button to a table block & avoid stacking on mobile


Forum|alt.badge.img+3

Hey guys,

 

I would like to create columns to my email that also display on mobile, instead of becoming stacked. Does anyone know how to include buttons into a table? 

 

Thanks,

Viki

Best answer by Dov

Hello @vikiohagan91,

Thanks for sharing your question with the Klaviyo Community.

In order to display columns horizontally, your best bet is to use a table block in the mobile (or mobile + desktop) view of the email template. While table blocks can only contain text and images, they allow you to customize your emails with columns by maintaining side-by-side columns on mobile.

Adding a button to this table would only be possible if you custom coded it in. While it’s not something Klaviyo staff is equipped to assist with at this time, it would be great to hear from another community member that may have had success custom coding a button into their table block. Alternatively, you can look to connect with a Klaviyo partner to assist with custom coding email templates.

Thanks and have a great rest of your week.

View original
Did this topic or the replies in the thread help you find an answer to your question?

3 replies

Dov
Forum|alt.badge.img+61
  • Klaviyo Alum
  • 1493 replies
  • Answer
  • July 1, 2021

Hello @vikiohagan91,

Thanks for sharing your question with the Klaviyo Community.

In order to display columns horizontally, your best bet is to use a table block in the mobile (or mobile + desktop) view of the email template. While table blocks can only contain text and images, they allow you to customize your emails with columns by maintaining side-by-side columns on mobile.

Adding a button to this table would only be possible if you custom coded it in. While it’s not something Klaviyo staff is equipped to assist with at this time, it would be great to hear from another community member that may have had success custom coding a button into their table block. Alternatively, you can look to connect with a Klaviyo partner to assist with custom coding email templates.

Thanks and have a great rest of your week.


Forum|alt.badge.img+1
  • Contributor I
  • 1 reply
  • August 30, 2022

I recently had the same problem with adding a button to a table in Klaviyo editor, and I explained how it is done here. You can also copy-paste the template in here directly if you (like me) don’t love code. Hope it helps! 


Forum|alt.badge.img+2
  • Contributor I
  • 1 reply
  • December 24, 2022
LawrenceK wrote:

I recently had the same problem with adding a button to a table in Klaviyo editor, and I explained how it is done here. You can also copy-paste the template in here directly if you (like me) don’t love code. Hope it helps! 

Hi, your link doesnt work anymore. Anyway u can fix it? would be really helpful

thanks,