I completely replaced the default style sheet with my own and I’m making the templates conform to my existing site design. Nothing in my style sheet came from the template I started with when I started modifying it. All of the element names are completely different now. The only place lists are styled at all is where I’m trying to override them. As far as I can tell, none of my template files are inserting these <ul>
‘s and <li>
‘s and I can’t find the offending file responsible for putting them there. As far as I can tell, WordPress itself is inserting HTML and CSS commands when it should not be doing so.
For instance, I’m calling the Page list with
<?php wp_list_pages(); ?>
First of all, when I do this it prints the word “Pages” on its own.
If I call the category list or archives with
<?php list_cats(0, ”, ‘name’, ‘asc’, ”, 1, 0, 1, 1, 1, 1, 0,”,”,”,”,”) ?>
<?php wp_get_archives(‘type=monthly’); ?>
it *doesn’t* print the title (“Category” or “Archives”) the way the page list does. That has to be put in seperately. It also inserts CSS and HTML and I’ve had to override that in the style sheet. This is what is printed out in the browser when the page loads:
<li id="pagenav">Pages<ul>
<li class="page_item">
<a href="https://www2.spywareinfo.com/site-map/" title="Site Map">
Site Map</li>
Where <li id="pagenave">
<ul>
and <li class="page_item">
is coming from is beyond me. That cost me a good half hour of cussing because I couldn’t figure out how to style the word it insisted on printing on its own. I have that fixed at least by overriding it in the style sheet. However, I can’t seem to make that link appear anywhere but centered. You can see what I’m going on about here: https://www2.spywareinfo.com/wp-content/themes/swi/images/stupidnavthing.gif
I’ve tried numerous ways to override “class=page_item” in the style sheet to make the friggin link align to the left and nothing I do works.
#pagenav { font-weight: bold; text-align: left; }
.page_item { text-align: left; !important}
.page_item li { text-align: left; !important}
#page_item { text-align: left; !important}
#page_item li { text-align: left; !important}
page_item { text-align: left; !important}
page_item li { text-align: left; !important}
UL { list-style: none; text-align: left; !important}
li { list-style: none; text-align: left; !important}
li.page_item {list-style: none; text-align: left; !important }
#li.page_item {list-style: none; text-align: left; !important }
None of that is working! It still stubbornly centers the link and I can’t figure out why. I’ve even tried wrapping <div align="left">
</div>
around <?php wp_list_pages(); ?> and that didn’t work either.
What I would like to know is from where WordPress is being told to insert all these <ul>
‘s <li>
‘s and <id=pagenav>
‘s all over my pages. I can’t find a single file in the whole package that looks to be responsible for it. I don’t want the <ul>
‘s or the <li>
‘s or the <id=>
‘s. How do I get rid of them? This is driving me nuts.