WordPress

List of Jetpack Widget PHP Class Names

Updated

Written by

Dave Warfel

Reading Time

2 minutes

If you buy something from one of our links, we may earn a commission.

If you didn’t already know, you can add WordPress widgets to your template files to display them anywhere on your site. The Jetpack plugin gives us a handful of useful widgets, but in order to use them outside of the sidebar, we need to know their PHP class names.

I couldn’t find a list anywhere, but one of Jetpack’s lead developers pointed me in the right direction. So I did all the dirty work for you. Here’s the list of Jetpack widget PHP class names, so you can place them anywhere in your theme with the method outlined in the link above.

  • Jetpack_Subscriptions_Widget – Adds a signup form for visitors to receive new posts by email
  • Jetpack_Display_Posts_Widget – Displays recent posts from a WordPress.com or Jetpack-enabled self-hosted WordPress site
  • WPCOM_Widget_Facebook_LikeBox – Displays a Facebook Like box with several options for page URL, showing faces, friend activity & wall posts
  • Jetpack_Gallery_Widget – Displays a gallery or slideshow of images, with options to open up the Jetpack Carousel, or link to an attachment page or the file itself
  • Jetpack_Gravatar_Profile_Widget – Displays a mini version of a person’s Gravatar profile. Choose an existing user or enter any email address.
  • Jetpack_Image_Widget – Adds a single image to your site, with options for alt text, caption, alignment & a destination URL
  • Jetpack_RSS_Links_Widget – Displays links to an RSS feed. Can show posts, comments or both, and optionally an image for each feed item.
  • Jetpack_Readmill_Widget – Allows users to send a book to their device or tablet
  • Jetpack_Top_Posts_Widget – Displays your most viewed posts & pages, based on Site Stats data
  • Jetpack_Twitter_Timeline_Widget – Displays an official Twitter Embedded Timeline with a few custom styling options & a limit on number of tweets

Example Usage

<?php the_widget( 'Jetpack_Subscriptions_Widget' ); ?>

Dave Warfel

LinkedIn  •  X (Twitter)Dave has been working with WordPress since 2011. He's built 100s of client sites and almost a dozen of his own. He's tested almost every plugin you can think of, hosted with at least 10 different companies, and gone down every SEO rabbit hole you can imagine. When's he's not tinkering with new software, you'll find him in the mountains of Colorado, trail running, summiting peaks, and rippin' downhills on his mountain bike. 🏔️🏃🚴🤸

One response to “List of Jetpack Widget PHP Class Names”

  1. Ahmed N. Avatar
    Ahmed N.

    Thanks a lot! problem solved :)

Leave a Comment