Customizing the look of Author box in WordPress with CSS


Some readers has asked the solution how to the appearance of author box in WordPress. One of them has tried the method we wrote to customize blockquote in WordPress.

Basically, the principle is same: adding or modifying the existing CSS code in the style.css file of your current theme.Customizing the look of Author box in WordPress The reason why one person failed to customize it is, in his theme, the author box design was not defined in CSS style sheet. So, he added the CSS with name Author box.

The main problem in his case was, there was a separate file (visible in theme editor) which was named author-info.php. So, his customization was not applied. So, take care of this thing. Re-naming it as author-info instead of Author box in the stylesheet solved the problem.

So, your first work is to find out where is the code that is defining your author box in style.css file of your current theme. Searching with author (after copy pasting the code in Notepad) should normally find it. If you do not find it, examine your theme for the corresponding name of the php file. You must name accordingly.

To get something like my Author box, you have to add (or modify) the code to like this :

 

.author-box
{
-color:#e3e3e3;
background-:url(images/blockquote.png);
background-repeat:no-repeat;
background-position:top right;
font-family:Georgia;
font-size:14px;
font-weight:400;
color:#000;
text-:#fff 0 1px 1px;
overflow:hidden;
border-color:#eee;
border-style:solid;
border-width:5px;
margin:0 0 30px;
padding:10px 60px 10px 10px;
}
.author-box img
{
background:#FFF;
float:left;
border:1px solid #EAEDEF;
margin:0 10px 0 0;
padding:4px;
}

 

Explanation

 

Firstly read this post to understand the meaning of the above codes.


.author-box defines how the box will look.

.author-box img defines the look of the Gravatar inside your author box. If you do not want customize Gravatar, just omit the code.

background-image defines the position of our logo (the Lotus), if you do not want to , omit this line.

 

Examples

 

Author box plain with 1px border:

 

Lorem Ipsum is simply dummy text of the printing and typesetting industry

 

Border color has been made black (#000000), 1 px wide. Others has been deleted.

 

Author box any border:

 

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

 

Border has been deleted.

 

Author box without any border and rounded corners:

 

Mauris eleifend felis et turpis tempor porttitor. Aliquam ullamcorper tellus id metus aliquam laoreet.

 

Border has been made of same color that of background, it has been rounded using CSS. Follow this tutorial to create borders rounded. If we make the border of different color, you will understand it:

 

Curabitur vel ante augue, sed gravida mauris. Duis pellentesque blandit neque sit amet luctus.

 

About the border of author image

 

If you do not want any border, simply set it to none. If you want to make one side (usually the lower) thick, mention border as 2px 2px 7px 2px (this is just an example).

 

Dotted border

 

Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;

 

Just, we have used border: 1px dotted #000;

 

Signature


If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave Lame Behind - Get Engaged

Here’s what we’ve got for you:

Contact Us Today for Smarter Marketing of Knowledge

See each of the premium resources below:

For Publishers and Content Owners

Do you want to optimize your available content?

Do you want to increase the visibility of your content?

Do you want to increase your reliability as an Author?

Do you want your next or existing project to be technically planned?

If your answer to any of these is YES contact us with your approximate budget.

Contact Us Today

For the Media Companies and Advertisers

You must be seeking a publisher website like ours with real content to give an exposure to your client's business?

We provide Industry's Standard opportunities for advertisement.

Do you want some promotion that comes with proper invoicing, SLA on per annum basis?

If your answer is YES contact us today for a quote.

Contact Us Today for Quote

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>