• Resolved imgracewang520

    (@imgracewang520)


    Dear all, I have been struggling with adding ‘leave a comment’ to the end of each post of a page. I want people who click on ‘leave a comment’ from a page to go directly to the comment box of its post.

    The link I shared used anchor link as a temporary solution. If people click on ‘add a comment,’ they will go to the post and see ‘add a comment’once again right above the comment box, which is definitely not ideal.

    Any thought? I am using the child theme. Thanks in advance.

    • This topic was modified 4 years, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @imgracewang520 ,

    I did have a check on the specified site.

    What I am seeing so far is as soon as I click on the ‘Leave a comment’ button on above link, I get navigated to comment form of the respective post. I don’t need to perform any additional click to start filling out the comment form.

    I believe this is the thing you are willing to have?

    Please let me know you are willing to have something else.

    Thread Starter imgracewang520

    (@imgracewang520)

    @ketanvyawahare Thank you very much for your reply.

    The thing is, after people click on the ‘leave a comment’ button and got directed to the comment form, they can still see ‘leave a comment’ right above the comment form. I want the ‘leave a comment’ button to disappear after I click to view the post.

    Any idea? Looking forward to your reply. Many thanks.

    Hi @imgracewang520 ,

    I can surely help you but could you please explain how you have added the button ‘Add a Comment’ in the post?

    I guess you have added it using some page builder?

    After answering to this question, I will be able to give you the solution.

    Thread Starter imgracewang520

    (@imgracewang520)

    @ketanvyawahare Thank you sooooo much! I am using DIVI builder. I added a text module for ‘add a comment’ and then assigned an anchor link to the module.

    Hi @imgracewang520 ,

    You have added the ‘add a comment’ button in the content hence it is being shown on the single post page also.

    I will suggest to add a CSS class to the button element. Consider you added the CSS class as ‘add-a-comment-btn’. Then add the following additional CSS so the button will be hidden from all the single post pages:

    
    .single.single-post .add-a-comment-btn {
        display: none;
    }
    

    Please let me know if you face any difficulty or need any help further.

    Thread Starter imgracewang520

    (@imgracewang520)

    @ketanvyawahare O!!!M!!!G!!! You solved it!!!!! You are such an angel!!!!! Thank you sooooo much!!!!!

    Hi @imgracewang520 ,

    Glad it worked for you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to add ‘leave a comment’ to the end of each post of a page?’ is closed to new replies.