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.

by Darklg · github.com/wordpressutilities/wpu_gnews_buttons · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/wordpressutilities/wpu_gnews_buttons/archive/refs/heads/main.zip

Declares an update source (https://github.com/WordPressUtilities/wpu_gnews_buttons), so updates arrive through the plugin's own updater.

Readme

WPUGnewsButtons

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

Read the full README on GitHub →