WordPress.org

Ready to get started?Download WordPress

Forums

Collapsible Blogroll (8 posts)

  1. Sphyr
    Member
    Posted 9 years ago #

    My blogrolls have become large. I'd like to make them collapsible to save sidebar space.

    1 - Any existing code to do this? I assume I'd need some sort of javascript code.

    2 - Any drawbacks to using javascript on my blog?

    I searched first, I promise, but couldn't construct a "collapsible blogroll" search that provided what I was looking for.

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

  3. Sphyr
    Member
    Posted 9 years ago #

    Thanks, Podz. I read over the code and it looks tuned for Categories and Archives. Do I need to do anything special with the blogrolling code to collapse it? I'm currently using the php code supplied by blogrolling.

  4. Mark (podz)
    Support Maven
    Posted 9 years ago #

    I would put the blogrolling code inside a css div

  5. Sphyr
    Member
    Posted 9 years ago #

    Podz, I just started looking into this again; for some reason it makes sense to me this time when it was gibberish 3 months ago. I have a question about this line:

    <li id="categories"><a href="#" onclick="return kadabra('m2');"> Categories<a>

    Shouldn't that last tag be a </a>? Or am I misunderstanding something?

  6. Mark (podz)
    Support Maven
    Posted 9 years ago #

    It should - yes... oops :)

    Thank you!

    I'll correct that later and tip you for the catch.

  7. Sphyr
    Member
    Posted 9 years ago #

    The odd thing is that it seems to work anyway, even with the typo. :/

  8. Sphyr
    Member
    Posted 9 years ago #

    I'd forgotten to post my final solution based on Podz' examples for a collapsible Blogroll:

    http://chasingthewind.net/?p=1167

Topic Closed

This topic has been closed to new replies.

About this Topic