Title: Customizing Top Posts &amp; Pages widget
Last modified: August 11, 2023

---

# Customizing Top Posts & Pages widget

 *  Resolved [bobjones](https://wordpress.org/support/users/bobjones/)
 * (@bobjones)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/customizing-top-posts-pages-widget/)
 * Jetpack provides instructions to change the size of thumbnails and number of 
   days used to calculate posts via edits to functions.php here: [https://jetpack.com/blog/custom-thumbnails-top-posts-widget/](https://jetpack.com/blog/custom-thumbnails-top-posts-widget/)
 * and here: [https://jetpack.com/blog/hooks-customize-top-posts-pages-widget/](https://jetpack.com/blog/hooks-customize-top-posts-pages-widget/)
 * The gap between thumbnail and post title is still far too wide, suggesting an
   edit to padding might tighten things up.
 * How would I do that?
 * I’d consider the shortcode if you can provide more complete documentation. For
   now, I’d prefer using the widget and add edits to functions.php.
 * Thanks!
    -  This topic was modified 2 years, 10 months ago by [bobjones](https://wordpress.org/support/users/bobjones/).

Viewing 1 replies (of 1 total)

 *  [Bruce (a11n)](https://wordpress.org/support/users/bruceallen/)
 * (@bruceallen)
 * Happiness Engineer
 * [2 years, 9 months ago](https://wordpress.org/support/topic/customizing-top-posts-pages-widget/#post-16984011)
 * Hi [@bobjones](https://wordpress.org/support/users/bobjones/)
 * If you already have the code in functions.php, you can edit the padding numbers
   to see what’s going to work better for you.
 * You might consider using a functionality plugin such as Code Snippets to do this
   instead of directly editing your functions.php file and potentially causing a
   code problem with your site.

Viewing 1 replies (of 1 total)

The topic ‘Customizing Top Posts & Pages widget’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [padding](https://wordpress.org/support/topic-tag/padding/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bruce (a11n)](https://wordpress.org/support/users/bruceallen/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/customizing-top-posts-pages-widget/#post-16984011)
 * Status: resolved