Dynamic Pricing support for theme Narrative

Learn how to ensure Dynamic Pricing is enabled on your theme

Bart Coppens avatar
Written by Bart Coppens
Updated over a week ago

Required customizations

This theme requires minor modifications to enable the featured product and ensure the sticky bar does not overlap the menu:

Not sure how to edit your theme? Read this article first.

Add the following markup:

{% assign DiscountNinjaStickybarClass = "" %}
{% if template.name == "index" %}
    {% assign DiscountNinjaStickybarClass = "limoniapps-discountninja-topmargin" %}
{% endif %}

Add the markup on the top of the header liquid:

Then copy the following markup:

 {{ DiscountNinjaStickybarClass }}

And add the markup as indicated below:

Not sure how to edit your theme? Read this article first.

Add the following markup:

 data-limoniapps-discountninja-product-handle="{{product.handle }}" 

Add the markup here:

Embedded code approach

If you prefer the flexibility of the embedded code approach, please refer to the articles listed here.
Found a compatibility issue with this theme? Let us know at [email protected] and our team of experts will review it.

Did this answer your question?