El widget Entradas populares ofrece varias opciones para mostrar una lista de entradas o una cuadrícula de miniaturas. En algunos casos, puede que quieras cambiar el tamaño de las miniaturas que utiliza este widget.
Para ello, tendrás que cambiar los parámetros de tamaño en el origen de la imagen añadiendo el siguiente código al archivo functions.php de tu tema o a un plugin de funcionalidades:
function jeherve_custom_thumb_size( $get_image_options ) {
$get_image_options['avatar_size'] = 600;
return $get_image_options;
}
add_filter( 'jetpack_top_posts_widget_image_options', 'jeherve_custom_thumb_size' );
Para cambiar el tamaño de las miniaturas, también tendrás que añadir código CSS personalizado para sobrescribir el código CSS predeterminado de Jetpack. Puedes pegar este CSS en la hoja de estilos de tu tema o en Apariencia > Editar CSS, en el escritorio:
.widget_top-posts .widgets-list-layout li > a {
width: 40%;
}
.widget_top-posts .widgets-list-layout img.widgets-list-layout-blavatar {
max-width: 240px;
width: 100%;
}
.widget_top-posts .widgets-list-layout div.widgets-list-layout-links {
max-width: 100%;
width: 55%;
}
@media only screen and (max-width: 1019px) {
.widget_top-posts ul.widgets-list-layout {
max-width: 600px;
margin: 0 auto;
}
.widget_top-posts .widgets-list-layout div.widgets-list-layout-links {
font-size: 24px;
}
}
Keep reading.
More from Developers, newest first.
Jetpack 16.1.3: Critical Security Update
Yesterday we released a new version of Jetpack, 16.1.3. This release contains a critical security update. While we have no evidence that this vulnerability has been…
2 min de lectura
How to Install WordPress on XAMPP + a Better Alternative
Learn how to install WordPress on XAMPP step by step, plus compare it to a modern alternative built specifically for WordPress developers.
8 min de lectura
How to Install WordPress on a Subdomain (Step-by-Step Guide)
Complete setup guide: How to create one in your host, point DNS, secure your site, and configure key settings. Plus, how subdomains impact your SEO.
7 min de lectura
Gestiona tu sitio de WordPress con la IA por delante.
Free to start, and AI agents are free to connect. Money back within 14 days on yearly plans.


