Use text-justify for Rich Text Editor content
Note:
Groupthought does not provide any warranty or further support for this code. Use this code at your own risk. The code provided below is only a suggestion. You are responsible for any and all code customizations made to your theme. Please work with a developer or Shopify Expert to ensure proper customization. This code may not work with all versions of of Pipeline or with other code customizations and apps you may have installed. We strongly recommend that you make duplicate of your theme before adding or changing any code in your theme.
This tutorial is intended for use with the Pipeline theme.
The Shopify Rich Text Editor does not include an option to justify your text. You can use this modification in Pipeline to provide that style for your Pages, Blogs and Product description areas (these all use the Rich Text Editor for their content).
Example - Product Description
Before:
After:
Example - Blog page
Before:
After:
Code to use:
/* -- code to justify Rich Text Editor text -- */ .rte p { text-align: justify } /* - end - */