Hey i have created an Author Box on a page where i want to have all my author’s lined up.
Is it possible to change the layout of the author box module? i want it to look like Block 6 for example. so i will get the author picture, a preview of the text. how can i do this?
Hi,
You can make something similar editing the author box widget http://screencast.com/t/pzHlnhCTbH5T
You have to add this code to get the description of the authors
$buffy .= '<div class="vcard author"><span class="fn">';
$buffy .= get_the_author_meta('description', $author_id);
$buffy .= '</span></div>';
http://screencast.com/t/aHFRz3yAzL12
Also you have to make some CSS changes.
.td_top_authors img {
height: 100px !important;
max-width: 100px !important;
width: 100px !important;
}
.td_top_authors .item-details {
margin-left: 122px !important;
}
Hope this help!
Thanks!
Hey Marius, thanks again for your quick response. but with this code, the authors will only get 1 author meta information, and that is from the first author. the descriptions need to be from each author how can i do this ?
Hi,
Use this code instead of above:
$buffy .= '<div class="vcard author"><span class="fn">';
$buffy .= get_the_author_meta('description', $td_author->ID);
$buffy .= '</span></div>';
and this CSS:
.td_top_authors img {
height: 100px !important;
max-width: 100px !important;
width: 100px !important;
}
.td_top_authors .item-details {
margin-left: 122px !important;
}
.td_top_authors .item-details {
height: auto !important;
}
div.vcard .fn {
color: #444444 !important;
}
Hey again Marius.
I know it is alot to ask for but instead of showing the whole biography/description, could it show only a preview of it on the authors page and then the full description when you go to the author page?
It would be so awsome to have this feature and again. thanks for your brilliant help and work.
Hey,
I’m having a similar issue but not getting a reply so I hope you don’t mind I jump in here.
I have a page to display all the authors with the Author Box widget.
I want the widget to display the same as under a single post or on a single author page, full information including image, social media buttons etc.
In what files can I find the codes and which part to copy ?
Hi,
@dillermand16 use this instead of the above code.
$buffy .= '<div class="vcard author"><span class="fn">';
$buffy .= td_util::excerpt(get_the_author_meta('description', $td_author->ID), 10);
$buffy .= '</span></div>';
Now is set to 10 words, you can change the value like you want.
@NadiaP7406 You have above all the necessary code to make it. If you don’t manage it you can always get a freelancer from sites like: http://www.microlancer.com/
Also, we don’t offer custom work, please send us an email at contact@tagdiv.com and we will give you the money back.
Thanks!