← Return to Insights

Assign Bricks Template to Specific Page Without Template Priority

Edwin Masripan
Last Update: May 15, 2025
3 minutes read
Share on
Table of Content

Having migrated from Oxygen a few years ago, there’s one missing element in Bricks: Template Priority. In this post, I will address how to assign Bricks Template to a specific page.

Let’s assign Page template in each page (for specific page) like the image below

Assign Bricks Template - assign bricks template choose template

Before this, you have to use Template Condition in ______. Things get really messed up when you have multiple Custom Post Types (CPTs) and Taxonomy. A more straightforward way to assign a template is directly on the page.

Overview Steps

Here’s a quick overview steps that you need to do.

  1. Create a Bricks Template page
  2. Create a PHP template file in Bricks Child
  3. Paste the PHP Code
  4. Select on Page
  5. Preview

Create Your Bricks Template

Open Bricks → Template and start creating the template page. Make sure to select “Single”.

Assign Bricks Template - assign bricks template to page create bricks template

Start creating your page as desired.

You should also include the “Post Content” so that the page is rendered dynamically or using Gutenberg. If you are not using any, you should skip tutorial and use “Edit With Bricks” on the page itself.

Assign Bricks Template - assign bricks template to page post content

Once you are done, Save it and return to WP Dashboard.

Your Website’s Not Ugly…
It’s Just Not Selling
Your website shouldn’t just exist — it should perform. We redesign websites to turn passive visitors into active leads, using conversion-focused design strategies grounded in real buyer behavior.
Assign Bricks Template - website redesign screenshot

The PHP Bit (Easy)

Now we’re done with the template, we can move on the crucial part of PHP.

Open the Bricks Child Theme folder, and add a file with a name convention like “<your template name>-template.php”. Theoretically, you can name it however you want, but for the sake of your future sanity, save it with the same name as your Bricks Template page.

I have saved mine this way.

Assign Bricks Template - assign bricks template to page naming the file

Paste the following PHP in the file you’ve created.

<?php
/*
  Template Name: Content Pages//Replace
  Template Post Type: service, page, industry
 */

get_header();

/* Replace "123", please refer your template ID */
echo '<main id="brx-content">' . do_shortcode( '[bricks_template id="123"]' ) . '</main>';

get_footer();

Change the bricks_template id="123 to your template ID.

You can get the template ID from Bricks → Templates. Copy the ID and replace the numbers.

You can also assign the template to be used on any CPTS in the “Template Post Type” line. Be sure to use the right CPT name. Otherwise, it won’t appear.

Assign Your Page to Template

Now the easiest part is choosing the page to render the template.

Go to your Page or CPT and click “Edit”. You will see change template type on the right panel.

Assign Bricks Template - assign bricks template choose template

Write something on the Gutenberg or Classic editor save and preview.

Congrats! You Now Have a Custom Template

You can use this custom template for many applications like

  • Using pages as specific service page
  • Different page layout for your highlighted blog posts
  • AB Testing for ads optimisation
  • Using hte same the post type with multiple page layout

The choice is yours!

If you find this post helpful, please share it with your Bricks friend and community.

Category: Website Optimisation

Related Services: Website Redesign
Edwin Masripan
Growth Strategist. Performs marketing, copywriting, design and coding for the most significant chunk of Laman7's work. You'll see him often tucked in the corner with a book, cycling when it is windy, head to the beach when it's rainy. Yeah, he's weird, aren't we all?
Share on
Table of Content
Simplified CRM

Subscribe to Insights

We send out weekly Growth Tips to 2145 Marketers and Sales people.

Subscription Form