Forums

Using wp_list_categories() function with custom style (3 posts)

  1. fatihturan
    Member
    Posted 1 year ago #

    Hello.

    How i can use wp_list_categories() function with custom style.

    In example. I can use get_links() function with custom style like below:

    <?php get_links('-1', '<li><span>', '</span></li>', '', '', 'rand', '', '', '7'); ?>

  2. Evita
    Member
    Posted 1 year ago #

    If my memory serves me right, list items of this generated list have the class "cat-item". So you can style it in your style.css.
    For the rest, read the codex.

  3. fatihturan
    Member
    Posted 1 year ago #

    Dude i just want to insert <span></span> tag in to <li></li> tag. Like above example. If i rewrite example:

    <li><span><a></a></span></li>

Topic Closed

This topic has been closed to new replies.

About this Topic