That’s great Aldolat thank you so much!
I appreciate your advice regarding the custom class too but it’s not quite what I’m after. I’ would like to be able to set a unique class from the widget options panel so each instance of the widget can be targeted via different css. Could something like this work?
<div id="pis_posts_in_sidebar-2" class="widget posts-in-sidebar">
<div class="my-class">
</div>
</div>
Something else that would be useful without further complicating the admin would be automatically generated classes on the categories links. This would allow for colour coding.
<p class="pis-categories-links">
<a href="https://localhost/lacuna-project/category/design/" titles=View all posts in Design" class="design">Design</a>
<a href="https://localhost/lacuna-project/category/travel/" title="View all posts in Travel" class="travel">Travel</a>
</p>
Again, to keep the admin simple perhaps some of this code could be combined into the parent div rather than specifying a unique class in the admin?
<div id="pis_posts_in_sidebar-2" class="widget posts-in-sidebar">
<div class="design-travel>
</div>
</div>
What do you think? Maybe I’m being a bit too specific to my own requirments? lol ??
Cheers,
Matt