Design Packs Docs
design-packs.comView on Shopify App Store
  • Get started here
  • Guides
    • Adding your first section
    • Adding your first template
    • General settings
    • Helpful hints & resources
    • Troubleshooting
    • Performance
  • Fundamentals
    • Section Settings
      • Setting Solid Background Colors instead of Gradients
      • Understanding Layout Settings: Size & Maximum Width
      • Understanding Inner Padding & Outer Margin Settings
      • Custom Classes Setting
      • Show Individual Variants Setting
      • Enable Metafield Detection Setting
        • Metafield ready sections
        • How to Use Metaobjects on Product template with Image with text - simple section
      • Metafield Badge Setting
      • Using Blog Tags Setting to Show Product-Specific Blog Posts
      • Add custom events when product is added to cart
      • Size Controls for Image & Video Blocks
      • Featured collection - blocks
        • How to use the Liquid Block in "Featured collection - blocks" Section to Add Custom Review Apps
        • How to use the Metafield Image Badge block
        • How to use the Metafield text block
      • Newsletter/Signup Form Block - Tags
      • How to add a Hidden Field in Contact Form
    • Sections
      • Banners & Sliders
      • Flourish
      • Icon & Logos
      • Image with text
      • Menus & Navigation
      • Blocks & Columns
      • Text Content
      • Products & Collections
      • Article sections
      • Galleries
      • Misc
      • Modal Popup
    • Templates
      • Regular Page
      • Lookbooks
      • Blogs
      • Blog Posts
      • Collection
      • Landing pages
    • Custom CSS
      • Basic CSS examples
      • Mobile CSS examples
      • Advanced Examples
    • Shopify expertise
      • Theme editor
      • Metafields
      • MetaObjects
    • How to Guides
      • How to jump/ link to another section on the SAME page
      • How to forward a contact form in Shopify to a different email with Gmail filters
      • How to create new page templates (and keep the original as a starting point)
      • Creating a New Product Template
      • How to set default article template for all blog posts
  • Use Cases
    • For Designers
    • For Developers
    • Agency Licenses
    • Affiliate Program
  • PRODUCT BLOCKS
    • Product Blocks
      • Image with text block
      • Connected products block
      • Variant descriptions block
      • Value icons block
      • Video block
      • Collapsible content block
      • Feature range block
  • Integrations
    • Theme Updater App
Powered by GitBook
On this page
  1. Fundamentals
  2. How to Guides

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.

PreviousCreating a New Product TemplateNextFor Designers

Last updated 2 months ago

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.