Matt Bedford
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts in Sidebar] Custom container div classesHi Aldolat,
For what I’m try to achieve there needs to be some relationship between the unique class/id and the category as I’d like categories to be colour coded. Being able to set the class in the options panel would make this possible but a more automated approach might be better from an administration point of view which is why I thought of combing relevant categories into the naming convention. This might be too specific to my own needs though?
Thank,
MattForum: Plugins
In reply to: [Posts in Sidebar] Custom container div classesThat’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="http://localhost/lacuna-project/category/design/" titles=View all posts in Design" class="design">Design</a> <a href="http://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