How can I insert the slug of a collection category into the URL of my blog using Webflow?
Published on
September 22, 2023
To insert the slug of a collection category into the URL of your blog using Webflow, follow these steps:
- Login to your Webflow account and navigate to the Designer.
- Open the page that displays your blog posts.
- In the Pages panel, click on the dynamic collection page for your blog posts.
- In the right sidebar, select the Collection List wrapper element that contains your blog posts.
- With the Collection List selected, go to the settings panel on the right sidebar.
- Under the "Settings" tab, scroll down to the "URL & SEO" section.
- Click on the "Add field" button next to "Slug".
- In the "Slug" field, click on the "Get text from..." dropdown and select the category field from your collection.
- Adjust the "URL path" format if needed to include the category slug. For example, you can use {slug} in the path to represent the category slug.
- Save your changes.
By following these steps, the slug of the collection category will be automatically inserted into the URL of your blog posts. This allows for more organized and SEO-friendly URLs, making it easier for search engines and users to navigate and understand the content on your website.
Additional tip:
- You can further customize the URL structure by including other fields from your collection, such as the blog post title or a specific identifier. This can be done by adding more dynamic text to the "URL path" format.
These additional questions may help users find this answer:
- How to customize URLs in Webflow for blog categories?
- Can I include the category slug in my blog post URLs in Webflow?
- What are the steps to add collection category slugs to the URL in Webflow?