Forums

[resolved] Quick Debugging (please!) (7 posts)

  1. joebrooksie
    Member
    Posted 3 years ago #

    I've been up and down my code a couple of times and can't find the open tag (at least that's what I'm assuming it is)...

    Could someone give me a fresh pair of eyes.

    http://www.joe-brooks.com/wp11/

    Thanks

  2. Mark
    Member
    Posted 3 years ago #

    What do you mean by open tag? An unclosed HTML tag? Missing </div> tag? What?

  3. joebrooksie
    Member
    Posted 3 years ago #

    wpsec -

    I don't know - Look at the link...

    The title in post one is okay, 2nd post isn't 3rd is ok, 4th isn't ect..

    I've been raking it and nothing is popping up at me

  4. joebrooksie
    Member
    Posted 3 years ago #

    Here is my index.php - http://pastebin.com/m3ac96171

  5. Mark
    Member
    Posted 3 years ago #

    Every other post has an "alt" class in the surrounding <div...> tag - like this:

    <div class="hentry alt2 post publish author-admin category-uncategorized untagged y2009 m01 d29 h13 alt" id="post-17">

    So that "alt" class changes the H2 A tag style (e.g. the < a href ... > tag that wraps the post title) for the post heading. With the "alt" class the CSS style for the "A" tag is this:

    .alt a {
    -x-system-font:none;
    color:#F5F5F5;
    font-family:"Lucida Grande",Geneva,Helvetica,sans-serif;
    font-size:10px;
    font-size-adjust:none;
    font-stretch:normal;
    font-style:normal;
    font-variant:normal;
    font-weight:lighter;
    letter-spacing:1px;
    line-height:1;
    margin-right:1px;
    padding:10px;
    text-decoration:none;
    text-transform:uppercase;
    }

    Without the "alt" class the CSS is this:

    a {
    color:#555555;
    text-decoration:none;
    }

    So there are 3 basic ways to fix that problem:

    - Delete the "alt a" class from your style sheet if you don't want to use it (check around line 67)

    - Find the code in your theme files that injects the "alt" class in the post title < a ... > wrappers and remove that code

    - Adjust the "alt a" class styling to meet your needs (in your theme's style.css file, again look around line 67)

  6. joebrooksie
    Member
    Posted 3 years ago #

    Brilliant man.

    Do you have twitter?

    Thanks :)

  7. Mark
    Member
    Posted 3 years ago #

    Ya, but I forget to tweet more often :-) Busy slingin' code all day...

    Catch me on twitter at http://twitter.com/wpsecurity

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.