[Resolved] Adding No Pin Tag to Author Box Image

Home Forums Support [Resolved] Adding No Pin Tag to Author Box Image

Home Forums Support Adding No Pin Tag to Author Box Image

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1527369
    vasu

    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.

    #1527518
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question?

    You can use the private information field.

    Let me know 🙂

    #1528531
    vasu

    Sure. I have provided below.

    #1528671
    Leo
    Staff
    Customer Support

    What is the code you are using for the author box?

    #1528690
    vasu
    <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>
    #1528699
    Leo
    Staff
    Customer 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.

    #1528842
    vasu

    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.

    #1528988
    Leo
    Staff
    Customer Support

    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?

    #1529007
    vasu

    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.

    #1529073
    Leo
    Staff
    Customer Support

    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

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