v17development / flarum-seo
Adds SEO tags for your Flarum forum
Installs: 50 938
Dependents: 2
Suggesters: 3
Security: 0
Stars: 45
Watchers: 4
Forks: 24
Open Issues: 19
Type:flarum-extension
Requires
- php: ^8.0
- ext-json: *
- flarum/core: ^1.0.0
Requires (Dev)
- flarum/phpstan: ^1.0
- flarum/tags: ^1.8
- fof/best-answer: ^1.6
- fof/pages: ^1.0
Suggests
- fof/sitemap: Allows you to generate powerful sitemap.xml files
Conflicts
README
🗂️ Flarum SEO
First Flarum extension that add SEO tags to your Flarum forum.
📥 Installation
If you like to install this extension, run the following command:
composer require v17development/flarum-seo
♻ Updating
Run the following command on your server to update the plugin
composer update v17development/flarum-seo
⚒️ Extending & using in your own extension
You can use functionalities from this extension in your own extension. For more information, check this knowledge base article.
🎁 Adding SEO tags to the following pages:
- Home page
- Tags page (if extension is enabled)
- Discussion page
- User profile
- Pages page (if extension is enabled)
✅ Works with
This extension will work with the following extensions enabled or disabled. All extensions are not required, but it will work together if they are installed and enabled:
- Flarum likes from Flarum https://github.com/flarum/likes
- Flarum tags from Flarum https://github.com/flarum/tags
- Selected Post Best answer from FriendsOfFlarum https://discuss.flarum.org/d/21894-friendsofflarum-best-answer
- Sitemap from FriendsOfFlarum https://discuss.flarum.org/d/14941-fof-sitemap
- Pages from FriendsOfFlarum https://discuss.flarum.org/d/18301-friendsofflarum-pages
🔍 How do the results look like in Google?
Potential it could look like this, after Google reindex your site. This could take a while before Google or any other crawler does this. The following screenshots are in Dutch, but you get the concept:
⏱️ How long will changes take effect?
It depends. Recrawling can take a few days, up to a few weeks until most of your results are updated. Use the FriendsOfFlarum Sitemap to let Google know what discussions there are on your forum. You may speed it up by manually update a search result Google via the Google Search Console, but that is no gurantee that the search result will be updated directly.
Read more about how you can let Google recrawl your site
Using following SEO methods:
The extension will use the following SEO methods:
-
Default HTML meta tags:
- application-name
- description
- keywords
- language
-
Adds
robots.txt
to your forum, when Sitemap extension of FriendsOfFlarum is enabled, the link to your sitemap.xml will appear in the robots.txt -
The Open Graph protocol (for social media, http://ogp.me):
- og:type
- og:title
- og:description
- og:url
- article:published_time
- article:updated_time
-
Schema.org SEO standards (most used by Search engines)
- WebPage https://schema.org/WebPage
- QAPage (default) https://schema.org/QAPage
- DiscussionForumPosting (when Question-Answer SEO results are disabled) https://schema.org/DiscussionForumPosting
- CollectionPage https://schema.org/CollectionPage
- ProfilePage https://schema.org/ProfilePage
-
Sets page image to social media if set. When the first post contains an image, it will be used instead.
👍 You like what I did?
You may like to buy me a coffee and support my work :)