Okay
  Public Ticket #3069452
Removing author name
Closed

Comments

  •  1
    Brandon started the conversation

    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!

  •  1,919
    Judith replied

    Hello Brando,

    Thanks for choosing Salient.

    Please send in your website url so that we may provide css for it.

    Thanks.

  •   Brandon replied privately
  •  8,939
    Tahir replied

    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 

  •  1
    Brandon replied

    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.

  •  1,919
    Judith replied

    Hello Brandon,

    Please allow me to escalate this to the developer to assist further.

    Thanks.

  •  1,085
    ThemeNectar replied

    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,

  •  1
    Brandon replied

    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,085
    ThemeNectar replied

    Hey Brandonsmile.png

    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,