How do I place the bar anywhere on my site with 2.0 Theme? •



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


Screen Shot 2022-04-08 at 4.19.22 PM.png

There are two options on how you can do this.


Option 1: Place the placeholder code in your theme

Place the code <div id="fsb_placeholder"></div> in your theme code, as shown here:

Screen Shot 2022-04-08 at 4.21.24 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. In these situations, you can use option 2 

Option 2: Place an app block in your theme

Screen Shot 2022-06-08 at 4.45.06 PM.png

That's what I'll walk you through.

Step 1: Ensure that the bar is in fact set to manual placement in the app's dashboard:

Screen Shot 2022-04-08 at 4.19.22 PM.png

Step 2: Navigate to your theme customization screen by going to your Online Store Sales Channel, then to your Theme, then click customize as shown here:

Screen Shot 2022-06-07 at 1.29.17 PM.png


Step 3: If you are on a 2.0 theme, you'll be able to choose the page you wish to customize. We'll begin with the home page.

Screen Shot 2022-06-08 at 5.21.01 PM.png


Step 4: Add the bar as it's own section. To do that, you can click on Add section:

Screen Shot 2022-03-24 at 3.39.36 PM.png


Then scroll to the bottom and you'll see a section called Apps. Among the options, you'll see Free Shipping Bar:

Screen Shot 2022-06-08 at 5.16.41 PM.png

Click on it to add it to your page. It will then be at the bottom of the sections.

Screen Shot 2022-06-08 at 5.23.47 PM.png


Step 5: Position the block where you would like. You can use the dotted tab to move the bar around in the layout:

a.png


You may find yourself trying to drag the bar by grabbing the dotted tab for the FSB Custom Placement block. But that won't work. You need to grab and move the dotted tab of the Apps element.

b.png


c.png


And you should be able to see the bar that has been prepared in the app configuration rendered into the preview window:

d.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.


Here are some examples of what you can do with the following steps.

We can use the App Block approach to customize placement such as placing the bar below the Add to cart button on product pages or above the subtotal in the cart page.

Switch over to the product page and choose Default product:

h.png


Screen Shot 2022-06-08 at 5.43.17 PM.png

A product page will display.

From here, you can choose to add the bar as a section or a custom liquid, just as in the above example. But you can also add the bar as part of the item description, placing the bar below the add to cart button. Here's how.

In the left side menu, click Product information to open the section and see all of its components.

j.png

At the bottom, click Add block. Select FSB Custom Placement.

k.png

The App Block will be added to the bottom of the section.

l.png


You'll then be able to use the dotted tab to drag it around the section. 


m.png


You can drag it to just under the Buy buttons.

n.png


Now you'll be able to see the bar placed underneath the Buy it now / Add to cart buttons.

o.png


A similar approach can be used on the cart page.  Using the top drop down, open the cart page layout:

p.png


Using the same approach as before,  you can click on Subtotal to open up the section and see the contents. In there you can click on Add block to add the FSB Custom Placement. In this example I dragged the block to above the subtotal. 

q.png


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.


Option 3: Add a custom liquid block

If you want the bar to occupy the full width of the page, you can add the bar a different way. Rather than adding a section from the app, you'll add a custom liquid block.


Step 1: Open your theme editor, and add a custom liquid section

e.png

Step 2: Click on the newly created block. You will see an empty field where you can place your code. This is where you'll place the placeholder code:

<div id="fsb_placeholder"</div>

Step 3: Don't forget to save!

f.png

After saving, the page will refresh and you should be able to see the bar:

g.png


Step 4: You can click and drag the custom liquid to move the bar to any spot on the page below the header. You cannot place the bar above the header using this approach.We also have a video tutorial, if you prefer:


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

Still need help? Contact Us Contact Us