• I have a <span> around my TAG LIST, but its font-size property is being overridden. Colours and weightings are being used but not font-size.

    I have a similar problem, with edit on the Content Title display.

    I suspect it has something to do with WordPress inserting a CLASS tag-link-xx or post-edit-link, but I have no idea how to fix it. While I have not fully tested it, it seems to be proportional to the preceeding text.

    Any help or pointers appreciated

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • link to your site?

    Thread Starter mcl

    (@mcl)

    Unfortunately it is only on my server, while I am testing.

    Thank you for your interest.

    you could try and forcing the style with
    .whatever span {font-size:12px!important;}
    although generally i consider it better to find the style that is overwriting your span.

    Unfortunately it is only on my server, while I am testing.

    Either the fonts are loaded inline which overrides everything or a stylesheet is loading after yours that is over-riding things or there is a more specific declaration that taking precedence. Without being able to see the markup/CSS I don’t think any of us are going to be able to work it out.

    You should be running Firefox with the FireBug extension though. Then you can right click on the element of interest, select “Inspect Element”, and see all of the relevant CSS at a glance.

    Thread Starter mcl

    (@mcl)

    Thank you for your answers. I use Chrome so I was able to glean the following.

    The TAG problem has inserted a font-size: 12pt from somewhere, but also has an inserted an extra class='tag-link-12'

    <a href=..../info/?tag=trees' class='tag-link-12' title='1 topic' style='font-size: 12pt;'>Trees</a>

    The EDIT problem is as follows, no inserted font-size but an extra reference to a class not in my style.css. My style.css only contains my entries, as I started from a very simple theme and deleted it all.

    <SPAN class="cite"> (11/02/2010 6:15 pm) <a class="post-edit-link" href=" .../info/wp-admin/post.php?action=edit&post=428" title="Edit post">Edit</a>. </SPAN>

    Thanks Again

    I forgot about Chrome’s rather nice developer tools. ??

    I’d leave the class='tag-link-12' alone. You can over-right that in your CSS file, but that inline style (style='font-size: 12pt;') declaration will win every time. I don’t know off hand whether !important will take back control. My feeling is that it won’t but I guess its worth a shot.

    WordPress adds certain class attribute automatically. Unless they are defined somewhere it shouldn’t matter. That particular class, and the link itself, is only visible to logged in users with post edit privileges anyway. What problem is this causing you?

    Thread Starter mcl

    (@mcl)

    I am just a beginner with WordPress, first attempt at using it and because I am an OLD programmer, I decided I wanted my site not to look like a blog, but an info site, using blogs like pages, because I needed categories.

    My problem was that I wanted my tag list, which is displayed below the blog to be in a small font (0.7 or 0.8em), as I imagined most users would not need it. No one but me can be logged in, but it does not display any differently, whether I am logged in as admin or not logged in as a guest – I still get the 12pt style font-size. As you suspected !important did not work either

    I use Chrome, because Firefox ( + 2 Extensions) is so slow to load, worse than Adobe Reader. I have also installed FireBug Lite via Javascript, but its output is a far too advanced for my ancient brain.

    I have searched the site for any file with 12pt in it and I can only find two, which have no bearing whatsoever on Tags.

    So thank you again for your help and I am at a loss to understand where it has come from.

    UPDATE

    It was my fault. Because I am using wp_tag_cloud() to display tags and I wanted them all the same size, I had defined smallest and largest to be the same size and not really knowing what I was doing I had used 12 as my value.

    Is there a another way to display all tags, so that I could use CSS to control the size ?

    Many apologies for wasting everyone’s time, but at least I have learned a bit more about WordPress.
    `

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘My Font Size Being Overridden’ is closed to new replies.