Title: [Plugin: Diamond MultiSite Widgets] Change List Class
Last modified: August 20, 2016

---

# [Plugin: Diamond MultiSite Widgets] Change List Class

 *  Resolved [MyrddinDE](https://wordpress.org/support/users/myrddinde/)
 * (@myrddinde)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-diamond-multisite-widgets-change-list-class/)
 * 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,
 * Michael
 * [http://wordpress.org/extend/plugins/diamond-multisite-widgets/](http://wordpress.org/extend/plugins/diamond-multisite-widgets/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [MyrddinDE](https://wordpress.org/support/users/myrddinde/)
 * (@myrddinde)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-diamond-multisite-widgets-change-list-class/#post-2667664)
 * I got it working!
 * diamond-recent-posts.php
 * 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

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Diamond MultiSite Widgets] Change List Class’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/diamond-multisite-widgets.svg)
 * [Diamond MultiSite Widgets](https://wordpress.org/plugins/diamond-multisite-widgets/)
 * [Support Threads](https://wordpress.org/support/plugin/diamond-multisite-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/diamond-multisite-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/diamond-multisite-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/diamond-multisite-widgets/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [MyrddinDE](https://wordpress.org/support/users/myrddinde/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-diamond-multisite-widgets-change-list-class/#post-2667664)
 * Status: resolved