Page MenuHomeMiraheze

Have topmost donation banner as image instead of text, because search engines are showing this text as snippet
Closed, ResolvedPublic

Description

Search engines (such as Google) use the topmost text on the page to display snippets (quotes from the page) in their search results.
Because the banner is text, and it's on top of the page HTML, it results in the following view:

google-snippet.png (102×591 px, 16 KB)

There is approximately 0% chance that anyone would click on a search result like that. It looks too non-relevant to what the user is searching.

Proposed solution: make this banner into an image, so that Google can't use the text from it in snippets.

Event Timeline

I believe this is deliberate and set somewhere in our config, although if I recall correct that might have been just meta, but yes I agree it needs phasing out and replacing with a proper description for everyone.

I think this would just need an edit to the CentralNotice, which is where the banner comes from.

I believe this is deliberate and set somewhere in our config, although if I recall correct that might have been just meta, but yes I agree it needs phasing out and replacing with a proper description for everyone.

Does the site notice extension that is used for displaying site notices globally support images? And the config is irrelevant and specific to Meta which adds a description using the meta tag regarding Miraheze, not the fundraising campaigns.

It's CentralNotice but I'd assume no because that would break translations.

It's CentralNotice but I'd assume no because that would break translations.

I think we could add a new setting to ManageWiki that would allow wiki bureaucrats to do what we currently do for Meta, add something like <meta name="description" content="Description defined through ManageWiki" />. This should fix this particular issue and reduce the anxiety of bureaucrats who care much about SEO. But I am not an expert on SEO and could be wrong.

In T6840#134950, @R4356th wrote:

It's CentralNotice but I'd assume no because that would break translations.

I think we could add a new setting to ManageWiki that would allow wiki bureaucrats to do what we currently do for Meta, add something like <meta name="description" content="Description defined through ManageWiki" />. This should fix this particular issue and reduce the anxiety of bureaucrats who care much about SEO. But I am not an expert on SEO and could be wrong.

It should be fairly easy to make configurable.

Fixed:

<div class="cnotice" id="{{{banner}}}">
    <div id="cnotice-main">
        <div class="cnotice-logo-container">
            <img src="//static.miraheze.org/metawiki/3/35/Miraheze_Logo.svg" alt="Banner logo">
        </div>
        <div class="cnotice-message-container">
            <div class="cnotice-message">
                <p><span data-nosnippet>{{{msg-1}}} <a href="https://www.gofundme.com/f/help-miraheze-stay-online-in-2021">{{{msg-2}}}, <a href="https://paypal.me/mirahezelimited">{{{msg-3}}} or <a href="https://github.com/sponsors/miraheze">{{{msg-4}}}</a>!</span></p>
            </div>
            <a href="https://meta.miraheze.org/w/index.php?title=Special:Translate&group=Centralnotice-tgroup-{{{banner}}}" title="{{{translate}}}">
                <span data-nosnippet>{{{translate}}}</span>
            </a>
            <center><h4><small><span data-nosnippet>{{{msg-5}}}</span></small></h4></center>
        </div>
    <div id="cnotice-toggle-box">
        <a href="#" title="Hide" onclick="mw.centralNotice.hideBanner();return false;"><img border="0" src="//upload.wikimedia.org/wikipedia/donate/a/ac/Close_oojs.png" alt="Hide" /></a>
    </div>
</div>
Dmehus assigned this task to Paladox.
Dmehus awarded a token.