Title: Link categories css
Last modified: August 18, 2016

---

# Link categories css

 *  [xinxin](https://wordpress.org/support/users/xinxin/)
 * (@xinxin)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/link-categories-css/)
 * I am using the Coffee Cup theme by Zenith for my redesigned and rebuilt blog –
   [http://nixit.co.nz/wordpress/](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)

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/link-categories-css/#post-261749)
 * 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](https://wordpress.org/support/users/xinxin/)
 * (@xinxin)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/link-categories-css/#post-261750)
 * 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.

 * 2 replies
 * 2 participants
 * Last reply from: [xinxin](https://wordpress.org/support/users/xinxin/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/link-categories-css/#post-261750)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
