WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Problems with sidebar.php

[Resolved] Problems with sidebar.php

  • 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

    Appreciate anyone’s help! 🙂
    Thank you!

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

sorry the code doesn t show off

h2 entradas por temas h2
ul
<?php wp_list_categories(‘show_count=1&title_li=’); ?>
ul

try like this! with the <> </> of course

<h2>categories</h2>

    <?php wp_list_categories(‘exclude=2&title_li=’); ?>

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!

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…

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…

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

No worries,
glad it is working well now.
bye

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Resolved] Problems with sidebar.php’ is closed to new replies.
Skip to toolbar