Key Features
Add a small selection of key features at the top of the product page to help sell the item.
Wireframe
Preparation Checklist
Before you start this tweak, it's a good idea to run through our preparation checklist below:
- Read through the Getting Started to get a better sense of how the control panel, Database and Front End store interact.
- Learn our recommended Simple Workflow. This makes the implementation process as easy as possible.
- Create a new Staging Theme for this tweak. This allows you to preview any changes before they are visible to live customers.
- The code snippet in this tweak doc uses Bootstrap 3, you may need to alter this code depending on what version of Bootstrap your theme is using. You can find out what version your theme is using here.
Coding Instructions
Step 1: Open the product header template
The header template can be found here /httpdocs/assets/themes/[THEME-NAME]/templates/products/includes/header.template.html
.
Step 2: Add the code into the template
Directly after <div class="dropdown">
(the share button) closes, paste the code below:
[%if [@features@]%]
<div class="key-features">
[@features@]
</div>
[%/if%]
Step 3: Add styling
Add the following styling to the CSS stylesheet /httpdocs/assets/themes/[THEME-NAME]/css/style.css
.
.key-features ul {
list-style-type: none;
}
.key-features ul li:before {
font-family:FontAwesome;
content:"\f00c";
position:absolute;
left:-15px;
}