View search engine optimization
Optimizing an ExpressionEngine site for search engines starts with a simple set of tags on the header file and in each individual template.
Let’s say the site has just one header used by all templates. First go to a template and view the embedded header tag. Add the variable below:
Change “Title of the Page” to the actual title. Do this for every template.
Now go to the header file and add this code:
<title>{embed:page_title}</title>
Save that page and view the results. You should see a new title on each page.
In order to add SEO keywords to a page, use this code on each template:
{embed="site/header" page_title="Title of the Page” meta_keywords="keywords" }
Change “keywords” to the actual keywords. Go to the header file and add this code below the title code:
<meta name="keywords" content="{embed:meta_keywords}" />
Save the file and view the results. Obviously, you can add both the title and the keywords to each template at the same time.
