Diamond MultiSite Widgets
[resolved] Change List Class (2 posts)

  1. MyrddinDE
    Posted 4 years ago #

    Is it possible to add a "class" for the rendered lists?

    At the moment it looks like this:

    <div class="myr-blockcontent-body"><ul><li>Myrddin - <a href="http://skyrim.mmo-game.eu/enchanting-items-console/">Enchanted Items via Dropdown</a></li>

    and I'd love to be able to define the class to something like "tooltip"

    <div class="myr-blockcontent-body"><ul><li class="tooltip">Myrddin - <a href="http://skyrim.mmo-game.eu/enchanting-items-console/">Enchanted Items via Dropdown</a></li>

    It would give the possibilities to have some tooltip popup for the post with other relevant data belonging to the link. I used to have the RSS feed of the main site as "network recent posts" and there was nice nice excerpt up to the more tag when you hover over it. And since this plugin does not bring this function I'd be interested in adding a shiny nice tooltip instead.
    I'd edit the code for it, if someone can point me at the right position,

    Thanks in advance,



  2. MyrddinDE
    Posted 4 years ago #

    I got it working!


    line 66:
    $output .= $this->render_output($wgt_miss, $wgt_count, $wgt_format, $wgt_avsize, $wgt_defav, $wgt_dt, '<li class="tooltip">', '</li>', '<ul>', '</ul>', $wgt_mtext, $wgt_white, $wgt_post_limit) ;
    line 98:
    $before_item = '<li class="tooltip">';

    With some CSS and usage of span you can create a nice Tooltip with additional info.

    If this is useful for anyone else here is what I do:
    Format String:
    {title}<span>{blog}<br /><small>{date} by {author}</small><br />{excerpt}<br /></span>

    and simply show/none the span tag on hover.

    Sorry for bothering, usually I am lost in code

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Diamond MultiSite Widgets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic