Using a meta noindex tag is a great way to prevent unfinished CMS pages from being indexed by search engines in Webflow.
1. Access Project Settings
- Log in to your Webflow account.
- Go to Site Dashboard and select the site you want to edit.
- Click on 'Project Settings' to manage different configurations for your project.
2. Create a Custom Code Embed
- Navigate to the Pages tab in your site dashboard.
- Go to the CMS Template Page associated with the collection you want to hide.
- Scroll down to the Inside Head Tag section.
- Add the following code to add a noindex meta tag:
<meta name="robots" content="noindex">.
3. Conditional Visibility
- Insert a condition to ensure that this only applies to unfinished pages.
- Use the Condition Panel when adding your embed to check if a specific field (e.g., “Published”) is marked as ‘No’ or empty.
- Set the custom code to display only when the conditional logic is met (e.g., the field is empty or equals a specific value).
4. Publish Changes
- Publish your site to implement the changes.
- Ensure the template logic is working correctly by verifying that only the intended CMS item pages contain the noindex tag.
Summary
By following these steps, you can effectively add a meta noindex tag to unfinished CMS pages in Webflow. This prevents premature indexing while keeping your content organized.