- This topic has 8 replies, 3 voices, and was last updated 3 years, 7 months ago by Leo.
-
AuthorPosts
-
August 25, 2020 at 8:01 am #1417613Rohan Verma
I’m using the below hook element but it doesn’t show author archive URL at the end of the bio “Read More”.
Can you tell me what’s wrong with this code or is there anything else causing the issue?
<div class="author-box"> <div class="avatar"> <?php echo get_avatar( get_the_author_meta( 'ID' ), 250 ); ?> </div> <div class="author-info"> <h5 class="author-title" itemprop="author" itemscope itemtype="http://schema.org/Person"> <span itemprop="name"><?php printf( get_the_author_meta( 'display_name') );?></span> </h5> <div class="author-summary"> <p class="author-description"><?php echo wp_kses( get_the_author_meta( 'description' ), null ); ?></p></div> <!-- <div class="author-links"> <a>" title="Read more"> ... </a> </div> --> </div> </div>
August 25, 2020 at 8:02 am #1417614Rohan Verma<div class="author-box"> <div class="avatar"> <?php echo get_avatar( get_the_author_meta( 'ID' ), 250 ); ?> </div> <div class="author-info"> <h5 class="author-title" itemprop="author" itemscope itemtype="http://schema.org/Person"> <span itemprop="name"><?php printf( get_the_author_meta( 'display_name') );?></span> </h5> <div class="author-summary"> <p class="author-description"><?php echo wp_kses( get_the_author_meta( 'description' ), null ); ?></p></div> <!-- <div class="author-links"> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), ); ?>" title="Read more"> ... </a> </div> --> </div> </div>
August 25, 2020 at 8:47 am #1417685LeoStaffCustomer SupportHi there,
Looks like you’ve commented out the author links with this?
<!--
and-->
:
https://www.w3schools.com/tags/tag_comment.aspAugust 25, 2020 at 12:41 pm #1417993Rohan VermaThanks. Now, I have removed both the
<!--
and-->
But how to replace the three-dot icon with Read More Posts text?
August 25, 2020 at 2:50 pm #1418103TomLead DeveloperLead DeveloperHi there,
You should be able to simply replace
...
in the code withRead More Posts
.Let us know ๐
August 26, 2020 at 10:05 am #1419331Rohan VermaHi, Tom.
The font size is big enough and overlapping the bio description.
Check the screenshot: https://prnt.sc/u6cqn7
August 26, 2020 at 11:54 am #1419483LeoStaffCustomer SupportThe negative margin-top in this CSS is causing the issue:
.author-links a { margin-top: -1.5em; font-size: 2em; line-height: 2em; float: left; }
August 27, 2020 at 8:19 am #1420655Rohan VermaThanks for the excellent support.
August 27, 2020 at 8:27 am #1420674LeoStaffCustomer SupportNo problem ๐
-
AuthorPosts
- You must be logged in to reply to this topic.