• Resolved carrieduncan

    (@carrieduncan)


    Current code is as below:

    <ul class="c2"><?php _e( 'Categories:&nbsp;&nbsp;&nbsp;&nbsp;', 'your-theme' ); ?></label>
    <?php wp_list_categories('title_li=&show_count=0&hierarchical=1');
    ?></ul>

    This works, but does not validate (seems obvious as to why, but I don’t know how to get this result). Is there a better way? (I want to get everything validated before moving on to testing IE6/7.)

    Site link here:
    https://www.carrieduncandesign.com/wordpress/classes/

    Thanks in advance for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • <div class="cats"><?php _e( 'Categories:', 'your-theme' ); ?>
    <ul class="c2">
    <?php wp_list_categories('title_li=&show_count=0&hierarchical=1');?>
    </ul></div>

    CSS:
    .cats,.c2,.c2 li {display:inline;}

    Add margins & padding to suit.

    Thread Starter carrieduncan

    (@carrieduncan)

    Oh, that “Congratulations” in the Validator is a beautiful thing — many thanks, Esmi!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do you put a heading before a UL and display all inline?’ is closed to new replies.