WordPress.org

Ready to get started?Download WordPress

Forums

Manual Related Posts
[resolved] Request: Filterable placeholder image (8 posts)

  1. Jason Lemahieu (MadtownLems)
    Member
    Posted 1 year ago #

    I'd like to recommend adding a filter to the placeholder image so that users can customize it. (I personally don't want to use the wp-badge.png.)

    For reference, here's how the woocommerce default image is changed via a filter:
    http://wcdocs.woothemes.com/snippets/change-the-placeholder-image/

    http://wordpress.org/extend/plugins/baw-manual-related-posts/

  2. Julio Potier
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, will be added in 1.7, comming soon, thank you for your idea!

  3. Julio Potier
    Member
    Plugin Author

    Posted 1 year ago #

    Done, you can update ;)
    The filter's name is "bawmrp_no_thumb" and its size "bawmrp_thumb_size", check FAQ if needed!

  4. Jason Lemahieu (MadtownLems)
    Member
    Posted 1 year ago #

    Haven't played with it yet, but will report back after I do. Just wanted to say thanks for the quick response!

  5. Julio Potier
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you!

  6. Jason Lemahieu (MadtownLems)
    Member
    Posted 1 year ago #

    So, I've got this working pretty well, with one caveat on the image size:

    You are hardcoding dimensions into the li's and the overflow is hidden. so if I make my images larger, they aren't shown completely in the li.

    Maybe you could get the thumb size, do some math to account for your padding and what not, and use that as the style on the li?

    Additionally, it's very difficult to override inline styles like this. Perhaps you want to consider just applying these sizes to a class rather than inline?

    Thanks again!

  7. Julio Potier
    Member
    Plugin Author

    Posted 1 year ago #

    Hey
    The style can be hacked with "bawmrp_li_style" filter.
    Did you know ? Is it ok for you ?

  8. Jason Lemahieu (MadtownLems)
    Member
    Posted 1 year ago #

    This is an interesting approach that I wouldn't have expected, but yes I can work with this.

    Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.