Quote:
Originally Posted by Smack dat
Ok, first of all I want to say thanks for this code. It works beautifully in the .php file I made.
I'm just not sure how I would put this into my theme though. Any idea?
|
it's hard to say,based on exactly 0 information about the theme or system, you will need to edit your theme for sure with my code and it will look something like this. good luck!
Code:
<div class="review-container">
// Start your loop of reviews ..
<?php foreach ($reviews as $review) { ?>
<div class="review">
<?php echo $review->description; ?>
<a class="read-more" href="<?php echo $review->link; ?>">Read More</a>
</div>
<? } ?>
</div>
Study existing code to pull the correct values..
And of course, my CSS must be added to your CSS file
As a side note, you may want to remove the 'site' class I used, when using this code, I set a max width to it, that may not match your site, or theme.