WP Manifestindependent plugin directory
manifest / social / wpu_gnews_buttons

WPUGnewsButtons

Add buttons to your website to add your source to Google News and follow you on Google News.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wordpressutilities/wpu_gnews_buttons/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Display Google News call-to-action buttons on your WordPress site: an Add source button (lets readers prioritize your domain in Google News) and a Follow us on Google News button.

Features

  • Two independent buttons, each toggleable from the settings page:
    • Add source — links to Google News source preferences for your domain (or a custom string).
    • Follow us — links to your Google News publication URL.
  • Localized button artwork (English / French) with light & dark variants.
  • Output via a single shortcode, ready to drop anywhere.

Installation

  1. Copy the wpu_gnews_buttons folder into wp-content/plugins/.
  2. Activate the plugin from the WordPress admin.
  3. Configure the buttons under Settings → WPUGnewsButtons.

Usage

Place the shortcode where you want the buttons to appear:

[wpu_gnews_buttons]

Or call it in your theme:

if (shortcode_exists('wpu_gnews_buttons')) {
    echo do_shortcode('[wpu_gnews_buttons]');
}

Only the buttons enabled in the settings (and with valid values) are rendered. If none are enabled, nothing is output.

Requirements

  • WordPress 6.2+
  • PHP 8.0+

License

MIT License — https://opensource.org/licenses/MIT