move comments

Posted in: Newspaper
Post count: 39

Hi

i hav just worked out activating comments to me posts

have just checked the active comment and it comes right at the end of the page but i would like to put this exactly under the related post, please see
http://www.cheltenhamstandard.co.uk/drug-hell/

and have related articles below this as i think it may confuse some users

any ideas appreciated

cheers

stu

Post count: 22421

Hello,

In order to change the related articles and comment position you will have to alter the theme files. Each post template has it’s own files so the modification must be made for each post style in particular.
Each post style has 2 files corresponding to it: https://www.screencast.com/t/Zvurr1hrLK
In order to move the comments you will have to move the code from the single-tempalte files into the loop-single files and place the copde above the related articles code.
Here is an example for the default post template:
https://www.screencast.com/t/V4DFlFAWoiiv
https://www.screencast.com/t/0bJcQkBtVF

Thanks.

Post count: 5

It doesn’t work for Single-template-2
I moved from single_template_2.php “comments_template('', true);” to loop-single-2.php as you showed. But my post completely lost.

Post count: 22421

Hi,

Be careful when you edit theme files as you have to mind the syntax. You need to wrap the code in php tags.
I just tested this on post style 2 and it works as expected.
https://www.screencast.com/t/Aiz57CotE

Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.