View Single Post
Old 05-04-2020, 01:12 PM  
machinegunkelly
Confirmed User
 
machinegunkelly's Avatar
 
Join Date: Jun 2003
Posts: 3,277
Quote:
Originally Posted by Smack dat View Post
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.
__________________
dead.
machinegunkelly is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote