Disabling Specific Functions in Stamped Widgets & Scripts

  • Updated

You can disable certain features in the Stamped widgets & script based on your design preferences. These are developer-level overrides that you add to your theme's code, not dashboard settings. Follow this guide to learn more!


Before you start

Know where your Stamped script is. On Shopify, it sits in theme.liquid. See Shopify: Installing the app, main widget and script if you are not sure.

Important: Place these settings before the Stamped script loads in your theme; otherwise, they won't take effect. Add them above the Stamped install script in your theme's code.

Test on a duplicate theme first. Disabling the CSS, in particular, has major visual consequences. Duplicate your live theme, apply the change to the copy, preview it, then publish.


In this guide


At a glance

Setting What it disables Where it applies Side effect to expect
stamped_exclude_main_css Loading of Stamped's stylesheet widget.min.css All Reviews widgets. Loyalty & Rewards styling is unaffected. Widgets render completely unstyled and the star icons disappear, because the icon font lives in that stylesheet. You must supply your own CSS.
exclude_font The request to Google Fonts for Open Sans Reviews widgets and the Rewards launcher Widgets fall back to the next font in the stack (Verdana, then generic sans-serif), not your theme's font. Add your own CSS if you want them to match your site.
stamped_disable_review_single The single-review modal that opens automatically when a page is loaded with a ?stamped_r_id= deep link Deep links only. It does not disable the photo lightbox or the review modal that opens when a shopper clicks a review. Visitors arriving on a shared or emailed review link land on the page without that review opening.
LazyLoadStampedDisabled Lazy loading of image thumbnails Display widgets only: Full Page, Visual Gallery, Photo Wall, Top Rated, Instagram Feed. The main reviews widget is not affected. All thumbnails in those widgets load immediately, which can slow down first paint on image-heavy pages.

Disable CSS file from loading in the script

What it does: stops Stamped from loading its default stylesheet (widget.min.css), so you can style the Reviews widgets entirely with your own CSS. 

When to use it: only when you intend to write a full replacement stylesheet. If you just want to adjust colours or a few elements, use the Custom CSS field instead, described in Main Reviews Widget: Customizations. That keeps Stamped's stylesheet and layers your changes on top.

<script> window.stamped_exclude_main_css = true; </script>

What to expect: With this on, widgets will be unstyled until you provide your own styles.

Note: this only affects the Reviews stylesheet. The Loyalty & Rewards stylesheet (rewards-main.min.css) still loads, so your rewards launcher and pages keep their styling.


Disable font from loading in the script

What it does: stops Stamped from requesting the Open Sans web font from Google Fonts.

When to use it: most often to remove a third-party request for page-speed or privacy reasons, or when your own stylesheet already defines the fonts you want the widgets to use.

Add exclude_font: true to the options object in your existing Stamped init call:

StampedFn.init({
    apiKey: 'YOUR-PUBLIC-API-KEY',
    storeUrl: 'your-store.myshopify.com',
    exclude_font: true
});

Disable the pop-up modal feature in widgets

What it does: Disables the pop-up (single-review/photo lightbox) that opens when a review or image is clicked.

The pop-up modals can be disabled with the below code, or, if using Shopify, it can be done through the theme editor: 

App Embeds 1.png

 <script> window.stamped_disable_review_single = true; </script>

Disable lazy loading of image thumbnails in widgets

What it does: Loads all image thumbnails immediately instead of as they scroll into view. 

When to use it: when lazy loading conflicts with a carousel, slider or animation in your theme, or when thumbnails fail to appear in a custom layout.

Note: this can increase initial page load on review-heavy pages.

<script> window.LazyLoadStampedDisabled = true; </script>

Was this article helpful?

1 out of 6 found this helpful

Have more questions? Submit a request