widget issues in IE and Chrome

Discussion in 'WordPress' started by sixrfan, Feb 27, 2011.

  1. #1
    how come the 3 widgets on this page look fine in Firefox and Safari but terrible in Chrome and IE????

    all three are normal text widgets and I'm using the Exec-PHP plugin to allow me to enter php in them. The first one just has text in it, but hte second widget has
    <?php wp_list_categories('title_li=&child_of=29&show_count=1&exclude=67' ); ?>
    PHP:
    and the third widget has
    <?php wp_list_categories('title_li=&child_of=30&show_count=1' ); ?>
    PHP:
    please advise. thanks in advance.
     
    sixrfan, Feb 27, 2011 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think it's because wp_list_categories only outputs list items, so try wrapping your code with unordered list tags.
    
    <ul><?php wp_list_categories('title_li=&child_of=29&show_count=1&exclude=67' ); ?></ul>
    <ul><?php wp_list_categories('title_li=&child_of=30&show_count=1' ); ?></ul>
    
    Code (markup):
     
    Cash Nebula, Feb 28, 2011 IP
  3. sixrfan

    sixrfan Well-Known Member

    Messages:
    354
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    that worked. thank you!
     
    sixrfan, Feb 28, 2011 IP