Limit the number of months displayed by WordPress archives widget
Locate and edit your themes functions.php file. This can either be done in the admin panel by navigating to Appearance -> Editor -> Click on functions.php file or by directly editing the file which you can usually find under wp-content/themes/<theme…