JAVASCRIPTseobeginner
Add Schema Markup to Wix Website
Implement Schema.org structured data on Wix sites using Custom Code
Faisal Yaqoob
November 28, 2025
#wix#schema#seo#structured-data#json-ld
Code
javascript
1 // Add to Custom Code in Wix (Settings > Custom Code) 2 <script type="application/ld+json"> 3 { 4 "@context": "https://schema.org", 5 "@type": "Article", 6 "headline": "Your Article Title", 7 "description": "Brief description of your article", 8 "image": "https://yoursite.wixsite.com/yoursite/image.jpg", 9 "author": { 10 "@type": "Person", 11 "name": "Author Name", 12 "url": "https://yoursite.wixsite.com/about" 13 }, 14 "publisher": { 15 "@type": "Organization", 16 "name": "Your Business Name", 17 "logo": { 18 "@type": "ImageObject", 19 "url": "https://yoursite.wixsite.com/logo.png" 20 } 21 }, 22 "datePublished": "2025-11-28", 23 "dateModified": "2025-11-28" 24 } 25 </script>
Add Schema Markup to Wix Website
Implement Schema.org structured data on your Wix website to improve SEO and enable rich snippets in search results.
Article Schema for Blog Posts
// Add to Custom Code in Wix (Settings > Custom Code)
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Your Article Title",
"description": "Brief description of your article",
"image": "https://yoursite.wixsite.com/yoursite/image.jpg",
"author": {
"@type": "Person",
"name": "Author Name",
"url": "https://yoursite.wixsite.com/about"
},
"publisher": {
"@type": "Organization",
"name": "Your Business Name",
"logo": {
"@type": "ImageObject",
"url": "https://yoursite.wixsite.com/logo.png"
}
},
"datePublished": "2025-11-28",
"dateModified": "2025-11-28"
}
</script>
LocalBusiness Schema
// Add to Custom Code (Head section, All Pages)
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Your Business Name",
"description": "Brief description of your business",
"image": "https://yoursite.wixsite.com/business-image.jpg",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main Street",
"addressLocality": "New York",
"addressRegion": "NY",
"postalCode": "10001",
"addressCountry": "US"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": "40.7128",
"longitude": "-74.0060"
},
"telephone": "+1-212-555-0100",
"email": "info@yourbusiness.com",
"url": "https://yoursite.wixsite.com",
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "09:00",
"closes": "17:00"
}
],
"priceRange": "$$"
}
</script>
Product Schema for E-commerce
// Add to Custom Code (specific product pages)
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Product Name",
"description": "Detailed product description",
"image": [
"https://yoursite.wixsite.com/product-image-1.jpg",
"https://yoursite.wixsite.com/product-image-2.jpg"
],
"brand": {
"@type": "Brand",
"name": "Brand Name"
},
"sku": "PROD-123",
"offers": {
"@type": "Offer",
"url": "https://yoursite.wixsite.com/product",
"priceCurrency": "USD",
"price": "29.99",
"availability": "https://schema.org/InStock",
"seller": {
"@type": "Organization",
"name": "Your Business Name"
}
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.5",
"reviewCount": "24"
}
}
</script>
FAQ Schema
// Add to Custom Code (FAQ page or any page)
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What are your business hours?",
"acceptedAnswer": {
"@type": "Answer",
"text": "We are open Monday through Friday, 9 AM to 5 PM EST."
}
},
{
"@type": "Question",
"name": "Do you offer free shipping?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes, we offer free shipping on all orders over $50 within the continental United States."
}
},
{
"@type": "Question",
"name": "What is your return policy?",
"acceptedAnswer": {
"@type": "Answer",
"text": "We accept returns within 30 days of purchase. Items must be unused and in original packaging."
}
}
]
}
</script>
Organization Schema (Site-wide)
// Add to Custom Code (Head section, All Pages)
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Your Business Name",
"url": "https://yoursite.wixsite.com",
"logo": "https://yoursite.wixsite.com/logo.png",
"description": "Brief description of your organization",
"telephone": "+1-212-555-0100",
"email": "info@yourbusiness.com",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main Street",
"addressLocality": "New York",
"addressRegion": "NY",
"postalCode": "10001",
"addressCountry": "US"
},
"sameAs": [
"https://www.facebook.com/yourbusiness",
"https://www.twitter.com/yourbusiness",
"https://www.instagram.com/yourbusiness",
"https://www.linkedin.com/company/yourbusiness"
]
}
</script>
How to Add Custom Code in Wix
Step-by-Step Instructions:
- Open Wix Editor
- Log in to your Wix account
- Click "Edit Site" on your website
- Access Settings
- Click "Settings" in the left sidebar
- Navigate to "Custom Code" under Advanced Settings
- Add New Code
- Click "+ Add Custom Code" button
- Give your code a descriptive name (e.g., "Article Schema")
- Paste Your Schema Code
- Copy one of the schema examples above
- Paste it into the code editor
- Configure Placement
- Choose where to load: "All pages" or specific pages
- Select "Head" for placement
- Choose "Load code once"
- Apply and Publish
- Click "Apply"
- Publish your site for changes to take effect
Important Notes:
- Custom Code requires Wix Premium: This feature is only available on paid plans
- Use absolute URLs: Always use full URLs including https://
- Page-specific schema: Add different schema for different page types
- Test your schema: Use Google Rich Results Test to validate
Dynamic Content with Wix Code (Velo)
// For dynamic blog posts using Wix Velo
import wixLocation from 'wix-location';
import { currentPage } from 'wix-window';
$w.onReady(function () {
if (currentPage.type === 'DYNAMIC_PAGE') {
$w('#dynamicDataset').onReady(() => {
const item = $w('#dynamicDataset').getCurrentItem();
const schema = {
"@context": "https://schema.org",
"@type": "Article",
"headline": item.title,
"description": item.excerpt,
"image": item.coverImage,
"author": {
"@type": "Person",
"name": item.author
},
"datePublished": item.publishDate,
"dateModified": item.updatedDate
};
// Insert schema into head
const script = document.createElement('script');
script.type = 'application/ld+json';
script.text = JSON.stringify(schema);
document.head.appendChild(script);
});
}
});
Testing Your Schema
After adding schema to your Wix site:
- Google Rich Results Test
- Visit: https://search.google.com/test/rich-results
- Enter your Wix page URL
- Check for errors and warnings
- Schema Validator
- Visit: https://validator.schema.org/
- Enter your page URL
- Verify all properties are correct
- Google Search Console
- Monitor "Enhancements" section
- Check for rich results
- Track impressions and clicks
Best Practices
- Use specific schema types: Match schema to your content type
- Include all required fields: Check Schema.org documentation
- Keep data accurate: Ensure schema matches visible content
- Update regularly: Keep dates and information current
- Test before publishing: Always validate schema markup
- Don't duplicate: Avoid adding same schema multiple times
- Use real data: Never use fake reviews or ratings
Features
- SEO Optimized: Improve search engine visibility
- Rich Snippets: Enable enhanced search results
- Easy Implementation: No coding required
- Platform Specific: Optimized for Wix websites
- Multiple Schema Types: Article, Product, LocalBusiness, FAQ, Organization
- Dynamic Support: Works with Wix Velo for dynamic content
Related Snippets
SoftwareApplication Schema for Apps and Tools
Add SoftwareApplication structured data for apps, plugins, and SaaS tools to display ratings and pricing in Google
JAVASCRIPTseobeginner
javascriptPreview
const webAppSchema = {
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Schema Markup Generator",
...#software#app#schema+7
1/8/2026
View
HowTo Schema for Step-by-Step Guides
Add HowTo structured data for Google how-to rich results with steps, tools, materials, and estimated time
JAVASCRIPTseobeginner
javascriptPreview
const howToSchema = {
"@context": "https://schema.org",
"@type": "HowTo",
"name": "How to Set Up WordPress on a VPS Server",
...#howto#schema#seo+6
1/5/2026
View
Course Schema for Online Learning Platforms
Add Course structured data for Google course rich results with provider, duration, and pricing details
JAVASCRIPTseobeginner
javascriptPreview
const courseSchema = {
"@context": "https://schema.org",
"@type": "Course",
"name": "Complete WordPress Development Masterclass",
...#course#schema#seo+6
1/2/2026
View