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

  1. indevd
    Posted 3 years ago #

    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!


  2. mitcho (Michael Yoshitaka Erlewine)
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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

  • Yet Another Related Posts Plugin (YARPP)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic