Yet Another Related Posts Plugin (YARPP)
[resolved] Adding a border and drop shadow (3 posts)

  1. Nickd22
    Posted 2 years ago #

    Hello all,

    I am currently using the latest version of YARPP. It works great for all purposes. I am trying to add a simple border and drop shadow to the printed text. I tried going into Settings and clicking on the checkbox for the field that says "Display using a custom template file" but the checkbox is is greyed out (aka "Read Only").

    I was wondering if there was a way I could simply edit this html in manually. If so, which file in the plugin would I need to edit?

    Thanks in advance for the help!



  2. mitcho (Michael Yoshitaka Erlewine)
    Plugin Author

    Posted 2 years ago #

    You can change the HTML that's printed with your related entries display right under that checkbox about templates. This should work for you.

    To use the custom template system, please read the readme.

  3. Nickd22
    Posted 2 years ago #

    Thanks for the feedback! I was able to go into my themes templates and add it in. All I needed to do was add a div and some css3 styles. Posting what I did for those who are interested:

    Template Name: Simple
    Author: mitcho (Michael Yoshitaka Erlewine)
    Description: A simple example YARPP template.
    <div style="width:300px;height:250px;box-shadow: 10px 10px 5px #888888;border:3px solid;padding:5px;">
    <h3>Related Posts</h3>
    <?php if (have_posts()):?>
    	<?php while (have_posts()) : the_post(); ?>
    <li><a>" rel="bookmark"><?php the_title(); ?></a><!-- (<?php the_score(); ?>)--></li>
    	<?php endwhile; ?>
    <?php else: ?>
    <p>No related posts.</p>
    <?php endif; ?>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button As it stands, your posted code may now have been permanently damaged/corrupted by the forum's parser.]

    ** For those who want to add the drop shadow, keep in mind that you need to upload the templates into your current theme, and edit the file contained in your Edit Themes section of WP. **

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


No tags yet.