Add as Preferred Source on Google plugin displays a banner and inline button on your website that directs visitors to Google’s preferred sources feature. When clicked, the banner takes users to Google’s preferences page where they can add your site as a preferred source for their personalized search
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 5.0 and PHP 7.2.
SourceWordPress plugins · Nov 23, 2026
01 / Source details
Aboutthistool.
Add as Preferred Source on Google plugin displays a banner and inline button on your website that directs visitors to Google’s preferred sources feature. When clicked, the banner takes users to Google’s preferences page where they can add your site as a preferred source for their personalized search results.
What it does:
Displays a customizable banner on your website
Links to Google’s preferred sources feature
Allows users to set your site as a preferred source in their Google Search settings
Localized Google badge – the official badge ships in 17 languages, with an Auto mode that matches your site language
Dark and Light badge themes – pick the badge variant that best fits your design
Custom text badge – type your own button label for any language not in the built-in list; the badge renders with the Google logo in the same style as the official badges
Inline badge style switcher – choose from six layouts: Default (full card), Simple (badge only), Strip (slim single line), Pill (compact rounded chip), Link (editorial text with inline badge), or Boxed (icon tile with an action button)
Inline button with its own position (above content, below content, or both), post type targeting, color pickers, and customizable title and subtitle
Automatically clears page caches from popular caching plugins when you save settings, so changes go live immediately
About Google Preferred Sources:
Google’s preferred sources is a feature that allows users to indicate which sources they want to see more of in their search results. This is a Google feature, not affiliated with this plugin. Users who add your site as a preferred source may see your content more frequently in their personalized search results.
DISCLAIMER: This plugin is not associated with Google and was created to help website owners make a banner and inline card for adding their sites to Google’s Preferred Source. The term “Google” is used solely to convey the plugin’s function, and we are not related to Google in any way.
Thank you for using the Add as Preferred Source plugin 🙂 If you like it, please leave a ★★★★★ rating to support us on WordPress.org to help us spread the word to the community.
3 Ways to Let Visitors Add Your Site:
On the Implementation Method tab, pick whichever of these fits you best. You can switch anytime, and it takes one click.
Simple Link – The classic option. We show your badge or banner, and it links straight to Google’s page where the visitor adds your site. Nothing to load, nothing to set up.
Your Own Design (recommended) – Keep the exact look you already have – your colors, your text, your badge – but have it talk to Google the “official” way behind the scenes, instead of just a plain link.
Google’s Own Button – Let Google handle it completely. Google shows its own ready-made button on your site, in light or dark, in the visitor’s own language. The fastest option if you don’t want to fuss with any design at all.
Place the Button Exactly Where You Want:
The banner and the inline button are placed for you automatically. When you want to decide the spot yourself, there are three separate ways to do it – all of them share the settings on the Shortcode tab, so they look identical wherever you use them.
1. Shortcode – [preferred_source] works anywhere shortcodes run: the post editor, a Shortcode block, a text widget, or most page builders. Attributes let you override any setting for that one placement, for example [preferred_source style="pill" align="left"] .
2. Block – the “Add as Preferred Source” block for the block editor (Gutenberg). Search for it in the block inserter, drop it in, and set the style, alignment, text, and colors in the block sidebar. The block previews the real button right in the editor, so you see the result before you publish. Nothing to type and no shortcode syntax to remember.
3. Template tag – <?php adasprso_preferred_source(); ?> in a theme file, for a sidebar, header, footer, or custom template where a shortcode cannot go.
Manual placements are independent: they ignore the “Enable inline button” toggle, the post type list, and the banner Display Rules. Where you put the button is where it appears.
Plugin Features:
Custom domain override for the Google Preferred Source link
Customizable banner text with website name variable
Color customization for background and text
Position control (top or bottom of page)
Device-specific display for the banner (mobile, desktop, or both) – the inline button is not affected by these settings and appears on all devices
Cookie-based dismissal with a configurable hide duration (1-365 days, default 7), or switch to showing the banner again on every page view
Responsive design
Translation ready
Display Rules – show the banner everywhere, on posts only, pages only, or the front page only; exclude specific categories or individual post/page IDs
Display Trigger – show immediately on page load, after the visitor scrolls a configurable percentage of the page (10-90%), or after a set time delay (1-60 seconds)
Click-Through Analytics Dashboard – view 30-day impressions, clicks, dismissals, and click rate with a visual bar chart directly in the admin
Badge Language – choose from 17 official badge languages (Danish, German, Spanish, Estonian, Finnish, French, Hindi, Hebrew, Japanese, Korean, Norwegian, Brazilian Portuguese, Russian, Swedish, Turkish, Ukrainian, and English), or leave it on “Auto” to match your site language
Badge Theme – switch between the Dark (default) and Light versions of the official Google badge, with a live preview in the settings
Custom Badge Text – type your own button label for any language not in the built-in list; the badge renders with the Google “G” logo matching the official badge style
Inline Button – an in-content card with its own enable toggle, position (above content, below content, or both), post type targeting (posts, pages, and custom post types), background and text color pickers, and customizable title and subtitle
Inline Badge Style – switch the inline button between “Default” (full card), “Simple” (badge image only), “Strip” (slim single line), “Pill” (compact rounded chip), “Link” (editorial text with inline badge), or “Boxed” (icon tile, headline, and action button)
[preferred_source] Shortcode – place the button by hand anywhere shortcodes run, with per-placement attributes for style, alignment, text, subtitle, colors, and CSS class; [adasprso_preferred_source] is available as an alias if another plugin already uses the short tag
“Add as Preferred Source” Block – a native block editor block with sidebar controls for style, alignment, text, and colors, and a live server-rendered preview inside the editor
Template Tag – adasprso_preferred_source() for theme files, taking the same options as an array
Shortcode Settings Tab – manual placements get their own badge style, alignment, wording, and colors, kept separate from the inline button, plus a live preview, copy-to-clipboard snippets, and a full attribute reference
Avoid Duplicates – optionally skip the automatic inline button on posts that already place the button by hand
Automatic Cache Clearing – saving settings purges page caches from popular caching plugins (WP Rocket, W3 Total Cache, WP Super Cache, LiteSpeed Cache, and more) so changes go live immediately
Lightweight and Accessible – CSS and JavaScript load only on pages that actually show the banner or button, assets are minified, and the banner is fully keyboard accessible
Technical Requirements:
WordPress 5.0 or higher
PHP 7.2 or higher
Modern web browser with JavaScript enabled
Configuration
After installation, go to Settings > Add as Preferred Source in your WordPress admin to configure the plugin.
Step 1: Basic Settings
Enable Banner: Check this box to activate the banner on your website. The banner will not appear until this is enabled.
Website Name: Enter your website or publication name. This defaults to your WordPress site title but can be customized. This name will replace the {website_name} placeholder in your banner text.
Custom Domain: Override the URL used in the Google Preferred Source link. Leave this empty to use your site’s domain automatically (recommended). Only set this if the link should point to a different URL – for example, if your WordPress site lives on a subdomain but your canonical domain is https://example.com .
Banner Text: Customize the message displayed to visitors. Default text is “Add as a preferred source on Google”. You can use the placeholder {website_name} anywhere in your text, and it will be automatically replaced with the website name you specified above. Example: “Add {website_name} as your preferred source on Google”
Example: “Get more content from {website_name} – add us as a preferred source”
Badge Language: Choose which language to use for the Googl
See it in action
Screenshots & previews.
Plugin settings page with customization options and live previewBanner display on website frontend as topInline button card settings page with customization options and live previewInline button display on website frontend
02 / Source details
Gettingstarted.
Automatic Installation: 1. Log in to your WordPress admin dashboard 2. Go to Plugins > Add New 3. Search for “Add as Preferred Source” 4. Click “Install Now” and then “Activate” 5. Go to Settings > Add as Preferred Source to configure
Manual Installation: 1. Download the plugin zip file 2. Upload via Plugins > Add New > Upload Plugin 3. Activate the plugin 4. Go to Settings > Add as Preferred Source to configure
Configuration: 1. Enable the banner in plugin settings 2. Customize banner text and colors 3. Choose display position and device settings 4. Save settings 5. Optional: open the Shortcode tab if you would rather place the button yourself with [preferred_source] , the “Add as Preferred Source” block, or the template tag
03 / Source details
Frequently asked questions.
Is this plugin affiliated with Google?
No. This plugin is not associated with Google. It was created to help website owners make a banner and inline card for adding their sites to Google’s Preferred Source. The term “Google” is used solely to convey the plugin’s function, and we are not related to Google in any way.
What are Google preferred sources?
Google preferred sources is a feature that lets users indicate which sources they prefer to see in their search results. This is a Google feature that affects individual users’ personalized search results.
Does this guarantee better search rankings?
No. This plugin only provides a way for users to access Google’s preferred sources feature. It does not guarantee improved search rankings or visibility.
How does the banner work?
The banner displays on your website according to your settings. When clicked, it opens Google’s preferences page where users can add your site as a preferred source.
What if my site is not showing on Google’s preferences page?
The plugin only opens Google’s preferred sources page with your domain pre-filled – whether your site can actually be selected there is decided entirely by Google. If your site does not appear, check the following:
01Verify the domain the plugin is sending. If you use the Custom Domain setting, make sure it exactly matches your site’s canonical domain (including the correct subdomain, such as www). Leave it empty to use your site’s domain automatically.
02Make sure your site is indexed by Google. Search for site:yourdomain.com on Google. If nothing appears, your site is not indexed yet – set up Google Search Console and submit your sitemap.
03Check feature availability in your region. Google’s preferred sources feature is only available in certain countries and languages, so some visitors may not be able to use it even when your site is eligible.
04Sign in to a Google account. Visitors must be signed in to Google for the preferences page to work.
05Be patient with newer sites. Google generally surfaces established, regularly publishing sites in this feature. If your site is new or rarely indexed in Google’s news surfaces, it may take time before it becomes selectable.
If your site is indexed and the domain is correct but it still cannot be added, the limitation is on Google’s side – there is unfortunately nothing the plugin can change about that.
What’s the difference between Simple Link, Your Own Design, and Google’s Own Button?
They’re three ways to let a visitor add your site, and you pick one on the Implementation Method tab:
Simple Link just shows your badge/banner as a link to Google’s page – the original, no-frills option.
Your Own Design keeps your exact look (colors, text, badge) but connects to Google the official way behind the scenes.
Google’s Own Button hands the whole button over to Google – it draws its own, ready-made button for you.
If you’re not sure which to pick, “Your Own Design” is a safe default – you keep the look you already have.
Can I customize the banner appearance?
Yes. You can customize the text, colors, position, and choose which devices display the banner.
How long does the banner stay hidden after someone closes it?
That depends on the “After Visitor Closes Banner” setting. New installs show the banner again on every page view, so closing it only hides it for the current page and no dismissal cookie is stored. Sites that updated from an older version keep the cookie-based behaviour: the banner stays hidden for 7 days by default, and you can change this duration to anything between 1 and 365 days.
Will this affect my website’s performance?
The plugin uses minimal resources and should not significantly impact website performance.
Does the plugin send any data to external services?
The banner, inline button, and analytics features run entirely on your site – no visitor data ever leaves your WordPress database.
Can I translate the plugin?
Yes, the plugin is translation ready and follows WordPress internationalization standards.
Does the plugin work with all themes?
The plugin is designed to work with most WordPress themes. If you experience display issues, check for theme conflicts or contact support.
Why does the banner show (or not show) on the wrong device?
Device detection is based on the visitor’s user agent, so tablets are treated as mobile devices. Also note that the “Show on Mobile” and “Show on Desktop” settings apply to the banner only – the inline button appears on all devices. If you use a full-page caching plugin, a page cached for one device type may be served to another, which can make the banner appear or stay hidden on the wrong device until the cache refreshes. Caching plugins that support separate mobile caches avoid this.
What should I do if the banner doesn’t appear?
Ensure the banner is enabled in settings Check device display settings match your current device Clear all browser and server caches Test in incognito/private browsing mode Verify there are no JavaScript errors in browser console
Can I use this on multiple websites?
Yes, you can install this plugin on multiple WordPress sites. Each installation has separate settings.
How do I put the button in a specific place?
Three ways, and they all share the same settings under Settings > Add as Preferred Source > Shortcode :
01Shortcode – paste [preferred_source] where you want it, in the editor, a Shortcode block, a text widget, or a page builder.
02Block – insert the “Add as Preferred Source” block in the block editor.
03Template tag – call <?php adasprso_preferred_source(); ?> in a theme file.
How do I use the shortcode?
Set your defaults on the Shortcode tab, then paste [preferred_source] at the exact spot you want the button. To change just that one placement, add attributes: [preferred_source style="pill" align="left" text="Follow us on Google"] .
Optional attributes: style (default, simple, strip, pill, link, boxed), align (left, center, right), text , subtitle , prefix , suffix , bg_color , text_color , and class . Anything you leave out uses your saved settings.
How do I use the block?
In the block editor, click the + inserter where you want the button, search for “Add as Preferred Source” , and insert it. The block renders the real button right away using your Shortcode tab settings, and the block sidebar lets you change the style, alignment, text, and colors for that one placement. Leave a sidebar field blank and it keeps following your saved settings.
What is the difference between the block and the shortcode?
Nothing, in the output – both use the same renderer and produce the same button. The block is the friendlier option in the block editor: you pick options from menus and color pickers instead of typing attributes, and you see the result while you edit. The shortcode is the portable option: it also works in the classic editor, text widgets, and page builders, and it can be pasted into content that is generated elsewhere.
Can I use it more than once on the same page?
Yes. Use as many shortcodes or blocks as you like, and give each one its own attributes if you want them to differ.
Does the shortcode or block need the inline button enabled?
No. The shortcode, the block, and the template tag are independent of the “Enable inline button” toggle, the post type list, and the banner Display Rules – they render wherever you place them. If you use both and a post ends up showing the button twice, turn on Avoid Duplicates on the Shortcode tab.
Does it work with Elementor, Divi, and other page builders?
Yes. Use the builder’s own shortcode or text widget and paste [preferred_source] into it. The stylesheet loads automatically wherever the button is rendered, including inside builders and widgets.
My shortcode prints the text instead of the button. What happened?
That means the shortcode was not executed. Check that you pasted it into a field that runs shortcodes (a Shortcode block, a Text widget, or a builder’s shortcode element – not a “plain text” or code field), that the brackets are straight [ ] rather than smart quotes copied from a document, and that the plugin is active.
Another plugin already uses [preferred_source]. What now?
Use [adasprso_preferred_source] instead – it is the same shortcode under a prefixed name.
Can I style the button myself?
Yes. Add class="my-class" to the shortcode and target it in your theme’s CSS. The wrapper also carries adasprso-inline-container , plus adasprso-manual-container on every manual placement and an adasprso-align-left|center|right class.
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati