We would like to remove the author name from the posts. We have tried doing this by going through Salient -> Blog -> Post Meta and then selecting "Remove Single Post Author", and also "Remove Post Author". But that only hides the author name and doesn't remove it. We need it to be completely removed so that it is no longer visible to search engines. Is there a way to do this?
WordPress will automatically overload template files if a file with the same name is found within the child theme. However, that doesn't apply to non-template files such as the page-header.php, which is just a collection of functions. Instead, you can copy the specific function you wish to override from the file (nectar_page_header) into your child theme functions.php file to override it.
Thanks that worked perfectly. We are looking for the file(s) that render the author name for the related posts that are shown at the bottom of the single post pages. And after that we'll also need to find the file(s) that render the author names on the posts archive page.
1. The function "nectar_related_post_display" in salient/nectar/helpers/blog.php
2. The post archives will use the template in /salient/includes/partials/blog/styles that correspond with your select post style in the Salient options panel > blog tab - These are regular template files you can copy to your child theme for overriding. Just ensure to keep the same folder structure.
Hi,
We would like to remove the author name from the posts. We have tried doing this by going through Salient -> Blog -> Post Meta and then selecting "Remove Single Post Author", and also "Remove Post Author". But that only hides the author name and doesn't remove it. We need it to be completely removed so that it is no longer visible to search engines. Is there a way to do this?
Thanks!
Hello Brando,
Thanks for choosing Salient.
Please send in your website url so that we may provide css for it.
Thanks.
Hey Again,
This would require customizing the "single.php" file via a Child Theme or the relevant author bio page templates.
Thanks
ThemeNectar Support Team
Thanks for the response. We are currently trying to override nectar/helpers/page-header.php (removing line 501 which prints the author name)
We have a child theme with the following files updated (besides style.css and functions.php)
salient-child/nectar/helpers/page-header.php
salient-child/single.php
For some reason the parent theme is still loading the page-header.php file, but the child theme is loading the single.php file.
Thanks for the assistance.
Hello Brandon,
Please allow me to escalate this to the developer to assist further.
Thanks.
Hey Brandon,
WordPress will automatically overload template files if a file with the same name is found within the child theme. However, that doesn't apply to non-template files such as the page-header.php, which is just a collection of functions. Instead, you can copy the specific function you wish to override from the file (nectar_page_header) into your child theme functions.php file to override it.
Kind regards,
Thanks that worked perfectly. We are looking for the file(s) that render the author name for the related posts that are shown at the bottom of the single post pages. And after that we'll also need to find the file(s) that render the author names on the posts archive page.
Hey Brandon
1. The function "nectar_related_post_display" in salient/nectar/helpers/blog.php
2. The post archives will use the template in /salient/includes/partials/blog/styles that correspond with your select post style in the Salient options panel > blog tab - These are regular template files you can copy to your child theme for overriding. Just ensure to keep the same folder structure.
Kind regards,