Forums

[Plugin: SidePosts Widget] More specific CSS? (8 posts)

  1. helm2009
    Member
    Posted 7 months ago #

    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

  2. Txanny
    Member
    Posted 7 months ago #

    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.

  3. helm2009
    Member
    Posted 7 months ago #

    Thanks! No need to add more!

  4. gdkt11
    Member
    Posted 2 months ago #

    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

  5. gdkt11
    Member
    Posted 2 months ago #

  6. bartclaeys
    Member
    Posted 1 month ago #

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

  7. bartclaeys
    Member
    Posted 1 month ago #

    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 :)

  8. Txanny
    Member
    Posted 1 week ago #

    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/

Reply

You must log in to post.

About this Topic