Archived topic
Adding No Pin Tag to Author Box Image
9 replies · Started by vasu on November 11, 2020
Hi!
I had received great instructions on setting up an author box here. I want to add the no pin tag to the author image in the box. Can you help me with that? I have Simple CSS and I copied the recommended css to make the author box look pretty. Thanks.
Hi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know :)
Sure. I have provided below.
What is the code you are using for the author box?
<div class="author-box">
<div class="avatar"><?php echo get_avatar( get_the_author_meta( 'ID' ));?></div>
<h4 class="author-title"><?php printf( get_the_author_meta( 'display_name') );?></h4>
<div class="author-summary">
<p class="author-description"><?php echo wp_kses( get_the_author_meta( 'description' ), null ); ?></p>
<div class="author-links">
<a>" title="Read more">
Read more...
</a>
</div>
</div>
</div>
Hmm I'm not aware of a way to modify the output of the avatar image unfortunately - this is not handled by the theme.
We could try hiding it with CSS - However, I just checked the author box at the bottom of single posts and not seeing a pin tag.
Can you tell me the css to hide it? I believe you can hide it using this code: 'extra_attr' => 'nopin="nopin"' for the image, but I am not sure how to place it correctly without breaking the box.
I'm actually not seeing the Pin showing up in your author box avatar as opposed to your other images:
https://www.screencast.com/t/LIz7HxFhK60
Are you seeing it on your end?
I see it come up as an option when I click the Add to Any Pinterest share button at the bottom of a post. I have provided the url of a post below.
I'm not seeing the button you are referring to.
Can you provide a screenshot?
https://docs.generatepress.com/article/using-the-premium-support-forum/#uploading-screenshots