WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] How to remove 'Related Posts' title if no related posts were found (3 posts)

  1. indevd
    Member
    Posted 1 year ago #

    Hi!
    First of all, thanks a lot for a great plugin!

    I have a question: is it possible to prohibit displaying the title "Related posts" + custom message set through the settings, if there were no related posts found. I don't want anything being displayed if no related posts are found

    Thank you!

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    The easy way to do this is to use CSS. When there's no results, the display will have a "yarpp-results-none" class. So add .yarpp-results-none {display:none} to your theme's CSS. That should work.

  3. indevd
    Member
    Posted 1 year ago #

    Thanks a lot (didn't know there was a special class for that)! This worked!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic