[Resolved] removing links from the author, date in comment section

Home Forums Support [Resolved] removing links from the author, date in comment section

Home Forums Support removing links from the author, date in comment section

  • This topic has 19 replies, 2 voices, and was last updated 3 years ago by Ying.
Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #679007
    dassana

    i want to remove the links from the author in the comment section. i did search in the forum but there are snippets of different codes for different functions. hence not added these codes.

    #679764
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    There’s no filter for this, unfortunately. You’d have to overwrite the entire function.

    You can do that by adding this function to your site: https://gist.github.com/generatepress/6a9ad4e007ae0a7388bbbbb7b3ae068f

    #680055
    dassana

    thanks tom. this code worked very well.

    #680376
    Tom
    Lead Developer
    Lead Developer
    #680817
    dassana

    works like a charm. thanks a ton for all the support you and your team has given. β˜ΊοΈπŸ™

    #681294
    Tom
    Lead Developer
    Lead Developer

    You’re welcome! πŸ™‚

    #1041602
    Matias

    May I add this code to function file of GP Child Theme?

    #1041624
    Leo
    Staff
    Customer Support
    #1156478
    rajkumarsm

    Hi I tried to add this code in the CodeSnippet Pplugin to remove links from the author, date in comment section. Getting following error.

    The snippet has been deactivated due to an error on line 8:
    Cannot redeclare function generate_comment.

    Thanks,
    Software Testing Material

    #1156937
    Leo
    Staff
    Customer Support

    Just tested it and this one will need to be added in the function.php file of your child theme:
    https://docs.generatepress.com/article/using-child-theme/

    #1171244
    rajkumarsm

    Hi Leo, I am not using any child theme. I am using the Generatepress Premium theme. Can you guide me to fix this?
    Thanks in advance.

    #1171271
    David
    Staff
    Customer Support

    Hi there,

    you will need to install the GP Child Theme – see here:

    https://docs.generatepress.com/article/using-child-theme/

    Without the child theme the changes you require cannot be made at this time.

    #1172168
    rajkumarsm

    Hi David,

    Thanks. I have installed the child theme and its working fine. Earlier I used Snippet plugin and Simple CSS plugin. Now I had moved the code to child theme relevant files (functions.php and style.css files). There is no point to use Snippet plugin and Simple CSS plugin right when using child theme and able to modify functions.php and style.css.

    Thanks in advance.

    #1172188
    Leo
    Staff
    Customer Support

    Yup that’s exactly what you’d want to do πŸ™‚

    #1173205
    rajkumarsm

    Thanks Leo & David.

    Software Testing Material

Viewing 15 posts - 1 through 15 (of 20 total)
  • You must be logged in to reply to this topic.