• I am using the Coffee Cup theme by Zenith for my redesigned and rebuilt blog – http://nixit.co.nz/wordpress/

    I would like to put my links into categories and to have the same CSS formatting right through each category:

    How do I modify the PHP and CSS so that all of my categories show and that all of the links are formatted correctly?

    At the mometI have just two links. I’ve a ton more which I’d like to have displaying correctly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • That theme uses this code in sidebar.php:
    <li><h2><?php _e('Links'); ?></h2>
    <ul>
    <?php get_links('-1', '<li>', '</li>', '<br />'); ?>
    </ul>
    </li>

    I use code like this:
    <li id="here">Here
    <ul><?php wp_get_links(11); ?></ul>
    </li>

    for each category on it’s own, so I would guess that for you, this will work:

    <li id="here"><h2>Here</h2>
    <ul><?php wp_get_links(11); ?></ul>
    </li>

    where the (number) is the cat ID and the h2 whatever you wish.

    Thread Starter xinxin

    (@xinxin)

    Thanks Podz!

    It works straight away – as I knew it would!

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

The topic ‘Link categories css’ is closed to new replies.