Fluorescent
Stiletto
Stiletto
  • Stiletto Help Center
    • Start using Stiletto
      • Theme licenses
      • Migrate your theme
    • FAQs
    • Video tutorials
    • Changelog
  • General
    • Editing themes
      • Adding sections
      • Using templates
      • Accessibility
      • Customizing your site
      • SEO for Shopify themes
      • H1 heading tags
      • Online store speed
    • Image guide
      • Web ready photography
      • Image sizes
      • File formats
      • Theme image settings
    • Adapting theme content
      • Edit default theme content
      • Multiple languages
      • Dynamic content with metafields
      • Unique content for markets
    • Update your theme
  • Theme styles
    • Theme settings
    • Style presets
      • Demo layouts
    • Fonts
    • Colors
    • Animation
  • Pages
    • Templates
      • About page
      • Blog page
      • Blog posts
      • Collections list
      • Contact page
      • Customer accounts
      • FAQ page
      • Lookbook
      • Password page
      • Search page
      • Store locations
      • 404 page
      • Home page
    • Announcement bar
    • Header
      • Layout and style
      • Logo
      • Transparent header
      • Mega menus
      • Mobile menu
      • Quick search
      • Language and currency
      • Social media icons
      • Customer account icon
    • Footer
      • Links block
      • Newsletter block
      • Text and image block
      • Language and currency
      • Payment icons
      • Custom Liquid
  • Sections
    • Theme sections
      • Using sections
      • Content blocks
      • Blog posts
      • Collapsible row list
      • Collection list grid
      • Collection list slider
      • Complete the look
      • Contact form
      • Countdown banner
      • Countdown bar
      • Events
      • Featured collection grid
      • Featured collection slider
      • Featured product
      • Gallery carousel
      • Grid
      • Image compare
      • Image hero
      • Image hero split
      • Image with text
      • Image with text split
      • Multi column
      • Newsletter
      • Newsletter compact
      • Promotion banner
      • Promotion bar
      • Quotes
      • Recently viewed products
      • Rich text
      • Sales banner
      • Scrolling content
      • Shoppable image
      • Shoppable image editorial
      • Slideshow
      • Testimonials
      • Video
      • Video hero
      • Video with text
    • Popups
      • Sign up popup
      • Age verification
      • Countdown popup
      • Promotional popup
  • Products
    • Product listings
      • Product card style
    • Prices and discounts
    • Product badges
    • Quick shop
  • Product pages
    • Product template
      • Alternate templates
      • Pre-order template
      • Gift card
    • Layout and style
      • Product tabs
      • Media gallery
      • Sticky product details
      • Breadcrumbs
      • Navigation buttons
    • Overview blocks
      • Default blocks
        • Description
        • Product header
        • Variant selector
        • Quantity selector
        • Buy buttons
        • Local pickup banner
        • Share icons
        • Sticky add-to-cart bar
      • Collapsible rows block
      • Complementary products
      • Custom options
      • Image block
      • Information popup
      • Product labels
      • Secure payment
      • Stock level indicator
      • Text block
      • Text list with icons
      • App blocks
    • Variant options
      • Variant chips
      • Variant swatches
        • Enable swatches
        • Use default colors
        • Use custom colors
        • Use variant images
        • Use custom images
        • Change swatch styles
        • Show on product cards
        • Dynamic option availability
      • Media grouping
      • Sibling product swatches
    • Product page sections
      • Product reviews
      • Product recommendations
  • Collection pages
    • Collection template
      • Collection landing
      • Sale collection
      • Subcollections
      • Flash sale
    • Banner
    • Product grid
    • Filters and sorting
  • Cart
    • Cart page
    • Quick cart
      • Added to cart popup
      • Empty cart promotion
    • Free shipping bar
    • Low inventory warning
    • Cross sells
  • Support
    • Support policy
    • Shopify vs Theme issues
    • Store access requests
  • For developers
    • Custom CSS
    • Custom fonts
    • Custom Liquid
    • Custom JavaScript events
    • Edit Theme JavaScript
Powered by GitBook
On this page
  • Menu elements
  • Add mobile menu images
  • Add custom images with metafields

Was this helpful?

  1. Pages
  2. Header

Mobile menu

Last updated 4 months ago

Was this helpful?

The Mobile menu drawer displays your menu links, social media icons, and language and country selectors. You can choose to show feature images for collection and product links.

Menu elements


By default, the mobile menu displays the following features when enabled for the desktop menu in the Header settings. See the for more information.

Features
Description

Language selector

Let customers select their preferred language.

Country selector

Let customers to view your products with their preferred currency.

Social media icons in mobile menu

Show icons for your social media accounts added to Theme settings > Social media

Secondary menu

Show a separate link list below the main menu.

Add mobile menu images


Add a Mobile menu images block to show images next to collection and product links.

  • Links to collections will show the feature image set in your Shopify admin. If no image is set, the menu will show the first product's image.

  • Links to products will show the first featured image set your the Shopify admin.

STEPS

In your theme editor (Customize):

  1. Under Header, click (+) Add block.

  2. Select Mobile menu images and click the block to open the settings.

  1. Enter the Menu name from your Shopify admin to enable the mobile images.

    If left blank, the images will be enabled for the main menu. Add a new mobile menu images block for each separate menu.

  2. To make the thumbnail images a uniform shape, select an Image aspect ratio to crop them to Square, Landscape, or Portrait.

Select Natural to display the original shape of each image.

  1. Click Save.

Add custom images with metafields


To show a custom image, instead of the default collection or product image, you can use metafields in your Shopify admin.

  • First, set up a Collection or Products metafield. This metafield needs to have the exact Namespace stiletto.mobile_menu_thumbnail.

  • Second, add custom images to this new metafield to your products or collections in the Shopify admin.

Follow the step-by-step instructions below.

Metafields allow you to add custom content and data to specific products, collections, and pages. You can then connect metafields to your templates and sections using Dynamic sources to automatically display the correct content for different parts of your store.

STEPS

In your Shopify admin:

  1. Go to Settings > Custom data.

  2. Select Collections or Products.

  3. Click Add definition.

  4. In the Name field, enter Mobile menu thumbnail.

    The name must be this exact phrase. In the Namespace and key field, it will autopopulate to be custom.mobile_menu_thumbnail

  5. In Namespace and key, select custom and replace it with stiletto. It should now read as stiletto.mobile_menu_thumbnail.

  6. Click (+) Select type and select File.

  7. Under Validations, make sure Accept specific file types is selected, and uncheck Videos.

  8. Click Save.

To add images to your collections or products' metafields:

  1. From your Shopify admin, open your collections or products to add images.

  2. Scroll down to the Metafields area, and click the "Mobile menu thumbnail" metafield you created to select an image.

  3. Click Save.

  4. Refresh your theme editor, and the custom images should now appear.


Related links

If you want to show a custom image, you can .

Header
use metafields to assign images to collections and products
Header guide