WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. uddhava
    Member
    Posted 1 year 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.

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

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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

    ys

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year 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:

    http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.6b4.zip

    Let me know what you think. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic