Ready to get started?Download WordPress


Yet Another Related Posts Plugin (YARPP)
[resolved] Adding a main DIV to default template (4 posts)

  1. uddhava
    Posted 2 years ago #

    I have a suggestion for the default template that Yarp uses.
    I am trying to exclude the Related post section when printing a webpage by using the @media print css definition.
    But Yarpp does not use a main DIV so i cannot exclude it easily.

    I could build a custom template, but that is too difficult at the moment. Maybe other Yarpp users would benefit from a main DIV. Secondly a main DIV would also help to style the block seperately in css.


  2. mitcho (Michael Yoshitaka Erlewine)
    Plugin Author

    Posted 2 years ago #

    @uddhava you can edit the text that's printed before and after the related entries display.

    I may change the defaults to include this type of class attribute in the future.

  3. uddhava
    Posted 2 years ago #

    That would be nice.
    It is possible of course to add a DIV in the backend settings of YARPP, like i did. Then you can hide it from the @media print


  4. mitcho (Michael Yoshitaka Erlewine)
    Plugin Author

    Posted 2 years ago #

    Alright, YARPP 3.6 will wrap its output in a div, with class yarpp-related, yarpp-related-widget, or yarpp-related-rss, as appropriate. In the latest beta:


    Let me know what you think. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic