Title: Font changes for sidebar headers !
Last modified: August 18, 2016

---

# Font changes for sidebar headers !

 *  [alistairnelson](https://wordpress.org/support/users/alistairnelson/)
 * (@alistairnelson)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/font-changes-for-sidebar-headers/)
 * Hi
 * I started my blog with the default theme then soon after changed to a custom 
   theme. Note the new theme only uses index.php, which has all the sidebar stuff
   embedded in it.
 * Anyway if I try to create a new heading name, the heading in the sidebar is always
   a new font! It’s quite annoying. For example, check out my blog (noodleandspam.
   com). In this example I’ve just added the wp_list_pages function to show pages.
   But the header is in a different font to the rest of the headers?
 * Here is a code snippet:
 *  <?php wp_list_pages(‘title_li=<h2>Noodle And Spam</h2>’); ?>
 *  <!– START ARCHIVES –>
    <li id=”archives”><h2><?php _e(‘Archives:’); ?></h2>
    -  <?php wp_get_archives(‘type=monthly’); ?>
 *  <!– END ARCHIVES –>
 * Both “archives” and “pages” are using the font <h2> as far as I can tell (though
   I don’t know php), why are they showing up in different fonts ?
 * Thanks for any help
    al

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [alistairnelson](https://wordpress.org/support/users/alistairnelson/)
 * (@alistairnelson)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/font-changes-for-sidebar-headers/#post-440462)
 * I renamed my theme’s style.css to a different name and this had no effect on 
   my blog. So it seems the style sheet isn’t even being used ?
 * I’m using WP 2.0.3 and the painted-desert theme.
 * Any help much appreciated !
 *  [yosemite](https://wordpress.org/support/users/yosemite/)
 * (@yosemite)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/font-changes-for-sidebar-headers/#post-440468)
 * Need to change:
 * `<li class="pagenav">` to `<li id="pagenav">`
 * You don’t have a pagenav class, only ‘id’.
 *  Thread Starter [alistairnelson](https://wordpress.org/support/users/alistairnelson/)
 * (@alistairnelson)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/font-changes-for-sidebar-headers/#post-440686)
 * Hi Yosemite,
 * Thanks for the reply. I can only find a reference to “pagenav” in style.css though
   and it doesn’t look like your text. Also as per my comment above, as far as I
   can tell WP isn’t even using my style.css file as removing it doesn’t effect 
   anything.
 * Any one have any ideas?
 *  [theiconoclast31](https://wordpress.org/support/users/theiconoclast31/)
 * (@theiconoclast31)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/font-changes-for-sidebar-headers/#post-440699)
 * Yosemite was referring to the index.php file, not the stylesheet.
 * And your website DOES use style.css. You must have made a mistake when you ‘deleted’
   it.
 *  Thread Starter [alistairnelson](https://wordpress.org/support/users/alistairnelson/)
 * (@alistairnelson)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/font-changes-for-sidebar-headers/#post-440758)
 * Hi there,
    Thankyou so much for your reply. Well, I renamed the style.css file
   in the currently utilised theme directory to another name. Still, my website 
   works.
 * I also tried making changes to style.css and they had no effect.
 * My index.php also doesn’t contain a reference to pagenav:
 * # grep pagenav *
    style.css:li#pagenav h2{ [~/www/noodleandspam/wp-content/themes/
   painted-desert-1]#
 * Any ideas? Could my website be using files for this from a directory other than
   the theme directory?
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/font-changes-for-sidebar-headers/#post-440760)
 * Have you cleared your browser cache and hard-refreshed (CTRL + F5) after making
   the changes?
 *  Thread Starter [alistairnelson](https://wordpress.org/support/users/alistairnelson/)
 * (@alistairnelson)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/font-changes-for-sidebar-headers/#post-440772)
 * Thankyou you were all quite right, it was using style.css and I wasn’t refreshing
   properly.
 * I’ve also modified Yosemite’s advice and almost got the desired output:
 * (from index.php):
 *  <li id=”pagenav”><h2><?php wp_list_pages(‘title_li=Noodle And Spam:’); ?></h2
   >
 * …however now the header is in bold but the actual page links are also in bold,
   unlike the other sections.
 * Unfortunately this template didn’t have the pagenav stuff in index.php, I had
   to add it in hence I’m having this trouble.
 * How can I set the header to <h2> but keep the page links under the header the
   default font without bold ?
 *  Thread Starter [alistairnelson](https://wordpress.org/support/users/alistairnelson/)
 * (@alistairnelson)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/font-changes-for-sidebar-headers/#post-440859)
 * Thanks for the PHP help so far.
 * Anyone know how I can change the code above so the title_li header is one font,
   and the page links are a different font?
 *  Thread Starter [alistairnelson](https://wordpress.org/support/users/alistairnelson/)
 * (@alistairnelson)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/font-changes-for-sidebar-headers/#post-440925)
 * bump 🙂
 *  [theiconoclast31](https://wordpress.org/support/users/theiconoclast31/)
 * (@theiconoclast31)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/font-changes-for-sidebar-headers/#post-440926)
 * First, remove the `<h2>` and `</h2>` tags in your index file. They’re useless,
   and they should be used for headings anyway, not the entire list.
 * In your CSS, refer to the title as `li#pagenav h2` and refer to the page links
   as `li#pagenav ul li`.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Font changes for sidebar headers !’ is closed to new replies.

## Tags

 * [changed](https://wordpress.org/support/topic-tag/changed/)
 * [font](https://wordpress.org/support/topic-tag/font/)
 * [wp_list_pages](https://wordpress.org/support/topic-tag/wp_list_pages/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 4 participants
 * Last reply from: [theiconoclast31](https://wordpress.org/support/users/theiconoclast31/)
 * Last activity: [19 years, 8 months ago](https://wordpress.org/support/topic/font-changes-for-sidebar-headers/#post-440926)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
