Title: Styling category dropdown menu
Last modified: August 22, 2016

---

# Styling category dropdown menu

 *  [mysecondmale](https://wordpress.org/support/users/mysecondmale/)
 * (@mysecondmale)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/styling-category-dropdown-menu/)
 * Is it possible to bold all of the categories listed in a dropdown? I’ve tried:
 *     ```
       <span style="font-weight:bold;">
   
       <?php wp_dropdown_categories('show_option_none=Title&title_li=&hide_empty=0&exclude=1&orderby=name'); ?>
   
       <script type="text/javascript"><!--
           var dropdown = document.getElementById("cat");
           function onCatChange() {
       		if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
       			location.href = "<?php echo get_option('home');
       ?>/?cat="+dropdown.options[dropdown.selectedIndex].value;
       		}
           }
           dropdown.onchange = onCatChange;
       --></script>
       </span>
       ```
   
 * and
 *     ```
       <?php wp_dropdown_categories('show_option_none=<span style="font-weight:bold;">Title</span>&title_li=&hide_empty=0&exclude=1&orderby=name'); ?>
   
       <script type="text/javascript"><!--
           var dropdown = document.getElementById("cat");
           function onCatChange() {
       		if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
       			location.href = "<?php echo get_option('home');
       ?>/?cat="+dropdown.options[dropdown.selectedIndex].value;
       		}
           }
           dropdown.onchange = onCatChange;
       --></script>
       ```
   
 * With no results.

The topic ‘Styling category dropdown menu’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [mysecondmale](https://wordpress.org/support/users/mysecondmale/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/styling-category-dropdown-menu/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
