How do I place the bar visually in theme customization? (CTB)

Kindly watch our video tutorial about this topic here:


If you prefer a step-by-step guide please read further below.

 

If you wish to place the Countdown Timer Bar somewhere other than the top or bottom of the page, you can use the Manual Placement option.

 

Screen_Shot_2022-03-29_at_4.57.16_PM.png

 

From here you have two options. You can place the code  <div id="ctb_placeholder"></div>  in your theme code. Something like this:

Screen_Shot_2022-03-29_at_5.00.02_PM.png

That often works, but there can sometimes be some unexpected results with some themes. Also, some themes don't have a body section that can be easily edited, and instead you'll see something like this:

mceclip0.png

With nowhere to place your placeholder code. 

 

So another option is to place the bar manually in the theme's Customize section. 

Screen_Shot_2022-06-09_at_12.08.09_PM.png

 

That's what I'll walk you through.

 

*Please note that if you are not using a Shopify 2.0 theme, you might not be able to add a section to certain pages.

 

First, you'll need to get into the theme customization space. For that click on: 
1 ) Online Store
2) Themes
3) Customize
Screen_Shot_2022-06-07_at_1.29.17_PM.png

When you enter the Customize page, the home page will load. You can choose to edit a page other than the home page by clicking on the drop down at the top center area:

Screen_Shot_2022-06-09_at_12.32.09_PM.png

 

When you click on it, a drop down opens up to show you the available pages to edit:

Screen_Shot_2022-06-09_at_12.32.34_PM.png

 

 

We'll stick with the home page for now.

 

On the left side menu, at the very bottom, you can click Add section. If you scroll down, you'll find a section called Apps. In there, you'll find CTB Custom Placement. Click that.

Screen_Shot_2022-06-07_at_1.32.39_PM.png

 

 

 

The section will then be inserted into the page at the bottom:

Screen_Shot_2022-06-09_at_12.50.20_PM.png

 

You can move the bar around the page by clicking and dragging the dotted tab (hover over that area to see the tab):

Screen_Shot_2022-06-09_at_12.51.24_PM.png

 

You may find yourself trying to move the bar by the dotted tab next to CTB Custom Placement. But that won't work:

Screen_Shot_2022-06-09_at_12.56.12_PM.png

You need to grab the dotted tab for this Apps section.

Screen_Shot_2022-06-09_at_12.51.24_PM.png

 

So now you should be able to drag the bar to your desired spot:

Screen_Shot_2022-06-09_at_12.08.09_PM.png

 

 

If you click on the section, you'll see that there are no customizable settings. All the settings are still set in the app. But this allows you to place the bar in your theme more easily.

 

If you want the bar to occupy the entire width of the page (you'll notice the bar doesn't quite go edge to edge), you would take a different approach. Rather than adding a section as we've done, you would add custom liquid code.

Screen_Shot_2022-06-08_at_5.32.23_PM.png

 

This new section will load at the bottom of the page. When you click into it, there will be an empty box. In there is where you will place this code:

<div id="ctb_placeholder"></div>

 

Screen_Shot_2022-06-09_at_1.49.47_PM.png

 

Then Save (top right) and the bar will then load and go from edge to edge.

Screen_Shot_2022-06-09_at_1.52.58_PM.png

 

You can follow these same steps on other pages.

 

So far we've been placing the bar as its own section. But you can place the bar as a block inside another section. For that example we'll switch over to the product page. In the top drop down click in and select Products, then Default product.

Screen_Shot_2022-06-08_at_5.42.32_PM.pngScreen_Shot_2022-06-08_at_5.43.17_PM.png

 

The product page will load. We're going to focus on the section called Product information. You can see all of the components that make up that section. We can add our bar to that by adding a block.

 

Screen_Shot_2022-06-09_at_2.02.00_PM.png

 

At the bottom of the section in the menu, click Add block. Just as before, select the CTB Custom Placement block.

Screen_Shot_2022-06-09_at_2.02.34_PM.png

 

It will then appear at the bottom of the section. Now you can use the dotted tab directly next to the bar to drag it up. 

Screen_Shot_2022-06-09_at_2.03.18_PM.png

 

 

You can place it just above the buy buttons if you like.Screen_Shot_2022-06-09_at_2.03.58_PM.png

 

You can use the same method to place the bar in the cart page:

Screen_Shot_2022-06-09_at_2.13.30_PM.png

 

 

 

 

 

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.