Site logo

Archived topic

Author Box

7 replies · Started by demoxing on August 16, 2020

Viewing posts 1–8 of 8

Hello, I have added an author box after my content. and it's working well, but I want to hide the "ABOUT" text from my author box but didn't find any solution. I am adding the reference code which I used to create the author box.

reference: https://imgur.com/Ninpwy0


<div class="author-box">
	<div class="avatar"><?php echo get_avatar( get_the_author_meta( 'ID' )); ?></div>
 
        <h5 class="author-title"><?php printf( esc_attr__( 'About %s', 'the author' ), get_the_author_meta( 'display_name') );?></h5>
	
	<div class="author-summary">
	
        <p class="author-description"><?php echo wp_kses( get_the_author_meta( 'description' ), null ); ?></p>
 
        <div class="author-links">
 
 
    </div>
 
</div>

I just want to hide the text called "about".

Hi there,

Have you tried removing 'About %s', from the code above?

Let me know :)

Sorry isn't that what you wanted?

actually it's showing "the author" not my name! check the first pic, its B.CHAK. I just want to show B.CHAK here without the ABOUT text.

Ahh I see.

Try this instead:

<div class="author-box">
	<div class="avatar"><?php echo get_avatar( get_the_author_meta( 'ID' )); ?></div>
 
        <h5 class="author-title"><?php printf( esc_attr__( '%s', 'the author' ), get_the_author_meta( 'display_name') );?></h5>
	
	<div class="author-summary">
	
        <p class="author-description"><?php echo wp_kses( get_the_author_meta( 'description' ), null ); ?></p>
 
        <div class="author-links">
 
 
    </div>
 
</div>

exactly, that's what I want actually <3
thank you so much Leo. you are just rocks xD

No problem :)

This archived topic is closed to new replies.