How to align Show_Count numbers to the right?
-
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.
- The topic ‘How to align Show_Count numbers to the right?’ is closed to new replies.