Snippets Overview

Reusing LangShop code snippets in your needs

List of snippets in localized theme

To make your store pages multilingual, LangShop creates the list of snippets in own localized theme:

  • ls-alt.liquid
  • ls-is-rtl.liquid
  • ls-currencies-switcher.liquid
  • ls-currency.liquid
  • ls-currency-title.liquid
  • ls-global.liquid
  • ls-head.liquid
  • ls-hreflang.liquid
  • ls-img-url.liquid
  • ls-language.liquid
  • ls-language-title.liquid
  • ls-languages-switcher.liquid
  • ls-md5-key.liquid
  • ls-output.liquid
  • ls-output-dynamics.liquid
  • ls-output-statics.liquid
  • ls-output-shortcodes.liquid
  • ls-overrides.liquid
  • ls-page-description.liquid
  • ls-page-title.liquid
  • ls-price.liquid
  • ls-sdk.liquid
  • ls-search.liquid
  • ls-search-match-resource.liquid
  • ls-search-results.liquid
  • ls-search-results-count.liquid
  • ls-theme-dynamics.liquid
  • ls-theme-dynamics-array.liquid

Language switcher

You can add as many languages switchers as you need. To create new languages switchers and place them anywhere in the theme you can use "ls-languages-switcher.liquid" snippet.

Currency switcher

LangShop doesn't have any limits for the amount of currencies switchers. To create new currencies switchers and place them anywhere in the theme you can use "ls-currencies-switcher.liquid" snippet.

Images snippets

This category of snippets will help you to insert new images of resources (products, articles, collections) to any place. "ls-img-url.liquid" snippet replaces original image URL with localized version if it exists, "ls-alt.liquid" snippet returns localized version of the image alternate text.

Start your 3-day free trial today!

Try LangShop free for 3 days by entering your domain of Shopify store.