Ah, that’s outputted by mediawiki automatically because it is appended to the $bodyContent. Not sure why Google would zero in on that. It is hidden by default, even on MediaWiki.org. Perhaps more content on page or a hook to add a meta description tag for main page.
Not sure that can be controlled because it is appended in the SkinTemplate class automatically. Would be a good question as to why there’s no control.
First answer I just did a search on your domain and saw this...in English search.
Checking more with site: in Google everything looks good.
Tom
On Feb 13, 2018, at 1:20 PM, Vivian Epiney epiney@gmail.com wrote:
Thank you Tom for your nice and developed answer.
The problem is that the content Google sucked up IS in the source code of the front page (lines 149-150) :
<div class="printfooter"> Récupérée de « <a dir="ltr" href="https://dicoado.org:443/wiki/index.php?title=Dico:Accueil&oldid=13235">https://dicoado.org:443/wiki/index.php?title=Dico:Accueil&oldid=13235</a> »</div>
So robots.txt policies and sitemaps (which I already use) won't help.
Any idea how to "delete" these lines ?
Best regards.
Vivian
2018-02-13 18:55 GMT+01:00 Tom Hutchison tom@hutch4.us:
Hi Vivian
This is not a Foreground issue. You need to take control of robots indexing your site. Google is greedy and will index everything it can! This would include, history pages, diffs, old versions, etc… Basically, anything and everything it can crawl on your site with a link.
Please read[0] and consider using the Sitemap Generator[1]. You will need to specify what pages are good content to index in the sitemap too[2][3][4]. Probably of interest is this[4].
Tom
[0] https://www.mediawiki.org/wiki/Manual:Robots.txt
[1] https://www.mediawiki.org/wiki/Manual:GenerateSitemap.php
[2] https://www.mediawiki.org/wiki/Manual:$wgSitemapNamespaces
[3] https://www.mediawiki.org/wiki/Manual:$wgSitemapNamespacesPriorities
[4] https://www.mediawiki.org/wiki/Manual:$wgDefaultRobotPolicy
From: Foreground [mailto:foreground-bounces@lists.wikimedia.org] On Behalf Of epiney@gmail.com Sent: Tuesday, February 13, 2018 10:20 AM To: foreground@lists.wikimedia.org Subject: [Foreground] Front page shows footer as content
Hello,
Any idea why the front page of my website https://dicoado.org/dico/Dico:Accueil is shown as
"Récupérée de « https://dicoado.org:443/wiki/index.php?title=Dico:Accueil&oldid=13219 ». Contenu disponible sous licence CC BY-SA 4.0. Contributeurs · À propos du Dico des Ados · Aide. "
on google.com results ?
It seems like it's a part of the footer that isn't (partly) even visible for users.
Not sure it's a foreground issue but not sure it isn't either ! :)
Thanks for your feedback.
Vivian
Foreground mailing list Foreground@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/foreground
Hi again,
What did you search for exactly to get this Google link ? By the way, I've already added meta hooks.
I think I know (partly) why. I inspected my website and the problem isn't only in the front page.
For example, search for "www.dicoado.org fidèle" and you'll get " Wiktionnaire · Wiktionary-logo-el-without-text.svg - Synonymes - VikidiaLogo(cropped).png · Mot au hasard · Editer la page. Récupérée de « https://*dicoado*.*org*:443/wiki/index.php?title=fid%C3%A8le&oldid=12533 ». Catégorie : Adjectif. Faits relatifs à « fidèle ». Voir au format RDF ... "
Which, again, is a part of the footer and not interesting at all.
Google actually uses as preview the part that comes AFTER the <div class="row"> ... </div> that I use for a grid design. Not sure what I should do with this though...
Why doesn't Google prioritize content inside tags like <h1> and <big> or <b> (inside the row class) ? Would make more sense...
In the mean time, I've tried to add ".printfooter { display: none; visibility: hidden; }" to my MediaWiki:Common.css
Best regards.
Vivian
Hey Vivian
I think your home page link and then I clicked English only results. 2nd or 3rd down.
Well I think you’re on track with using some type of meta description. It’s got to be page length and then Google decides, hey this looks good as the description. Whatever pages Google is throwing in a bad description you could override and add meta description to the <head>. MediaWiki is painful when it comes to decent SEO.
If we could figure out why Google does what it does we could be SEO gods and millionaires.
Tom
On Feb 13, 2018, at 4:42 PM, Vivian Epiney epiney@gmail.com wrote:
Hi again,
What did you search for exactly to get this Google link ? By the way, I've already added meta hooks.
I think I know (partly) why. I inspected my website and the problem isn't only in the front page.
For example, search for "www.dicoado.org fidèle" and you'll get " Wiktionnaire · Wiktionary-logo-el-without-text.svg - Synonymes - VikidiaLogo(cropped).png · Mot au hasard · Editer la page. Récupérée de « https://dicoado.org:443/wiki/index.php?title=fid%C3%A8le&oldid=12533 ». Catégorie : Adjectif. Faits relatifs à « fidèle ». Voir au format RDF ..."
Which, again, is a part of the footer and not interesting at all.
Google actually uses as preview the part that comes AFTER the <div class="row"> ... </div> that I use for a grid design. Not sure what I should do with this though...
Why doesn't Google prioritize content inside tags like <h1> and <big> or <b> (inside the row class) ? Would make more sense...
In the mean time, I've tried to add ".printfooter { display: none; visibility: hidden; }" to my MediaWiki:Common.css
Best regards.
Vivian _______________________________________________ Foreground mailing list Foreground@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/foreground
foreground@lists.wikimedia.org