Please can someone help, i have added the categories, however it appears to be off line. I have tried to style this in a class but this screws up the whole thing.

I wrapped like the below but it seemed to apply to the whole of the div it was wrapped in

<div class="classname"><?php get_category(); ?></div>

Please can someone assist, do i edit the main style within the themes?

Your help is greatly appreciated.


  • what are you trying to show? review get_category() codex.wordpress.org/Function_Reference/get_category – Michael Dec 17 '12 at 23:18
  • Hi Michael, I have now corrected this. Thankyou for your assistance. Kirsty – Kirsty Marks Dec 18 '12 at 13:16
  • does this mean the problem is solved? if yes, you can add the solution as an answer; if not, you could edit your question and add the current code, and describe the problem in more detail. – Michael Dec 18 '12 at 13:46
  • Hi Michael, apologies thought i had :) Editted :) – Kirsty Marks Dec 18 '12 at 13:57

The way i fixed the issue was to insert the following code into my main CSS.

.post-categories, .post-categories li {display:inline; padding: 0px;}

I hope this helps others in this issue in the future.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.