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

The Manual Placement feature, and the associated insertion code, are provided to make it possible for merchants and their developers to implement their own customizations. It is recommended to hire a developer for any theme customizations, and to implement any edits on a duplicated copy of your theme. Please note, we do not offer any customization services.


If you want to position the Free Shipping Bar somewhere other than the top or bottom of the page, you can use the Manual Placement for the display position. There are two ways to do this:

Screen_Shot_2022-04-08_at_4.19.22_PM.png


Insert the Placeholder Code to Your Theme

To manually insert the placeholder code into your Shopify theme, follow these steps:

  1. Copy the placeholder code below:
<div id="fsb_placeholder"></div>
  1. In your Shopify admin, go to Online Store > Themes.
  2. Click the 3 dots > Edit Code on the theme you want to edit.

  1. Navigate to the desired file where you want to add the placeholder.
  2. Paste the copied code into the file.

Screen_Shot_2022-04-08_at_4.21.24_PM.png

  1. Save your changes.

Note

This method may not work in some themes, especially if the theme's main body code consists only of:

{{ content_for_layout }}

If this option doesn't work, you can proceed with the other option below.



Use Custom Section to Display the Bar

If you want to visually place the bar within your theme, you can do so by creating a custom section. Follow these steps:

  1. In your Shopify admin, go to Online Store > Themes.
  2. Click the 3 dots > Edit Code on the theme you want to edit.

  1. In the Sections folder, click Add a new section.


  1. Name the section fsb_bar, select Liquid, then click Done.


  1. A new section will be created with default code. Delete the default code and replace it with the following:
<div class="fsb-section">
<div>{{ section.settings.fsb_section_body }}</div>
</div>

<section>
<div id="fsb_placeholder"></div> 
</section>
{% schema %}

{
"name": "FSB",
"limit":1,
"presets": [
{
"name": "FSB",
"category": "Custom"
}
]
}
{% endschema %}
{% stylesheet %}
{% endstylesheet %}
{% javascript %}
{% endjavascript %}

Like so:

  1. Then save (top right).

Add the Section to Your Theme

From here, you have 2 options for adding the section to your theme:


Option 1: Insert the section in a Liquid file by adding:

Screen_Shot_2022-12-22_at_2.26.29_PM.png


Option 2: Place the Section Visually in the Theme Editor

  1. In the Shopify admin, go to your Online store > Theme > click Customize.
  2. In the left menu, click Add section.

Screen_Shot_2022-12-22_at_2.05.30_PM.png


  1. Select the FSB.

Screen_Shot_2022-12-22_at_2.33.09_PM.png


  1. The FSB section will be added at the bottom of the layout.

Screen_Shot_2022-12-22_at_2.45.49_PM.png


  1. Drag the section to the desired position by hovering over the right side of the label and clicking on the dotted tab.

Screen_Shot_2022-12-22_at_2.46.18_PM.png


  1. Save the changes for the bar to appear. Depending on the theme, you may also need to preview it to see the bar display correctly.


Here's an example of the bar dragged up to below a slide show element.

Screen_Shot_2022-12-22_at_2.42.40_PM.png

If you have any questions or concerns, you can reach us at help@hextom.com

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