How to set default article template for all blog posts

Instead of applying each new template individually to each blog post, you can replace the default article template so that all your articles will have the same style.

To replace a default article template with a new Design Packs template, follow these steps:

  1. Go to the Shopify admin panel and navigate to the "Online Store" section.

  2. From the "Online Store" menu, select "Themes" to view a list of themes in your store.

  3. Click the "[...]" actions dropdown menu for the theme that you want to use as the template and select "Edit code". We recommend testing on an unpublished theme first.

  4. In the "Templates" folder, you will see a list of template files that are available for your theme. These templates control the layout and content of different types of pages in your store, such as product pages, collection pages, and blog posts.

  5. To set a template for a specific type of page, click on the template file that you want to use. Look for the the "article.liquid" template file.

  6. Click "Add a new template" and create your template based on the article.liquid type and make sure it is set to JSON and call it "original". Click "Done" in the popup to create this duplicate of the existing template. This is a backup of your default article template so that you can revert in the future.

  7. Make sure that your Design Pack template has been added to this theme. Eg. article.dp_browse.json, article.dp_spotlight.json

  8. Click on the template that you would like to apply to all of your articles. Copy and paste the contents of that file to article.json.

  9. Click the "Save" button to save your changes.

  10. Preview your pages to make sure that the template is applied correctly. If everything looks good, you can publish your changes to make them live on your store.

Keep in mind that you can set different templates for different types of articles in your store, but these instructions will apply a Design Pack article template to all articles by default. This will save you the time and effort to select the template every time you create a new blog post.

Last updated