Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1211607

    Hello,

    Would anyone happen to know how to Hide Author Bio on the Author page Where Not Defined?

    In other words, I want to hide the default author bio, but only when it is not customized.

    I want to change the default bio. I need the following to stop appearing…

    “This author has yet to write their bio.
    Meanwhile lets just say that we are proud (author name) contributed a whooping 1 entries.”

    See example bio page below…

    Thank you,

    Jas

    #1211832

    Resolved

    I copied /includes/loop-about-author.php to the child folder.
    Then deleted the offending text.

    Who’s idea was “Meanwhile lets just say that we are proud” “whooping 1 entries”. Terrible wording.

    It would be great is someone added one field that allowed the default author bio to be edited or deleted.

    Thanks for your help,

    Jas

    #1212128

    Hi Jasmer,

    There is a general WordPress way to edit author bio.
    Please have a look at this article:
    https://www.wpbeginner.com/wp-tutorials/how-to-add-an-author-info-box-in-wordpress-posts/

    Glad you got it working for you! :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1216783

    Hi Victoria,

    Thanks for the info.

    To be more specific, I have hundreds of users on this site and very few of them will updated their author bios therefore… Who’s idea was “Meanwhile lets just say that we are proud” “whooping 1 entries”. Terrible wording. It would be great is someone added one field that allowed the default author bio to be edited or deleted

    Just a global checkbox to disable any default wording in the author bio would be perfect. If you know of a plugin that does this please let me know.

    Thank you,

    Jas

    #1216784

    There is a discussion here indicating what I’ve done, but a plugin would be great. Really this should be built into WordPress though.

    https://kriesi.at/support/topic/default-author-description/#post-298547

    #1216956

    Hi Jasmer,

    I will forward this thread as a feature request. Thank you for your input.

    Best regards,
    Victoria

    #1216998

    Hey!

    There are filters in enfold\includes\loop-about-author.php like avf_author_description.

    For next release 4.7.5.1:

    I added a new parameter $context to these filters in that file so it will be easier to identify the filter call.

    And I added a new filter avf_author_description_loop_about which is right before the final output that allows to skip completly the section or return a custom description text.

    Hope this will help..

    Best regards,
    Günter

    #1217206

    Hi Günter! Sounds great, but I’m not sure, in this instance, how I would specify a global default author bio (when not defined) or select globally to have no author bio (when not defined).

    I want to be able to create an author bio, but I want to be able to choose global default bio text (or choose nothing) if I have not specified a custom bio.

    Thanks for the technical explanation, but would you mind explaining this in layman’s terms please and how the change would be selected on the user side once your change is implemented?

    Thanks,

    Jas

    #1219467

    Hi Jas,

    Sorry for the late reply!

    You can add following code to bottom of Functions.php file in Appearance > Editor

    add_filter('avf_author_description', 'avf_author_description_mod');
    function avf_author_description_mod($description){
    	if( empty( $description ) )
    	{
    		$description = "Here goes my custom content";
    	}
    	return $description;
    }

    If author description is set, it would display it and if not set, it would display the custom content :)

    Best regards,
    Yigit

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