Exclude content with CSS class Documentation - WooCommerce Skip to navigation Skip to content Develop on Woo Hire an expert Get support Sell Extensions Resources Enterprise ecommerce Extensions Extensions Pre-Sales Support Stripe WooCommerce Square PayPal Braintree AutomateWooExpand Product CSV Import Suite Order/Customer CSV Export Facebook for WooCommerce WooCommerce SubscriptionsExpand All Products for WooCommerce SubscriptionsExpand WooCommerce MembershipsExpand WooCommerce BookingsExpand Product BundlesExpand Product RecommendationsExpand Composite ProductsExpand Smart Coupons Cashier for WooCommerce Affiliate For WooCommerce Mix and Match Products Google Product Feed Groups WooCommerce Gift Cards API Manager Table Rate Shipping Advanced Shipping Packages Name Your Price Order Delivery WooCommerce Zapier IntegrationExpand KlarnaExpand Product Vendors WooCommerce PhotographyExpand WooCommerce Product SearchExpand PDF Invoice Pre-orders Force Sells Google for WooCommerceExpand Import Export Suite for WooCommerce WooCommerce BrandsExpand Bulk Updater for WooCommerce SubscriptionsExpand Enhancer for WooCommerce SubscriptionsExpand Product Add-onsExpand XeroExpand Buy One Get One Free WooCommerce Sales Analysis Conditional Shipping and Payments WooCommerce Shipping & Tax Email Customizer Pro Back In Stock Notifications WooCommerce Smart Refunder Saved Addresses For WooCommerce Chained Products Volume Discount Coupons SenseiExpand Retired Extensions WooSidebars Follow-UpsExpand Opayo Pixel Manager Pro for WooCommerce Advanced Bulk Edit Smart Stock & Inventory Manager Flexi BOGO Flexi Custom Order Status Product Input Fields Product Feed Manager Payment Gateway Based Fees and Discounts Abandoned Cart Pro Order Delivery Date Currency per product Call for Price Pro Product Prices by User Role Flexi Custom Order Numbers Flexi Product Delivery Date Flexi Booking and Appointment Delivery and Pickup Scheduler SensAI All-in-one PDF Invoice and Packing Slips SuiteExpand Easy Subscriptions Smart Product Designer WooCommerce Anti-Fraud Shipment TrackingExpand Documentation / Products / Extensions / SensAI / Exclude content with CSS class Exclude content with CSS class Purpose: Easily prevent specific content sections from being indexed by the AI by adding a CSS class to any block or HTML element in your post editor. How It Works ↑ Back to top Select any block in the WordPress Block Editor (or Classic Editor). Open the Advanced tab in the right sidebar. Under Additional CSS class(es), type: sensai-exclude The entire block and its content will be excluded from AI indexing. Notes: Visitors can still see the content on your site. The AI will not use this content in answers. Index updates automatically when you save the post, no rebuild needed. What Gets Excluded ↑ Back to top The entire element and all its child elements Works with any content block Multiple elements can be excluded on the same page Compatible with both Classic and Block Editors When to Use ↑ Back to top Exclude navigation menus or headers that appear in content Hide sidebar content that shouldn’t be part of AI knowledge Exclude promotional banners or ads Hide disclaimers or legal text that shouldn’t appear in AI answers Important Notes ↑ Back to top The excluded content remains visible to visitors; only the AI ignores it. No additional settings are required; it works automatically. The class name must be exactly sensai-exclude (case-sensitive). On this page How It Works What Gets Excluded When to Use Important Notes 30-day money-back guarantee Support teams across the world Safe and secure online payments Sell WooCommerce WooCommerce pricing Payments No-code customization Marketing Checkout Shipping Mobile app Enterprise ecommerce Marketplace WooCommerce extensions WooCommerce themes New Essentials Collections Developed by Woo Build Woo for developers Developer resources Become a Woo agency Become a Marketplace partner Become an affiliate Resources Blog Documentation WooCommerce site examples Product updates Email newsletter Support Feature requests WooCommerce hosting Hire an agency Participate in customer research Accessibility Support forums Shoptalk Europe 2026 woo About Press Download WooCommerce free Join the Woo community Woo trademark guidelines Brand and logo guidelines Do not sell or share my personal information WooCommerce Support Policy Refund Policy Contact us Follow us on Facebook Follow us on X Follow us on Instagram Follow us on LinkedIn Terms and Conditions Privacy policy Privacy Notice for California Users Use of your personal data We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience. Customize Accept all Close Previous Next