- This topic has 9 replies, 2 voices, and was last updated 1 year, 7 months ago by Leo.
November 11, 2020 at 12:36 pm #1527369vasu
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.November 11, 2020 at 3:00 pm #1527518LeoStaffCustomer SupportNovember 12, 2020 at 7:37 am #1528531vasu
Sure. I have provided below.November 12, 2020 at 8:57 am #1528671LeoStaffCustomer SupportNovember 12, 2020 at 9:10 am #1528690vasu
<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>November 12, 2020 at 9:17 am #1528699LeoStaffCustomer Support
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.November 12, 2020 at 11:33 am #1528842vasu
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.November 12, 2020 at 2:19 pm #1528988LeoStaffCustomer SupportNovember 12, 2020 at 2:42 pm #1529007vasu
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.November 12, 2020 at 4:41 pm #1529073LeoStaffCustomer Support
I’m not seeing the button you are referring to.
Can you provide a screenshot?
- You must be logged in to reply to this topic.