Title Tags
Craft CMS provides flexible title tag control through Twig templates, SEO plugins like SEOmatic, or custom field configurations. This guide covers all approaches from simple to advanced, helping you implement the right solution for your project.
Prerequisites
- Craft CMS installation (v3 or v4)
- Admin access
- Basic Twig template knowledge (for template method)
- Access to templates folder
SEOmatic Plugin (Recommended)
The most comprehensive SEO solution for Craft CMS. Handles title tags, meta descriptions, JSON-LD, and more.
Install SEOmatic
Go to Plugin Store in Craft admin
Search for 'SEOmatic'
Click Install
Or via CLI: composer require nystudio107/craft-seomatic
Configure Global Settings
Navigate to SEOmatic > Global SEO
Set your Site Name
Choose Title Position: Before or After site name
Set Title Separator: | - — or custom
Configure default title template
Template format: {entry.title} {separator} {siteName}Configure Content SEO
Go to SEOmatic > Content SEO
Select each Section (Blog, Pages, etc.)
Set title template for that section type
Use Twig variables: {entry.title}, {category.title}
Override per Entry
Edit any entry in the admin
Click 'SEO' tab (or SEOmatic panel)
Enter custom 'SEO Title' to override template
Real-time preview shows SERP snippet
Character counter helps stay under 60
Best Practices
Do
- Use SEOmatic for comprehensive SEO management
- Keep titles under 60 characters total
- Set unique titles for each entry
- Include primary keyword near the beginning
- Use consistent separator across the site
- Add SEO title field for editor control
- Test on all page types before launch
Don't
- Hardcode titles in templates (use fields/plugins)
- Forget to set fallbacks for missing title data
- Use duplicate titles across entries
- Make titles longer than 60 characters
- Leave title empty or generic
- Ignore SEO fields in entry type layouts
Verification Checklist
- View page source > Search for <title>
- Check browser tab shows expected title
- Verify title under 60 characters total
- Test different entry types and sections
- Check homepage, entry, and category pages
- Use SEOmatic preview if available
Pro Tips
- SEOmatic can generate JSON-LD schema automatically—huge time saver
- Use Twig conditions to create different title formats per section
- Create a 'preview' environment to test SEO changes before production
- Set up Craft CMS preview targets to see title in context
- Use SEOmatic's bulk editing for fixing titles on many entries
- Consider multilingual? SEOmatic handles hreflang too