---
title: "Advanced Ajax Layered Navigation developer reference"
url: "https://kestrelwp.com/docs/advanced-ajax-layered-navigation-developer-reference/"
description: "Filters for pointing Advanced Ajax Layered Navigation at your theme's markup."
published: "2026-10-06T20:26:58+00:00"
modified: "2026-10-06T20:26:58+00:00"
---

Advanced Ajax Layered Navigation refreshes parts of the shop page using WooCommerce’s standard markup. If your theme uses different IDs or classes, these filters tell the plugin where the products and other refreshed areas are, without editing the theme or WooCommerce. Add them in a code snippets plugin or your child theme’s `functions.php`. For setup, see [Get started with Advanced Ajax Layered Navigation](/docs/get-started-with-advanced-ajax-layered-navigation/).

Theme and code customizations are outside our support. If you’re not comfortable with code, ask a developer to add these.

## When you’d use this

- Filtering changes the address bar but the products on the page don’t change.
- Parts of the page, such as a custom result count or pagination, stay stale after filtering.
- Your theme’s scripts, such as a product slider or lazy-loaded images, stop working after a filter refresh.

## Containers to refresh

### sod\_ajax\_layered\_nav\_containers

The list of selectors whose contents are replaced after each filter change. By default: `#products`, `.products`, `#pagination-wrapper`, `.woocommerce-pagination`, `.woo-pagination`, `.pagination`, `.widget_layered_nav`, `.widget_layered_nav_filters`, `.woocommerce-ordering`, `.sod-inf-nav-next`, `.woocommerce-result-count`, `.woocommerce-info` and `.widget_ajax_layered_nav_clear`. Add your theme’s own containers:

```
add_filter( 'sod_ajax_layered_nav_containers', function( $containers ) {
	$containers[] = '#your-id';
	$containers[] = '.your-class';
	return $containers;
} );
```

### sod\_ajax\_layered\_nav\_product\_container

The one element that holds the products, which shows the loading message while products load. Default `#products`, which the plugin wraps around WooCommerce’s shop loop. Return your theme’s ID or class if its products sit elsewhere:

```
add_filter( 'sod_ajax_layered_nav_product_container', function() {
	return '.your-class';
} );
```

## Other filters

| Filter | What it sets | Default |
|---|---|---|
| `sod_ajax_layered_nav_clickables` | Elements that start a refresh when clicked | `.widget_layered_nav a`, `.widget_layered_nav input[type="checkbox"]`, `.widget_ajax_layered_nav_filters a`, `.widget_layered_nav_clear a` |
| `sod_ajax_layered_nav_orderby` | The sorting form | `.woocommerce-ordering` |
| `sod_ajax_layered_no_products` | The "no products found" notice | `.woocommerce-info` |
| `sod_ajax_layered_nav_scrolltop` | Whether the page scrolls to the products after filtering | `true` |
| `sod_ajax_layered_nav_offset` | Space left above the products when scrolling, in pixels | `150` |

## JavaScript event

### aln\_reloaded

Fires on `body` after each filter refresh. Use it to restart scripts that the refreshed content needs:

```
jQuery( 'body' ).on( 'aln_reloaded', function() {
	// Re-initialize a slider or lazy-loaded images here.
} );
```

## Keep learning

- [Get started with Advanced Ajax Layered Navigation](/docs/get-started-with-advanced-ajax-layered-navigation/)
- [How to add custom CSS to your site](/docs/how-to-add-custom-css-to-your-site/)
