This feature requires StoreConnect version 10.0 or above. Here is how to
check your version
Custom Header
This article is intended for advanced users and our partners as it requires
advanced web development or Salesforce admin or programming knowledge. While
the functionality is part of StoreConnect, we do not provide end user assistance
to implement it beyond our help documentation. If you need help or are unsure on
how to do this, you can hire one of our StoreConnect partners.
StoreConnect allows you to customize your store header in 4 ways.
Using the default menu which allows you to only adjust which product categories are shown in what order to the left of the Account menu option. How to do this is detailed in our Navigation Product Categories help article.
Using the menu builder to customise the navigation completely while using the standard search and account login links. How to do this is detailed in our Menu Builder help article.
Completely replacing the Header Menu HTML in it’s entirety and optionally use the Menu Builder to control the navigation menu from within your Salesforce environment. This article shows you how to do this.
Customising the header snippet template in your Theme (recommended option if using a theme).
How to Use a 100% Custom Header
Your StoreConnect system allows you to completely replace the header displayed on your site.
This is done using the Header Content Block field on your store record and creating a Content Block using the “No added styling” template.
A full featured example of a custom header is detailed in the Header HTML and Liquid Boilerplate section. You would copy this into the content section of the content block you have created. This will create a header content block that looks similar to the default site. Feel free to modify it to suit your needs.
Once associated with the store, it will take a few minutes to appear on your site.
In addition to customising your header, you can leverage it using Liquid methods to make your header content block dynamic. You will need to be familiar with Liquid and HTML as it is essential to implement new features.
Header HTML and Liquid Boilerplate
Header Theme Snippet
This option is the most reliable way to customise and enhance your headers, it allows you to use the other theme snippets, implement highly custom liquid and JS code to improve the user experience and access to any out-of-the-box features.
It will also allow you to keep using the snippets directory in a more efficient and organised way meaning that you don’t need to keep a large number of HTML lines in one single file.
We have currently updated our liquid methods documentation so you can achieve more complex functionalities on your header. Our liquid methods will help you to render those elements that you want to display on your header without being limited by our core header.