
Shopify Theme Customization with Liquid
By :

In the following project, we will be learning about the string and array filters by working with and creating the product accordions feature. But, before we proceed with the project, what exactly do string and array filters do?
String filters are methods that allow us to manipulate the output of Liquid code or the variable itself as long as the variable is a string type, whereas array filters allow us to manipulate the output of arrays.
For this project, we will first find one product with a lengthy description. To save some time, we already included the necessary description in the Black Armchairs product that we previously imported from the product-data.csv
file in Chapter 3, Diving into Liquid Core with Tags.
Figure 5.4 – Example of a long product description
As we can see from the previous screenshot, having a lengthy product description can be quite inefficient as it takes up a lot of space. While we can easily...