How to add Google Trusted Source button

With Hubbub Pro 2.28.0 or greater you can add Action Buttons to your website to empower readers to take action.

Be sure to read the other Action Buttons docs here.

One of the available Action Buttons is a “Google Trusted Source” button that makes it easy for your readers to add your website as a trusted source in their Google Search preferences.

Adding the button #

For instructions on adding any of the Action Buttons, see How to use Action Buttons.

Removing www from your URL #

In some cases, Google Search does not recognize your URL if it includes www. Even if your website always has www. in the URL. We’re not sure why this happens and it doesn’t happen for all websites. As we like to say; Google gonna Google.

We have a quick PHP snippet that will remove the www. from the Google Trusted Source button. We only recommend using this snippet if you are using this button and Google Search is unable to find your site because www. is included in it.

function hubbub_remove_www( $url ) {
return str_replace( 'www.', '', $url );
}
add_filter('hubbub-action-button-link','hubbub_remove_www', 10, 1);

Unsure how to add this snippet? We recommend the Code Snippet plugin. It makes it simple to add a snippet like the above to your website.

Was this content helpful?

Updated on February 2, 2026