Jump to content

Archived

This topic is now archived and is closed to further replies.

SomeOddGirl

Add Comment link both in Post Meta and under post content

Recommended Posts

SomeOddGirl    0
SomeOddGirl

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!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

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.pagelines.com/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.wordpress.org/Function_Reference/is_home


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
SomeOddGirl    0
SomeOddGirl

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.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

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.smashingmagazine.com/2011/10/07/definitive-guide-wordpress-hooks/

http://code.tutsplus.com/articles/the-beginners-guide-to-wordpress-actions-and-filters--wp-27373


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
SomeOddGirl    0
SomeOddGirl

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!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

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.

 

https://gist.github.com/Dannyholt/b6115d00a68629893cf9

 

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

  • Like 1

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
SomeOddGirl    0
SomeOddGirl

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

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

No problem. ;)


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • fabhousewife
      By fabhousewife
      Hello, 
       
      I'm having trouble with my comments section for my website http://www.fabhousewife.com.  There used to be no issues, but something has recently changed.  Even though comments have been inserted within the "drag and drop" setting for "blog" and "blog post", and nothing is selected as hidden, the comment box is no longer showing up.  I can see some previous comments, but there isn't a way to add new comments.  Also, the "add comment" link is now listed underneath the title of a post, but it still doesn't show a comment form when clicked.  I've tried in Firefox and Chrome.  Can you please help?  I'm using Pagelines version 2.3.8.
×