Nutrition Warehouse Sections

On our dedicated sales event features page, we offer a comprehensive overview of all the tools and options at your disposal. From website alterations to code snippets and schema settings, this resource provides you with the insights and guidance needed to make your sales events a resounding success. Explore how you can optimize your online presence, boost conversions, and enhance the customer shopping experience with these powerful features.


BOILERPLATECode Boilerplate

Section Boilerplate

Boilerplate code for building sections from scratch

  <div class="x-boilerplate">
    <div class="container {% if section.settings.use_container %} x-container {% endif %} {{ section.settings.css_class }}">
      <h1>Boilerplate</h1>
    </div>
  </div>

  <style>
  {% comment %}/* Section Styles */{% endcomment %}
  #shopify-section-{{ section.id }} .x-boilerplate {
    background: {{ section.settings.background_colour }};
    padding-top: {{ section.settings.padding_top }}px;
    padding-bottom: {{ section.settings.padding_bottom }}px;
    margin-top: {{ section.settings.margin_top }}px;
    margin-bottom: {{ section.settings.margin_bottom }}px;
  }

  /* Mobile */
  @media (max-width: 640px) {}
  /* Mobile */

  {% comment %}/* Container */{% endcomment %}
  #shopify-section-{{ section.id }} .x-container {width: 100% !important; margin: 0 auto;}
  @media (min-width: 640px) {#shopify-section-{{ section.id }} .x-container {max-width: 640px !important;}}
  @media (min-width: 768px) {#shopify-section-{{ section.id }} .x-container {max-width: 768px !important;}}
  @media (min-width: 1024px) {#shopify-section-{{ section.id }} .x-container {max-width: 1024px !important;}}
  @media (min-width: 1280px) {#shopify-section-{{ section.id }} .x-container {max-width: 1280px !important;}}
  @media (min-width: 1536px) {#shopify-section-{{ section.id }} .x-container {max-width: 1536px !important;}}
  {% comment %}/* Container */{% endcomment %}

  {% comment %}/* Advanced */{% endcomment %}
  {{ section.settings.custom_css }}
  {% comment %}/* Advanced */{% endcomment %}
  </style>

  {% schema %}

  {
    "name": "Boilerplate 🏝",
    "class": "x-boilerplate",
    "settings": [
      {
        "type": "header",
        "content": "Layout"
      },
      {
        "type": "checkbox",
        "id": "use_container",
        "label": "Use Container",
        "default": true
      },
      {
        "type": "color",
        "id": "background_colour",
        "label": "Background Colour",
        "default": "#FFF"
      },
      {
        "type": "header",
        "content": "Spacing"
      }, {
        "type": "range",
        "id": "padding_top",
        "label": "Padding Top",
        "default": 25,
        "min": -100,
        "max": 200,
        "step": 5,
        "unit": "px"
      }, {
        "type": "range",
        "id": "padding_bottom",
        "label": "Padding Bottom",
        "default": 25,
        "min": -100,
        "max": 200,
        "step": 5,
        "unit": "px"
      }, {
        "type": "range",
        "id": "margin_top",
        "label": "Margin Top",
        "default": 25,
        "min": -100,
        "max": 200,
        "step": 5,
        "unit": "px"
      }, {
        "type": "range",
        "id": "margin_bottom",
        "label": "Margin Bottom",
        "default": 25,
        "min": -100,
        "max": 200,
        "step": 5,
        "unit": "px"
      }, {
        "type": "header",
        "content": "Advanced"
      }, {
        "type": "text",
        "id": "css_class",
        "label": "CSS Class"
      }, {
        "type": "textarea",
        "id": "custom_css",
        "label": "Custom CSS",
        "info": "Write your css here to make advanced adjustments"
      }
    ],
    "presets": [
      {
        "name": "Boilerplate 🏝",
        "category": "boilerplate"
      }
    ]
  }

  {% endschema %}


SECTION_SETTINGSSections > Home Image Links (NWH)

Homepage promotional tiles for displaying large deals and sales.

Images

  • Name
    Background image
    Type
    JPEG | PNG | GIF
    Description

    Example image with inset wording guidelines. 900px by 900px with a 150px bleed (750px by 750px). Example Image Example Image

Preview

Homepage Promo Links

SECTION_SETTINGSSections > Promo Product Row

Promo Product Row

Display products within collection as a sliding row. Stacks on mobile and has quick add feature for products with 8 or less variants

Preview

Promo Product Row

SECTION_SETTINGSSections > Promo Tiles

Promo Tiles

Customizable promotion tiles which can be used as links to specific products or collections

Preview

Promo Tiles
Promo Tiles

SECTION_SETTINGSSections > Promo Feature

Promo Feature

Customizable promotion section with display image, text and testimonials. Used to build trust in the products or brand

Preview

Promo Feature

SECTION_SETTINGSSections > Promo Image Block

Promo Image Block

Section to display promotional images, layout graphics and styled images with text - Ideal for slim banners or other images with text. The container will conform the size of the image

Custom CSS Additions

Add these CSS snippets to the Custom CSS input box within the shopify admin theme customizer for the results to show.

  • Name
    Scale Animation
    Type
    Custom CSS
    Description

    Make the image expand within the container when a user hovers the section.

  • Name
    Border Fix
    Type
    Custom CSS
    Description

    On particular images the border of the container will be square which does not match the brand guide lines. This CSS will fix the issue

  /* Scale image on hover */
  .nwh-promo-fullwidth__bg {
    border-radius: 4px !important;
    overflow: hidden;
  }

Preview

Promo Image Block section preview
Promo Image Block section preview

SECTION_SETTINGSSections > Shop By Link (NWH)

Group of small links usually connected to collections which show promotional information and a background image. Stacks on mobile

Custom CSS Additions

Add these CSS snippets to the Custom CSS input box within the shopify admin theme customizer for the results to show.

  • Name
    Equal height
    Type
    Custom CSS
    Description

    Make the links all have an equal height. Take note of responsive screen sizes and long link names as overflow can occur

  • Name
    Larger gap
    Type
    Custom CSS
    Description

    Match the gap between link items to the link gap of the promo link row. Used to keep maintain consistency across layout design

  • Name
    New promo style
    Type
    Custom CSS
    Description

    Matching the new promo landing page design. Items have deeper box shadow, longer border radius and added border

  /* Match Item Height */
  .nwh-shop-by-links__content span {
    min-height: 42px;
  }

Preview

Shop By Links Section Preview

SECTION_SETTINGSSections > X Collection Grids

404 Category Grid

Promotional tiles for displaying categories.

Images

  • Name
    Background image
    Type
    JPEG | PNG
    Description

    Add Categories or products that you want to display at landing pages.

Preview

404 Promo Links

SECTION_SETTINGSSections > NWH Stories

Hot links designed to look like instagram stories selectors

Images

  • Name
    Dark Mode
    Type
    Schema
    Description

    Add dark mode to section

  • Name
    Link Image
    Type
    Image
    Description

    Recommended image dimensions are 300px by 300px: Example image

Preview

Stories Section

SECTION_SETTINGSSections > Collection Selector

Collection Selector

Product row section with multiple selectable collections

Preview

Collection Selector Section

SECTION_SETTINGSSections > Slimline Banner (NWH)

Slimline Banner

Features a narrow, horizontal layout ideal for promotional messages or announcements without taking up much screen space.

Properties

  • Name
    Show Slimline Banner
    Type
    checkbox
    Description

    Enable the checbox to show the slimline banner.

  • Name
    Use Video
    Type
    checkbox
    Description

    Able to set a video as background.

Preview

Slim Banner

SECTION_SETTINGSSections > Home Deals Slider 🏝

Homepage Deals Slider

Monthly Special Deals

Properties

  • Name
    Show Slimline Banner
    Type
    checkbox
    Description

    Enable the checbox to show the slimline banner.

  • Name
    Use Video
    Type
    checkbox
    Description

    Able to set a video as background.

Preview

Slim Banner


SECTION_SETTINGSSections > NWH Split Banner

Slimline Split Banner

Designed with a narrow, vertical layout, perfect for displaying promotional messages or announcements, with two side-by-side for an optimal mobile-friendly experience.

Properties

  • Name
    Background Color
    Type
    schema
    Description

    Able to select a background color.

  • Name
    Stack Desktop Images
    Type
    checkbox
    Description

    Able to set a video as background.

Preview

Split Slim Banner

SECTION_SETTINGSSections > NWH Split Banner

Promo Product Slider

A versatile product row section for promotions, allowing either selected products or lifestyle images to be showcased.

Properties

  • Name
    Background Color
    Type
    schema
    Description

    Able to select a background color.

  • Name
    Dark Mode
    Type
    checkbox
    Description

    Set a dark background color.

Preview

Split Slim Banner