Author Page & Comments
-
Almost there w/ my website….just a few more ?’s…
1) In my post where ‘by admin’ is linked & it takes me to an author details page ending in: .com/author/admin/. I do not want that when I post. I prefer that link take me to my website main url.
I would also like to disable the author’s page/author’s archive so it doesn’t exist.
I am new to this so hoping someone might know of an easy way to go about this since I don’t know coding. Maybe a plugin??? I tried the .htaccess plugin but no success. Maybe doing it wrong.
2) I have seen a few threads about changing the wording on a ‘leave a reply’ to ‘Comments.’ Is there an easier way to go about this? Very new to coding.
Thank you,
Lori
Mod
Quote:2) I have seen a few threads about changing the wording on a ‘leave a reply’ to ‘Comments.’ Is there an easier way to go about this?Use a child theme. In your child theme’s functions.php file, add the following:
add_filter('comment_form_defaults','comment_reform');
function comment_reform ($arg) {
$arg['title_reply'] = __('Message to display.');
return $arg;
}Change “Message to display.” to whatever you want. If you use an apostrophe, be sure to escape it by place a backslash () in front of it.
Quote:Very new to coding.Good sources here:
http://forum.khairul-syahir.com/graphene-support/beginners-resources-possible-sticky#post-15033
Mod
Be sure to enclose it in opening and closing PHP tags. If that’s the only thing you have in your functions file, the entire thing should look like this:
<?php
add_filter('comment_form_defaults','comment_reform');
function comment_reform ($arg) {
$arg['title_reply'] = __('Message to display.');
return $arg;
}
?>I get this when I try to paste the code in my functions.php file…
Fatal error: Cannot redeclare graphene_get_settings() (previously declared in /home/lburanek/public_html/wp-content/themes/graphene/admin/options-init.php:10) in /home/lburanek/public_html/wp-content/themes/graphene/admin/options-init.php on line 13
So I’m clear I copied over the file from graphene to my graphene-child pasted that code that Kenneth John Odle provided then update and my website goes down w/ that error. I delete the functions.php and it’s back up.
Admin
Quote:So I’m clear I copied over the file from graphene to my graphene-child …No, do not do that. That’s what causing the error you’re seeing. Create a new, empty
functions.php
file in your child theme, and add the code that Ken provided.First website I have ever done & I think a major light bulb went off for me. Can this be done w/ action hooks? If so which one? I was confused by the action hooks but found an explanation online & I get it now.
I got into my c-panel and created a functions.php and when I put the code in the code actually showed up on my home screen??? Wondering if action hooks are a better way around it???
Thanks.
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.