Making WordPress.org

Changeset 11109


Ignore:
Timestamp:
07/09/2021 12:43:26 AM (3 years ago)
Author:
dd32
Message:

Main theme: Mark the hosting recommendations on the download page as not being able to be used as part of the Google search result snippet.

This should prevent Google ever using text about a host as the description for the download page.

Follow up to r11108.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download.php

    r11108 r11109  
    171171                    <?php foreach ( array_rand( $hosts, 2 ) as $host ) : ?>
    172172
    173                     <div class="host col-6">
     173                    <div class="host col-6" data-nosnippet>
    174174                        <img src="<?php echo esc_url( get_theme_file_uri( $hosts[ $host ]['logo'] ) ); ?>" class="logo" alt="<?php
    175175                            /* translators: %s: Name of hosting company */
Note: See TracChangeset for help on using the changeset viewer.