Title: Problems with sidebar.php
Last modified: August 19, 2016

---

# Problems with sidebar.php

 *  Resolved [windstyles](https://wordpress.org/support/users/windstyles/)
 * (@windstyles)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/)
 * I am having issues with my sidebar.php file. It works perfect in Firefox, but
   is a mess on IE8. If I fix it to work on IE8, it isn’t right on Firefox. Is it
   possible to make two sidebars and call one for IE browsers and another for all
   others (like you can with stylesheets) ?
 * Here is the file. Again, works great in Firefox, but not working right in IE8.
   The Pages work great, but then it gets to Categories and it changes the type 
   of LI. If I fix it in IE8, it doesn’t work in Firefox.
 * [http://wordpress.pastebin.com/sB9A1srK](http://wordpress.pastebin.com/sB9A1srK)
 * Appreciate anyone’s help! 🙂
    Thank you!

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

 *  Thread Starter [windstyles](https://wordpress.org/support/users/windstyles/)
 * (@windstyles)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656117)
 * Bump 🙂
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656118)
 * Hi,
    yes it is possible but i thing it is an css issue. check your css file first.
 *  Thread Starter [windstyles](https://wordpress.org/support/users/windstyles/)
 * (@windstyles)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656123)
 * Thank you, davidandre.
 * Here is a link to my CSS file:
 * [http://wordpress.pastebin.com/Md30JRGY](http://wordpress.pastebin.com/Md30JRGY)
 * Any thoughts on how to make it work in IE? Thank you!
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656125)
 * tell us what is the url of your site then sure someboby find a way to help you
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656126)
 * I really dont know without seeing your site but try to put a clear left at:
    #
   sidebar-bot{ background:#a3c54c url(images/sidebar_bott.gif) no-repeat; width:
   196px; height:32px; clear:left;
 * }
 *  Thread Starter [windstyles](https://wordpress.org/support/users/windstyles/)
 * (@windstyles)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656148)
 * Added the clear left and that didn’t work.
 * The site is [http://cincinnati-green-plumbers.com/](http://cincinnati-green-plumbers.com/)
 * Thank you so much for your help, it’s truly appreciated! 🙂
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656159)
 * I dont have much time right now but i looked quickly in your sidebar.php as i
   ve seen bade code in your css.file and i guess you have very confusing
    ul and
   li tags… You have:
    -  <h2>Categories</h2>
 *  -  <?php wp_list_categories(‘exclude=2&title_li=’); ?>
 * Try something simple like:
    <h2>categoris</h2>
    -  <?php wp_list_categories(‘exclude=2&title_li=’); ?>
 * then you might have to put a #sidebar h2 {margin-left:10 or more px;}
 * try this and let me know
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656161)
 * sorry the code doesn t show off
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656162)
 * h2 entradas por temas h2
    ul <?php wp_list_categories(‘show_count=1&title_li=’);?
   > ul
 * try like this! with the <> </> of course
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656165)
 * > <h2>categories</h2>
   >  -  <?php wp_list_categories(‘exclude=2&title_li=’); ?>
 *  Thread Starter [windstyles](https://wordpress.org/support/users/windstyles/)
 * (@windstyles)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656191)
 * Davidandre, I really do appreciate your help, but I already have the code as 
   you list above with the ul and /ul before the wp_list_categories
 * This is not my template, so I cannot speak as to why the code may/may not be 
   wrong.
 * Any ideas on how to add a second sidebar.php that only works in IE, if possible?
 * Thank you!
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656197)
 * Hi,
    no you dont have the same code.I didn t explain myself well… so eliminate
   the li on the lines 22,27,34,41 and we ll see what happens. i am pretty sure 
   this a problem of li , look at “pages” it displays well on every browsers…
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656200)
 * Hi,
    no you dont have the same code.I didn t explain myself well… so eliminate
   the li on the lines 22,27,34,41 and we ll see what happens. i am pretty sure 
   this a problem of li , look at “pages” it displays well on every browsers…
 *  Thread Starter [windstyles](https://wordpress.org/support/users/windstyles/)
 * (@windstyles)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656204)
 * Thank you, David. That didn’t work exactly, but you got me on the right track!!
   I went in and removed the overall ul tags and enclosed each section in their 
   own ul /ul and li /li tags and it works now in both browsers!!
 * Thank you so much for all of your time and help this morning. If it weren’t for
   you, I would’ve pulled all of my hair out. 🙂
 * Have a great day
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656206)
 * No worries,
    glad it is working well now. bye

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

The topic ‘Problems with sidebar.php’ is closed to new replies.

## Tags

 * [sidebar.php](https://wordpress.org/support/topic-tag/sidebar-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 15 replies
 * 2 participants
 * Last reply from: [davidandre](https://wordpress.org/support/users/davidandre/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/problems-with-sidebarphp/#post-1656206)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
