Solved

Can you limit the amount of characters displayed for a product title in a product block?

  • 20 May 2021
  • 1 reply
  • 496 views

Badge +2

Hi there, I was just wondering whether it is is possible to limit the amount of characters displayed for a product title in a product block?

 

We are a marketplace company so people tend to write long and weird formats for their product title. This makes the product blocks look bad because all items end up being different heights as titles start a new line ect.

 

Very grateful for any solutions for this! Thanks, jim :)

icon

Best answer by retention 20 May 2021, 19:06

View original

1 reply

Userlevel 7
Badge +57

Hi Jimmy,

I assume you’re using a “Feed” to populate the products in your Product Blocks?  If so, then there’s some limitations of what you can configure.  If you are picking the products from the catalog manually, you can adjust the Titles as you see fit.

See here:
 


If this needs to be dynamic, then another approach is you can create a product feed as a “custom web feed” and build your own repeating blocks for more control of the look and feel including using “Filters” to truncate or limit the number of characters. 

In essence, you are building your own version of the “Product Block” by using a Custom Web Feed as the source to your list of products.  It’s a little more technical and involved, but you have full control of how it looks beyond what’s provided in a Product Block.


Here’s some Klaviyo documentation to help you get started:

Hope that helps!

Reply