Jump to content


Photo
- - - - -

Add Comment link both in Post Meta and under post content

add comment

Best Answer Danny , 20 May 2014 - 11:43 AM

OK, I did a quick snippet for you, this should do the trick, it may require additional styling or HTML so you can wrap it in a div etc.., but should get you on the right track.

 

 

Which looks like this - https://cloudup.com/cIZy3iYA0Pe

Go to the full post


  • Please log in to reply
7 replies to this topic

#1 SomeOddGirl

SomeOddGirl

    Newbie

  • Members
  • Pip
  • 4 posts
  • Country: Country Flag

Posted 19 May 2014 - 01:07 AM

Hi! my blog is www.someoddgirlblog.com and I would like to add the "add comment" link at the bottom of each post on the homepage while leaving it in the post meta info. How do I do that? Thanks so much!



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 17666 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 19 May 2014 - 10:37 AM

HI OddGirl

 

In order to add something like that, you will need to use a hook. For more information on hooks see our documentation - http://docs.pageline.../advanced/hooks

 

Also, see as how you only want this on to appear on the homepage, you will need to use the WordPress conditional in your hook too - http://codex.wordpre...ference/is_home



#3 SomeOddGirl

SomeOddGirl

    Newbie

  • Members
  • Pip
  • 4 posts
  • Country: Country Flag

Posted 19 May 2014 - 12:39 PM

Thanks Danny! I frankly have never used Hooks before. Do you have an easier to understand tut so I can get this last tweak fixed? We've added the "add comment" link in the post loop by copy/pasting code to the functions.php file before but not with this method.



#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 17666 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 20 May 2014 - 08:29 AM

If you have added code to the functions.php file before and it was to do something similar, then that was likely a hook.

 

Our documentation is quite simple, especially in comparison to other guides.

 

http://www.smashingm...ordpress-hooks/

http://code.tutsplus...lters--wp-27373



#5 SomeOddGirl

SomeOddGirl

    Newbie

  • Members
  • Pip
  • 4 posts
  • Country: Country Flag

Posted 20 May 2014 - 11:25 AM

Thanks I'll take a look at these. My hubs is helping me, who is much more code savvy, and he couldn't get the correct code figured out either yesterday so I hope a little more info will make it clearer. Thanks again!



#6 Danny

Danny

    Is Awesome!

  • Moderators
  • 17666 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 20 May 2014 - 11:43 AM   Best Answer

OK, I did a quick snippet for you, this should do the trick, it may require additional styling or HTML so you can wrap it in a div etc.., but should get you on the right track.

 

 

Which looks like this - https://cloudup.com/cIZy3iYA0Pe


  • GetMeWebDesign likes this

#7 SomeOddGirl

SomeOddGirl

    Newbie

  • Members
  • Pip
  • 4 posts
  • Country: Country Flag

Posted 20 May 2014 - 11:45 AM

OH my! You have no idea how grateful I am for that! Thanks so very much!!!!



#8 Danny

Danny

    Is Awesome!

  • Moderators
  • 17666 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 20 May 2014 - 11:46 AM

No problem. ;)







Also tagged with one or more of these keywords: add comment