Appearance
SEO
This guide explains SEO best practices and implementation in LamaPress.
Table of Contents
Overview
LamaPress follows SEO best practices to ensure websites are optimized for search engines.
On-Page SEO
Title Tags
Use descriptive, unique titles:
php
<title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title>Best practices:
- 50-60 characters
- Include primary keyword
- Unique per page
- Brand name at end
Meta Descriptions
Write compelling meta descriptions:
php
<meta name="description" content="<?php echo esc_attr($description); ?>">Best practices:
- 150-160 characters
- Include call-to-action
- Unique per page
- Include primary keyword
Heading Structure
Use proper heading hierarchy:
php
<h1>Page Title</h1>
<h2>Section Title</h2>
<h3>Subsection Title</h3>Best practices:
- One
<h1>per page - Logical hierarchy
- Don't skip levels
- Descriptive headings
URL Structure
Use clean, descriptive URLs:
- Use permalinks:
/post-name/ - Avoid query strings
- Include keywords
- Keep URLs short
Technical SEO
Schema Markup
Add schema markup:
php
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "<?php echo esc_js($title); ?>",
"datePublished": "<?php echo get_the_date('c'); ?>"
}
</script>Canonical URLs
Set canonical URLs:
php
<link rel="canonical" href="<?php echo esc_url($canonical_url); ?>">XML Sitemaps
Generate XML sitemaps:
- Use WordPress sitemap feature
- Or use SEO plugin
- Submit to Google Search Console
Robots.txt
Configure robots.txt:
- Allow crawling
- Disallow admin areas
- Include sitemap reference
Content SEO
Image Optimization
Optimize images:
- Descriptive filenames
- Alt text for all images
- Appropriate file sizes
- WebP format when possible
php
<img
src="image.jpg"
alt="Descriptive alt text"
loading="lazy"
>Internal Linking
Use internal linking:
- Link to related content
- Use descriptive anchor text
- Maintain logical structure
Content Structure
Structure content well:
- Clear paragraphs
- Use lists when appropriate
- Include relevant keywords
- Write for users first
Performance SEO
Page Speed
Optimize page speed:
- Minimize HTTP requests
- Optimize images
- Use caching
- Minify CSS/JS
Core Web Vitals
Optimize Core Web Vitals:
- LCP (Largest Contentful Paint) < 2.5s
- FID (First Input Delay) < 100ms
- CLS (Cumulative Layout Shift) < 0.1
Best Practices
1. Unique Titles and Descriptions
Ensure unique titles and descriptions:
- No duplicate content
- Page-specific information
- Include primary keyword
2. Proper Heading Hierarchy
Use proper heading structure:
- One
<h1>per page - Logical order
- Don't skip levels
3. Optimize Images
Optimize all images:
- Descriptive alt text
- Appropriate file sizes
- WebP format
- Lazy loading
Related Documentation
- Performance Optimization - Performance strategies
- Asset Management - Image optimization
- Accessibility - Accessibility standards
Next Steps:
- Review Performance Optimization for performance
- Check Asset Management for image optimization
- See Accessibility for accessibility