Support » Fixing WordPress » Archive Widget Styling

  • I’m trying to figure out how to style the archives widget (drop down menu selected) – I can do it with the categories widget, since the code outputs an id-“cat” but archives don’t have that. Any help?

Viewing 1 replies (of 1 total)
  • I also did a deep look and didn’t find anything…..
    But I did try this and it worked for me.
    The way I did it was edit the file /wp-includes/default-widgets.php file and search for this:
    <select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> <option value=""><?php echo esc_attr(__('Select Month')); ?></option> <?php wp_get_archives(apply_filters('widget_archives_dropdown_args', array('type' => 'monthly', 'format' => 'option', 'show_post_count' => $c))); ?> </select>
    then just after name="archive-dropdown" add id="archive-4"
    Now you can control size, colors etc via CSS

Viewing 1 replies (of 1 total)
  • The topic ‘Archive Widget Styling’ is closed to new replies.