Download the PHP package hashandsalt/kirby4-seo without Composer
On this page you can find all versions of the php package hashandsalt/kirby4-seo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hashandsalt/kirby4-seo
More information about hashandsalt/kirby4-seo
Files in hashandsalt/kirby4-seo
Package kirby4-seo
Short Description Kirby 4 - SEO tools
License MIT
Homepage https://github.com/HashandSalt/kirby4-seo
Informations about the package kirby4-seo
Kirby 4 SEO Plugin
A small plugin for generating metadata using shared controllers and field data. Also creates Facebook Opengraph and Twitter social sharing information.
Installation
Manual
To use this plugin, place all the files in site/plugins/kirby3-seo
.
Composer
Commerical Usage
This plugin is free but if you use it in a commercial project please consider to
Usage
After installing the plugin, set up the controllers to bring the shared SEO controller into each of your template controllers.
The bare minimum controller looks like this:
To override any of the values, you can do this inside your controller. For example, to change the format of the meta title, you could do this:
Additionally, you need to populate the pages with information that is needed for the meta tags to be filled out correctly. The plugin contains blueprints for this and is meant to be used as tabs on your pages:
In the site.yml
also set up the contact tab which will capture social media account information.
Finally, output the meta tags in your templates with the following snippet.
For convenience the plugin also contains a favicon snippet:
You can generate the favicons at this website link
Generating JSON Schema data
To generate any kind of schema data, you can use our Schema plugin in tandem with this plugin.