php category code between li tags doesn't get styled
-
I want to style each categorylink separately, so I made it like this:
<ul> <li class="menu-home"><?php wp_list_cats('include=3'); ?> <li class="menu-actueel"><?php wp_list_cats('include=8'); ?> <li class="menu-algemeen"><?php wp_list_cats('include=6'); ?> <li class="menu-collectie"><?php wp_list_cats('include=4'); ?> <li class="menu-activiteiten"><?php wp_list_cats('include=5'); ?> <li class="menu-contact"><?php wp_list_cats('include=7'); ?> </ul>
This is what happens after applying a little styling to the first category:
https://www.plaatjesupload.nl/bekijk/2011/05/08/1304868545-970.jpgIt’s outside..? I’ve thought other things in my stylesheet affected this, but they didn’t. I removed margins and paddings from every parent element I could think of.
Then I replaced the <?php wp_list_cats(‘include=3’); ?> with just a random word and then it dóes get applied:
https://www.plaatjesupload.nl/bekijk/2011/05/08/1304868763-370.jpgSo nothing’s wrong with my stylesheet. The php code is having some difficulty with this. Strangely enough stuff like text-align: right; seems to be ignored from the parent elements..
What can I do about this? Is there a way to call each category ID separately without calling the list class?
Here’s the link for the style as it is right now:
https://1586563.huweb.nl/wp-content/themes/canvas/style.css
- The topic ‘php category code between li tags doesn't get styled’ is closed to new replies.