Forums

[resolved] How to align Show_Count numbers to the right? (2 posts)

  1. Dirt2
    Member
    Posted 2 years ago #

    Here's the code I am using thus far.
    I figured out how to remove the parenthesis but can't figure out how to align the Numbers to the right...

    <?php
    $variable = wp_list_categories('echo=0&child_of=3&orderby=name&show_count=1&title_li=');
    $variable = str_replace(array('(',')'), ' ', $variable);
    echo $variable;
    ?>

    I've tried this but it's very wrong, I don't really know php.
    I can tell it's the area where the Parenthesis are actually removed and turned into blank characters and I'm trying to turn them into html code.

    $variable = str_replace(array('(',')'), '<span style="float:right">','</span>', $variable);

    The reason I need to do this is because right now "Nature and Landscape 6" looks a bit weird and using CSS almost worked but messed up something.

    So if anyone can help me figure out how to add html before and after the numbers I would be happy, thank you.

  2. Dirt2
    Member
    Posted 2 years ago #

    Figured this out using a code provided in this post:
    http://wordpress.org/support/topic/239885?replies=4

Topic Closed

This topic has been closed to new replies.

About this Topic