Author Box in Posts

Posted in: Newspaper
Post count: 4

Hello again, i changed the code but i want the show user role like “Editor” in the description section, not this: http://i.hizliresim.com/NkQXrk.jpg , like this http://i.hizliresim.com/kEPQnv.jpg . Can i do that?

And i want it author box in author page too.

Thank you.

Post count: 22421

Hi,

If you want to change the description and replace it with the usert role you have to edit thew theme files a bit. Please use this code:

 $user_info = get_userdata($author_id);
            $user_capability = $user_info->roles[0];

            $buffy .= '<div class="td-author-description">';
            $buffy .=  $user_capability;
            $buffy .= '</div>';

And place it like so replacing the standard theme code: http://screencast.com/t/kxvfQDFwwuL
Basicaly you have to add 2 lines of code and replace 1 line from the current theme code: http://screencast.com/t/Q4dq0GWXEJz

Thank you!

Post count: 4

Thank you so much but i want one more thing, i want translate users role english to turkish but i didn’t found user role’s code in wordpress files. can you help me to find them?

Post count: 4

and i want the make author box more smaller like this : http://i.hizliresim.com/oE1AWb.jpg

Post count: 22421

Hello,

Unfortunately the user roles cannot be translated as they come from the wordpress code and that is part of the wordpress core, not a setting you can translate.
As for the author box you will have to use css to customize it with css and you have to change the thumbnail size from the theme code. http://screencast.com/t/fridP1nTsu3i
Unfortunately we cannot do it for you as we do not have a customizxatiopn department. We try to help out where we can but we cannot fulfill every customization request. Sorry

Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.