By Vincent Robert on Thursday, 19 January 2017
Posted in General
Replies 3
Likes 0
Views 154
Votes 0
Hello, is it possible to re-order comments and related posts for example? I see related posts showing up then comments - but i'd rather have the layout so comments show under the blog posting following by related posts.
Hi there,

Currently, you cant change them in your backend, but in order for you to achieved that, you have to do some modifications on this file .../components/com_easyblog/themes/wireframe/blogs/entry/default.php
by arranging codes below after comments codes.


//Related Post codes at line 210-230
<?php if ($this->entryParams->get('post_related', true) && $relatedPosts) { ?>
<h4 class="eb-section-heading reset-heading"><?php echo JText::_('COM_EASYBLOG_RELATED_POSTS');?></h4>

<div class="eb-entry-related clearfix eb-responsive">
<?php foreach ($relatedPosts as $related) { ?>
<div>
<?php if ($this->entryParams->get('post_related_image', true)) { ?>
<a href="<?php echo $related->getPermalink();?>" class="eb-related-thumb" style="background-image: url('<?php echo $related->postimage;?>') !important;"></a>
<?php } ?>

<h3 class="eb-related-title">
<a href="<?php echo $related->getPermalink();?>"><?php echo $related->title;?></a>
</h3>
<div class="text-muted">
<a class="eb-related-category text-inherit" href="<?php echo $related->getPrimaryCategory()->getPermalink();?>"><?php echo $related->getPrimaryCategory()->getTitle();?></a>
</div>
</div>
<?php } ?>
</div>

<?php } ?>


//comment codes at 237-240
<?php if (!$preview && $this->config->get('main_comment') && $post->allowcomment && $this->entryParams->get('post_comment_form', true)) { ?>
<a class="eb-anchor-link" name="comments" id="comments"></a>
<?php echo EB::comment()->getCommentHTML($post);?>
<?php } ?>


Please give it a try and see how it goes
·
Thursday, 19 January 2017 10:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for sharing this. WIll try.
·
Friday, 20 January 2017 06:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Keep us updated then
·
Friday, 20 January 2017 11:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post