jimdougherty
asked 11 years ago

Photo in byline

I want to put an author-specific photo in the byline of my posts – is that doable?

1 Answers
DominicStaff
answered 11 years ago

you can open the content-single.php file . copy and remove the line 33 – 44 then paste this code under line 15.

Add the following code to the style.css file:

.single .author-info {
border: 1px solid #ddd;
margin-top: 10px;
padding: 20px;
min-height: 90px;
}

.single .author-avatar {
float: left;
}

.single .author-description {
margin-left: 110px;
}

.single .author-info h2 {
margin-top: 0;
font-size: 14px;
line-height: 20px;
text-shadow: 0 0 0 #000;
}

.single .author-info .description {
margin-bottom: 0;
}

.single .site-content > .post footer.entry-meta {
border: none;
padding: 0;
margin: 0;
}

Regards,
Dominic

jimdougherty
replied 11 years ago

Thanks Dominic,

jimdougherty
replied 11 years ago

With the provided code I get an error – would it be possible to post the code as text?

jimdougherty
replied 11 years ago

Also, does the provided code go into the header section under dashboard > theme options?

jimdougherty
replied 11 years ago

Parse error: syntax error, unexpected T_STRING in /home/content/55/8352855/html/wp-content/themes/dw-focus/content-single.php on line 24

jimdougherty
replied 11 years ago
Powered by DW Question & Answer Pro