Forums

Modify blogroll widget output (9 posts)

  1. frescova
    Member
    Posted 2 years ago #

    Is there a way to do this?

    I want to wrap the image, title and description of my links with specific css and formatting.

    I want to give the ul a specific id and class and then I want to wrap the image in a span and the title and description in a paragraph tag with a break between them...

    Thanks in advance for any input.

  2. Edward Caissie
    Member
    Posted 2 years ago #

    Have a read of this page in the codex: http://codex.wordpress.org/Template_Tags/wp_list_bookmarks

    I believe you would be able to accomplish all that you are asking by using this standard function and a bit of xhtml/css.

  3. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    I thought each widget had a unique class already? I'm not running that widget to check exactly

    but viewing my source in browser, each widget gets a class like:
    class="widget widget_nameofwidget"

    so maybe blogroll is like class="widget blogroll" or something....you can check for specifics.

    then you can style that classes pseudo selectors

    That's how I style my individual widgets in my css anyway.....

  4. Edward Caissie
    Member
    Posted 2 years ago #

    The default blogroll widget "Links" does not provide very much in the way of CSS identifiers.

    It will use the widget defaults of the theme and adds the wrapper classes:
    xoxo blogroll

    That would be it ... based on the page source from my site where I actually use it. I imagine you could use some javascript is so inclined but I believe making use of wp_list_bookmarks() may be much easier to implement.

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    sounds like it!

  6. frescova
    Member
    Posted 2 years ago #

    Thanks @cais - I ended up pretty much achieving what I wanted with wp_list_bookmarks - however for some reason some of the parameters aren;t working - can you look at this and tell me if it looks right? mainly the orderby and order;

    Oreder of my result is always the same, and te updated time stamp never shows up, despite me setting it to 1

    Thanks

    <?php wp_list_bookmarks('title_li=&categorize=0&category=1864&show_name=1&show_description=1&show_updated=1&orderby=updated&order=ASC&between=<br />'); ?>

  7. Edward Caissie
    Member
    Posted 2 years ago #

    What you posted looks fine ... maybe a URL to your blog would show more information.

  8. frescova
    Member
    Posted 2 years ago #

    Unfortunately it's behind a firewall and only available via VPN...
    I'll keep playing wit it see what happens - thanks for the help.

  9. frescova
    Member
    Posted 2 years ago #

    I removed orderby and show_updated and now the order actually changed to display the newest bookmark added first on the list - makes no sense to me, but at least it's working the way I want it to...

Topic Closed

This topic has been closed to new replies.

About this Topic