Create Template For Multiple Pages: Difference between revisions

From Posstack.com Documentations
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Note|This guide explains how to create templates for Product, Blog Post, and Store Pages and apply them to multiple pages in bulk. <br/><br/>
{{Note|This guide explains how to create templates for Product, Blog Post, and Store Pages and apply them to multiple pages in bulk. <br/><br/>
Creating a template assigned to multiple pages is handy when you want to build and customize templates for a group of items like Men clothing, Cushions, Rugs, etc.|inline}}
Creating a template assigned to multiple pages is handy when you want to build and customize templates for a group of items like Men clothing, Cushions, Rugs, etc.|inline}}
{{Note|If you want to create one template and apply this same template to multiple pages at once, then this guide is for you.<br/><br/>
{{Note|If you want to create one template and apply this same template to multiple pages at once, then this guide is for you.<br/>
If you want each page (product, blog post, etc.) to have its own unique template, follow [[Create_Template_For_Single_Page|this setup guide]]|info}}
If you want each page (product, blog post, etc.) to have its own unique template, follow [[Create_Template_For_Single_Page|this setup guide]]|info}}
{{Note|To customize Homepage or Collection pages, follow section [[Template for Standard Pages|Template for Standard pages]].|reminder}}
{{Note|To customize Homepage or Collection pages, follow section [[Template for Standard Pages|Template for Standard pages]].|reminder}}

Revision as of 02:41, 24 November 2023

This guide explains how to create templates for Product, Blog Post, and Store Pages and apply them to multiple pages in bulk.

Creating a template assigned to multiple pages is handy when you want to build and customize templates for a group of items like Men clothing, Cushions, Rugs, etc.
If you want to create one template and apply this same template to multiple pages at once, then this guide is for you.
If you want each page (product, blog post, etc.) to have its own unique template, follow this setup guide
To customize Homepage or Collection pages, follow section Template for Standard pages.

Getting started

Watch this overview video to learn how to build a new custom template and assign it to multiple pages - individually or in bulk - using Easy Content Builder.

Create a new Template assigned to multiple pages

Step 1: Create a new template

  • From your Shopify admin, click Apps > Easy Content Builder.
Ecb-menu.png
  • From the Easy Content Builder dashboard, click Browse Templates.
Ecb-browse-templates.png
  • Find a prebuilt template that you want to use, and then click Choose Template.
You can start with a Blank template or add a premade template. Templates are a collection of sections that are pre-built by Easy Content Builder. Once you add a template to your theme, you can add your images and copy to fit your brand. You can easily edit, reorder, or remove any section within that template to create your ideal page.
Ecb-choose-template.jpg
  • Next, select the template type (Product, Blog Post, Page) and enter the template name
Ecb-choose-template-form.png
The template name should be between 3-15 characters - only letters, numbers, underscores and hyphens are allowed.
  • Then, you will be automatically directed to your Shopify theme editor. Here, you can start adding content blocks to the template you’ve just created.
NOTE: After you have done steps above, the new template you’ve just created will appear under Easy Content Builder admin > Manage Templates section with a label ‘Not assigned to any page yet. Click Customize to preview template with: [a specific page]’.

Step 2: Customize the template

From the Shopify theme editor, you'll be able to add Easy Content Builder sections, customize, re-order, or remove them like all other sections in your theme.

Below are common customization you might want to start with:

Add Section Settings block

You should always add a Section Settings first. Why you need this block:

  • To determine your ideal layouts (1-column, 2-column, 3-column, 4-column, or hierarchical layouts)
  • And to control your global configurations (full-width layout, mask color, mask image, background video, parallax animation, etc.)
*Learn how to add a Section Settings block: read the setup guide.
Add new content blocks within a section

Blocks refer to the prebuilt content blocks the Easy Content Builder app provides, such as Accordion, Before & After Slider, Video, Featured Products, Custom HTML, etc. Each template can have multiple sections, and each section has a specific variety of blocks you can add.

After adding a Section Settings, you can add any content blocks made available to the section you've created.

Learn how to add a block to your section: read the setup guide.
Adjust the padding/margin of each section

The Easy Content Builder lets you adjust the space (padding and margin) between elements at two levels:

  • Section Settings level: refers to the global padding configurations for a section.
  • Block level: refers to the padding/margin of a specific block within a section (One section might come with multiple blocks in it.)
Ecb sections padding margin.jpg
Adjust the font size, border radius, background color
  • If you want to change your font size, button, background, border radius, etc., you can do so using the ECB's Custom CSS: 5-min video tutorial.
For Pro plan: In addition to the standard Custom CSS feature, you have an Automatically Generate CSS option - a handy way to customize your theme without coding. Learn more.
Ecb-custom-css.jpg

Step 3: Assign the new template

For Products

To apply the new template to multiple products at once, use the Bulk editor by following these steps:

  • From your Shopify admin, click Products.
  • Click on checkboxes next to each product you want to apply the new template.
  • Then, click on Bulk Edit.
Ecb - Bulk edit.png
  • In the Bulk editor, click the Columns drop-down menu, and then in the General section, click the Template checkbox.
Ecb bulk edit3.jpg
  • Click the template field of the first line, then hold the shift key, and then click the template field of the last line. A blue shading will appear around the items you have selected.
  • Using the drop-down menu, choose a new template for the selected items.
  • Click Save.
To assign a template to a product individually, use the Online Store > Theme Templates section of the product editor (by going to your Shopify admin > Products, click the product from the list of existing products) to apply the new template you’ve just created to a specific product.
For Blog Posts and Pages

The bulk editing feature for blog posts and pages is no longer available. So, follow the steps below to assign a template to blog posts or pages on an individual item level:

  1. From your Shopify admin, go to Online Store > Pages/Blog Posts.
  2. Click the name of the blog post/page to edit.
  3. In the Online store section, use the drop-down menu to select the template you've created to apply to the selected page.
  4. Click Save.
To know which template ID, please open the Easy Content Builder dashboard in another browser tab and click on Manage Templates. Here, you will see the list of templates you created.

Preview your custom template

Steps to preview your products, blog posts or pages with the new custom template:  

  1. From your Shopify admin, click Online Store > Themes.
  2. Find the theme that you want to edit, and then click Customize.
  3. Open the dropdown menu at the top of the page.
  4. Use the dropdown menu to select a template.
  5. In the sidebar, click Change.
  6. Select the product or page you want to preview with the selected template.

Next steps

Manage and edit your templates
Set up multi-column layouts
  • Learn how to set up multi-column layouts:
We suggest you install the Theme Section Kit to customize your Shopify theme faster. This template contains prebuilt sections (Free and Pro versions) that you can edit, reorder, or hide through your Theme Editor. Preview the Theme Section Kit here.
Customize with Custom CSS
  • Learn how to customize your Shopify themes with Custom CSS using Easy Content Builder: 5-min video tutorial.