To activate a specific button on the 'Filters' page after clicking a link on the 'Home' page, you can use URL query parameters combined with custom JavaScript in Webflow.
filters?category=shoes
category=shoes
with a key-value pair relevant to what button you want to activate.data-category
shoes
Open the Page Settings for the 'Filters' page.
Scroll to the Before
tag field.
Paste this custom script (adjust selectors as needed):
```javascript
```
This script:
Reads the query parameter (e.g., category=shoes
)
Finds the button with the matching data-category
value
Triggers a click on that button (or adds an active state)
Use a query parameter in your link from the 'Home' page and target buttons via data attributes on the 'Filters' page. A small snippet of custom JavaScript detects the parameter and programmatically activates the correct button.