Support » Requests and Feedback » [Plugin: SidePosts Widget] More specific CSS?

  • Hi!
    Thanks for a great plug-in! I’ve been using it for a couple of versions now and I really like it.

    I have one small problem or rather one small wish. Could you please add some <div>’s or <span>’s with class=”xxx” around the various elements. It would make my day a lot easier.

    Thanks in advance,
    Henrik

Viewing 9 replies - 1 through 9 (of 9 total)
  • Well, there are no much elements on the widget, as it follows wordpress widgets standards.

    You have:

    <li id="sideposts" class="widget widget_sideposts"> which holds the entire widget.

    <h2 class="widgettitle"> the wordpress standard for widget titles.

    And then you have an unordered list with all widget posts in the form:

    <ul>
    <li>, the post title, <span class="sideposts_date"> for the date, <img>for the excerpt thumbnail and a <p> tag for the post body.

    With that I made all kinds of customization, think no more is needed, as only are three different elements: Title, Date, and Body. And already different tags are used for it.

    But as always I’m open to suggestions, so tell me what and where you want classes added. If you think it will be more useful, I will add classes around all this elements in the next version.

    Thanks! No need to add more!

    gdkt11

    (@gdkt11)

    I’m listing two to three sideposts on the right of each page. I’d like to add in some css to all but the last “li” so I do see a need for some sort of unique identifier at least on the first and last list item. Perhaps adding class=”first” to the first li and class=”last” to the last li could be added?

    Thanks for your help. Your plugin is great.
    Katie

    gdkt11

    (@gdkt11)

    Bart

    (@bartclaeys)

    Still, there is no way to format the title with CSS.

    Bart

    (@bartclaeys)

    Oway, I’m wrong, you can style the title by styling

    #sidebar ul li.widget_sideposts ul a

    This will affect all the links in your post, but that will be overridden by:

    #sidebar ul li.widget_sideposts ul li p a

    Not very clean, but owkay, it works 🙂

    Hope the changes introduced in the today’s release will help you with this issues:

    Now you have this classes: sideposts-title, spli, spli-first and spli-last. If only showing one post, first and last does not apply.

    http://alkivia.org/sideposts/sideposts-2-4-2/

    @txanny

    Now you have this classes: sideposts-title, spli, spli-first and spli-last. If only showing one post, first and last does not apply.
    http://alkivia.org/sideposts/sideposts-2-4-2/

    I just tried it, and it was awesome release.
    FYI, I just found the spli-last still didn’t correct typed in Sidepost Widget 2.4.2.
    In file sideposts/lib/class.sideposts-widget.php line 117 with commented code for Last item still typed spli-first.

    Thanks for reporting,

    This has been solved and will be released with next version. You can see the new source code here:

    http://code.alkivia.org/filedetails.php?repname=alkivia&path=/plugins/sideposts/trunk/lib/class.sideposts-widget.php

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: SidePosts Widget] More specific CSS?’ is closed to new replies.