WordPress.org

Support

Support » How-To and Troubleshooting » Collapsible Blogroll

Collapsible Blogroll

  • Sphyr
    Member

    @sphyr

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Mark (podz)
    Support Maven

    @podz

    Sphyr
    Member

    @sphyr

    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.

    Mark (podz)
    Support Maven

    @podz

    I would put the blogrolling code inside a css div

    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?

    It should – yes… oops 🙂

    Thank you!

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

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

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

    Dropdown Blogroll List

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Collapsible Blogroll’ is closed to new replies.