v17development / flarum-seo

Perfect SEO for your Flarum forum
https://discuss.flarum.org/d/18316-flarum-seo
MIT License
43 stars 22 forks source link

Description tag included BBcode #5

Closed bingit2 closed 5 years ago

bingit2 commented 5 years ago

Issue first reported here https://discuss.flarum.org/d/18316-flarum-seo/12

Would also love the option to remove the description tag altogether. I prefer the bot picks up relevant description from the page instead.

jaspervriends commented 5 years ago

Thanks for your bug report.

I'm locally testing a fix for the markdown in search results.

I'm now using $post->getAttribute("contentHTML") in the code (instead of $post->getAttribute("content")) . Need to figure out if this is the best way, but it seems to work for Google: image

Are you using the QAPage default setting or normal SEO? Because it sends the full body of the posts to the search engines. They will decide what to show and matches, example for Google with some matches in different posts:

image

You can open a different issue if you'd like to discuss the availability to disable the description tag (easier to tag this one as closed as your other question is not solved (yet)) :)

bingit2 commented 5 years ago

I thought the QAPage setting will only be turned on if I have the QA extension. I dont want the QAPage format for my SEO.

jaspervriends commented 5 years ago

You can turn that off: https://github.com/v17development/flarum-seo#default-question-answer-results-for-discussions

jaspervriends commented 5 years ago

Updated plugin with a fix! You can update to 0.3-beta :)