Blogroll HTML Not Like that of other Widgets

  • Unknown's avatar

    Most widgets (I’m using Pages and Categories) use something like this:


    <h3>Title</h3>

    • Item...

    The Blogroll widgets uses the same approach, but wraps the whole thing within an <li> tag. This makes styling it rather difficult. Who do we have to bribe to modify this HTML code?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    OK, that didn’t turn out very well. What I meant to say regarding the code for most widgets: <h3>Title</h3><ul><li>Item...</li></ul>

  • Unknown's avatar

    We need a link to the blog please.

  • Unknown's avatar

    http://teotwawkidiary.wordpress.com/

    You’ll notice the funky roll over effects in the Blogroll. The nested nature of the LI tags is hard to compensate for.

  • Unknown's avatar

    I only see one entry in the blog roll, and it behaves exactly as the links in the categories and pages widgets: the text background goes black and the text becomes underlined.

    What exactly is “funky?”

    What browser are you using?

  • Unknown's avatar

    I’ve added another link to more clearly demonstrate the issue.

    If you mouseover the “Blogroll” header or any of the links, all other links will change foreground color in a manner that I do not wish to occur. This is because there is an LI tag that wraps around the entire Blogroll section, so it reads the style definition for LI within sidebar. Each link, then, is an LI within an LI, making it a tad difficult to style for events such as hover.

    I could re-write the CSS code for the sidebar DIV to solve this problem. Ideally, though, I’d like to see the HTML that the system spits out changed to be consistent with how the other widgets are implemented.

  • Unknown's avatar

    BTW, this occurs on FireFox and Safari on the Mac, but not on IE for Windows.

  • Unknown's avatar

    OK, I see what you mean. This behavior does not happen with an unmodified version of the ChaoticSoul theme. It is something that you have done in the CSS.

  • Unknown's avatar

    I do have a tendency to make life hard on myself. :D

    Thanks for loaning me your eyeballs.

  • Unknown's avatar

    Not a problem. I’ve been looking at things but as of yet haven’t figured out what is doing it.

  • Unknown's avatar

    OK, I’ve figured this out. My original CSS code was:

    #sidebar LI:hover {
    background:#220000;
    }

    All I needed to do was adjust the selector, thus:

    #sidebar UL LI:hover {
    background:#220000;
    }

    Since the LI which wraps around the Blogroll is not contained within a UL, it will not pick up this style.

  • Unknown's avatar

    Glad you got it figured out.

  • Unknown's avatar

    I finally through in the towel with the whole LI:hover because I couldn’t get it two work when I had nested categories. Also, when you think about it, it’s not a very usable approach since, in a user’s mind, when the highlight occurs, you should be able to click the link. However, with the LI:hover approach, it is possible to trigger a hover without the mouse being over the link.

    Anyways, I switched to just an A:hover definition. Might not look quite as tight, but it works now matter how nested things get and will always active the link when the mouse is over it.

  • The topic ‘Blogroll HTML Not Like that of other Widgets’ is closed to new replies.