Jump to content


Photo
- - - - -

Move leave a comment under the post


  • Please log in to reply
19 replies to this topic

#1 marolle

marolle

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 14 March 2011 - 11:42 AM

I would like to have the "leave a comment" under the post, instead of before the post. You know like they have on blogger. people tell me its hard for them to find, because they are used to see it under the post on other blogs. Is there an easy way to do this ? I can edit in the code, I just need to know what to do :)

Please Login or Register to see this Hidden Content



#2 Kate

Kate

    Advocate

  • Members
  • 3039 posts

Posted 14 March 2011 - 02:04 PM

Hi Marie, That "Leave a Comment" is actually part of a function. (You can find it in template.postloop.php.) If you move it, it will also display the other items, unless you use a filter. The other option is to hide it up there (either using a similar method or via CSS), and then manually adding a link below the posts with a link to the comments section. Make sense?

#3 marolle

marolle

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 17 March 2011 - 10:25 AM

Hi Kate, thanks alot for your answer. Uhm it makes sense, but I really dont know how to do it :(

#4 Kate

Kate

    Advocate

  • Members
  • 3039 posts

Posted 17 March 2011 - 12:55 PM

Hi Marie, Which option would you like to use?

#5 marolle

marolle

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 18 March 2011 - 07:50 AM

i dont know what you mean with "it will display the other items" ? which items is it that will be moved ? maybe its the easiest to hide it and make a link under the post ?

#6 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts
  • Country: Country Flag

Posted 18 March 2011 - 09:29 PM

I think you can actually use this shortcode in the post edit screen to create a link on the bottom `[post_comments]`

#7 marolle

marolle

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 19 March 2011 - 06:28 AM

thanks Adam :) but where do I find the "post edit screen" ?? Sorry im such a newbie :(

#8 marolle

marolle

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 19 March 2011 - 06:30 AM

and another question, can I make the text bigger ? (the text with "leave a comment"). It seems people have a hard time finding it. On everyone elses blogs it is at the bottom.

#9 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 19 March 2011 - 04:38 PM

The post edit screen is the text editor where you edit the post.

You can make the text bigger by adding this code to your custom CSS area:

Please Login or Register to see this Hidden Content


You may increase the size by increasing 16.

#10 marolle

marolle

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 03 April 2011 - 06:51 AM

thanks alot for all your help, but I really have no clue how to make it :( I guess I just have to leave it there...

#11 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 03 April 2011 - 04:20 PM

You can add this to the bottom of the post editor:

Please Login or Register to see this Hidden Content



#12 marolle

marolle

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 07 April 2011 - 02:53 PM

omg, im so lost!! but I did manage to increase the text with " leave a comment ". WHERE do I find the post editor ? do I find it under settings in my control panel ?

#13 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts
  • Country: Country Flag

Posted 07 April 2011 - 07:26 PM

No the shortcode we gave is meant to be used on the same exact screen you use when you are writing an actual post, does that make sense?

#14 marolle

marolle

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 08 April 2011 - 06:19 AM

THANK YOU! Yes, i understand, and I've just tried and it works :) but then it will be both on top and at the bottom ? and I have to do it each time I make a post ?

#15 timlinson

timlinson

    Advocate

  • Members
  • PipPipPipPipPip
  • 1032 posts

Posted 08 April 2011 - 06:41 AM

This filter should automatically add `[post_comments]` for you at the bottom of every post.. you can add it to the platformbase/functions.php file: ` function marie_post_comments($content) { ? ? ? ? $content .= '[post_comnments]'; return $content; } add_filter('the_content', 'marie_post_comments'); `

#16 smicky

smicky

    Member

  • Members
  • PipPip
  • 27 posts

Posted 17 April 2011 - 06:52 PM

Tim, I was just looking for a solution to this same problem and it appears you have it! 1 quick question, Does the "marie" in function marie_post refer specifically to the marie that posted the original problem or is that universal? the blog I am working on currently that needs this fix is

Please Login or Register to see this Hidden Content



#17 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 17 April 2011 - 06:53 PM

Does the "marie" in
function marie_post refer specifically to the marie that posted the original problem or is that universal?


I believe it refers to the Marie that posted the original problem.

#18 smicky

smicky

    Member

  • Members
  • PipPip
  • 27 posts

Posted 17 April 2011 - 06:55 PM

SO the code I would need would be what?

function ????_post_comments($content) {
$content .= '[post_comnments]';
return $content;
}
add_filter('the_content', 'marie_post_comments');

#19 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 17 April 2011 - 06:58 PM

Hm, you can try adding that code Tim posted with "marie" in it (it may not make a difference, but I'm not sure). If it doesn't work, let us know.

#20 smicky

smicky

    Member

  • Members
  • PipPip
  • 27 posts

Posted 17 April 2011 - 07:07 PM

Catrina & Tim, This worked like a charm! (Once I changed the misspelling on the second line ;) ) Thanks so much!