Download the PHP package alt-design/alt-seo without Composer
On this page you can find all versions of the php package alt-design/alt-seo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alt-design/alt-seo
More information about alt-design/alt-seo
Files in alt-design/alt-seo
Package alt-seo
Short Description Alt SEO addon, add SEO tags to your site
License MIT
Informations about the package alt-seo
Alt SEO
Easy SEO for your Statamic sites
Features
- General sitewide SEO tags
- Page specific SEO tags
- Title, Description, Social Title, Social Description and Social Image
How to Installation
You can search for this addon in the Tools > Addons
section of the Statamic control panel and click install, or run the following command from your project root:
In layout.antlers.html remove your <title>
and SEO tags and replace with
You can also just use the following to output the title if you prefer
What actually happens
The addon will look for data in the following order:
- Page specific SEO tags
- General sitewide SEO tags
- Defaults back to Site Name
For General/Site Wide SEO Tags Select Alt SEO from the Tools section in CP where you can set a general SEO Title and Description for the site. In the Social tab you can set the Title, Description and Image for Facebook and Twitter.
For Page Specific SEO Tags go to Collections > Pages > select your page and in the Alt SEO Tab you can set Title, Description, Social Title, Social Description and Social Image to override the general settings on that page.
You can use variables such as {title} | {site_name}
App name and url are taken from .env file so ensure this data is correct. Images must be stored in assets container.
Advanced usage
Overriding Meta Fields
All fields handled by the addon are wrapped so that that they can be overridden in your templates.
Let's say, for example, you had a product page that you wanted to change the meta title structure from default, this can be achieved in your template using the {{ section }} tag
Simply add something along the line of this in your template and the appropriate meta field will get overridden:
Note : Only the data sections of the meta fields are tagged so don't us full tags as that will cause some funky HTML
The fields that can be overridden as list here :
- alt_seo_title
- alt_seo_canonical
- alt_seo_description
- alt_seo_robots
- alt_seo_og_url
- alt_seo_og_type
- alt_seo_og_title
- alt_seo_og_description
- alt_seo_og_image
- alt_seo_twitter_card
- alt_seo_twitter_domain
- alt_seo_twitter_url
- alt_seo_twitter_title
- alt_seo_twitter_description
- alt_seo_twitter_image
Questions etc
Drop us a big shout-out if you have any questions, comments, or concerns. We're always looking to improve our addons, so if you have any feature requests, we'd love to hear them.
Also - check out our other addons!
- Alt Cookies Addon
- Alt Redirect Addon
- Alt Akismet Addon
- Alt Inbound Addon
- Alt Sitemap Addon
- Alt Password Protect Addon
Postcardware
Send us a postcard from your hometown if you like this addon. We love getting mail from other cool peeps!
Alt Design
St Helens House
Derby
DE1 3EE
UK