# Miscellaneous

## li-attribute <a href="#li-attribute" id="li-attribute"></a>

The `li-attribute` tag allows you to assign reserved HTML attributes — such as `class`, `src`, or `href` — to any element. This is particularly useful in Webflow, where certain attributes are restricted or automatically managed by the designer.

Example:

{% columns %}
{% column %}
{% code title="Webflow" fullWidth="false" %}

```
li-attribute:class = {% if product.available %} tex-color-green {% endif %}
```

{% endcode %}
{% endcolumn %}

{% column %}
{% code title="Shopify" fullWidth="false" %}

```liquid
<div class ="{% if product.available %}tex-color-green{% endif %}"></div>
```

{% endcode %}
{% endcolumn %}
{% endcolumns %}

Another example:

{% columns %}
{% column %}
{% code title="Webflow" fullWidth="false" %}

```
li-attribute:id = {{ product.id }}
```

{% endcode %}
{% endcolumn %}

{% column %}
{% code title="Shopify" fullWidth="false" %}

```liquid
<div id="{{ product.id }}"></div>
```

{% endcode %}
{% endcolumn %}
{% endcolumns %}

## li-liquid <a href="#li-liquid" id="li-liquid"></a>

When using Liquid code directly in Shopify, Webflow may alter the formatting of certain characters —especially double quotes — within Custom Code elements or \<script> tags. To prevent this, you can use the `li-liquid` attribute.

By applying `li-liquid` to a Custom Code element, the converter will detect the enclosed Liquid code and preserve its original formatting during export.

This ensures that your Liquid logic remains intact and functions correctly in the final Shopify theme.

## li-paginate <a href="#li-paginate" id="li-paginate"></a>

When using a for loop with `li-for`, you can manage [pagination](https://shopify.dev/docs/api/liquid/tags/paginate) using the `li-paginate` tag. Inside the `li-paginate` tag, you’ll have access to the [pagination object](https://shopify.dev/docs/api/liquid/objects/paginate). This is useful, for example, on collection pages. By default, only 50 products are rendered, but with `li-paginate`, you can override this limit.

{% columns %}
{% column %}

<pre data-title="Webflow" data-overflow="wrap" data-full-width="false"><code><strong>li-paginate = collection.products
</strong>li-paginate:by = 25
</code></pre>

{% endcolumn %}

{% column %}
{% code title="Shopify" overflow="wrap" fullWidth="false" %}

```liquid
{% paginate collection.products by 50 %} //children of your element {% endpaginate %}
```

{% endcode %}
{% endcolumn %}
{% endcolumns %}

## li-cloak <a href="#li-cloak" id="li-cloak"></a>

Elements with the `li-cloak` attribute are hidden using CSS. The `li-cloak` tag is removed during conversion. This helps keep them out of view in the Webflow Designer and can make editing easier. To make it work, you need to add this CSS line to your project’s `<head>`: `[li-cloak] { display: none !important; }`. It’s already included in our [Starter Template](https://webflow.com/made-in-webflow/website/liquify-2-0).

{% code title="Webflow" fullWidth="false" %}

```
li-cloak = 
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.liquiflow.app/liquid-attributes/miscellaneous.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
