- This topic has 19 replies, 2 voices, and was last updated 5 years, 1 month ago by
Ying.
-
AuthorPosts
-
September 17, 2018 at 2:37 am #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.
September 17, 2018 at 8:41 pm #679764Tom
Lead DeveloperLead DeveloperHi 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
September 18, 2018 at 5:32 am #680055dassana
thanks tom. this code worked very well.
September 18, 2018 at 9:53 am #680376Tom
Lead DeveloperLead DeveloperJust made a change: https://gist.github.com/generatepress/6a9ad4e007ae0a7388bbbbb7b3ae068f
Let me know 🙂
September 18, 2018 at 11:58 pm #680817dassana
works like a charm. thanks a ton for all the support you and your team has given. ☺️🙏
September 19, 2018 at 8:38 am #681294Tom
Lead DeveloperLead DeveloperYou’re welcome! 🙂
October 22, 2019 at 10:18 am #1041602Matias
May I add this code to function file of GP Child Theme?
October 22, 2019 at 10:44 am #1041624Leo
StaffCustomer SupportFebruary 6, 2020 at 5:29 am #1156478rajkumarsm
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 MaterialFebruary 6, 2020 at 10:40 am #1156937Leo
StaffCustomer SupportJust 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/February 20, 2020 at 3:10 am #1171244rajkumarsm
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.February 20, 2020 at 3:48 am #1171271David
StaffCustomer SupportHi 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.
February 20, 2020 at 9:01 pm #1172168rajkumarsm
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.
February 20, 2020 at 9:28 pm #1172188Leo
StaffCustomer SupportYup that’s exactly what you’d want to do 🙂
February 21, 2020 at 7:49 pm #1173205rajkumarsm
Thanks Leo & David.
Software Testing Material
-
AuthorPosts
- You must be logged in to reply to this topic.