WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. helm2009
    Member
    Posted 5 years 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 5 years 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 5 years ago #

    Thanks! No need to add more!

  4. gdkt11
    Member
    Posted 4 years 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 4 years ago #

  6. Bart
    Member
    Posted 4 years ago #

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

  7. Bart
    Member
    Posted 4 years 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 4 years 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/

  9. 8207h32
    Member
    Posted 4 years ago #

    @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.

  10. Txanny
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic