By Rob on Monday, 14 August 2017
Posted in General
Replies 5
Likes 0
Views 712
Votes 0
Hello my friends,

The comment field currently resides at the bottom of the page for a post / blog. You get to see the Amazon ads and the related posts before you get to the comment field. So I would like to move it or at least have the option in EasyBlog on where I can [place each individual component.

Could you help me with the code to move the comment field from the bottom of the page to right below the post - meaning that is the first thing I want my visitor to see once they are done reading the post.

Thank you!

Regards,
Rob
Hello Rob,

Regarding your inquiry, unfortunately there is no setting to rearrange the position of comment section in the entry view currently
However you can customize it in the file:
.../components/com_easyblog/themes/wireframe/blogs/entry/default.php
and reposition the code:

<?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 } ?>

after the line 214 and see how it goes?

You're suggested to backup the file that you want to customize beforehand for precaution
·
Monday, 14 August 2017 13:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Fadhli,

Wow that was quick - I am backing up my server right now so that link I left would not work since my sites are offline. I wasn't expecting such a quick response - you are awesome.

I will try what you suggested and get back to you and let you know how it went.

Thank you very much again - I am grateful for your time.

Regards,
Rob
Rob
·
Monday, 14 August 2017 13:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Sure Rob
·
Monday, 14 August 2017 13:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Awesome Fadhli,

Worked perfectly - thank you very much. Closing ticket and I am very satisfied!

Regards,
Rob
Rob
·
Monday, 14 August 2017 14:18
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Rob

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.

Have a nice day ahead Rob
·
Monday, 14 August 2017 15:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post