mchristine
Member
Posted 4 months ago #
I'm managing a blog that uses the Chunk theme. It's a multi-author blog, so we wanted to have the authors' names appear next to their posts on the home page of the blog (right now they only show up when you click through to individual posts). I know very very little about CSS, and though I've been combing lots of different forums and WordPress tutorials, I haven't found a successful way to get this done. Could anyone help?
maucantara
Member
Posted 3 months ago #
Same problem here. I've searched on the code where I could change this issue, but couldn't find it...
assuming you are referring to a selfhosted site using the 'chunk' theme (while the original poster is obviously referring to a wordpress.com site),
you could edit content.php and add a line before this one:
<span class="cat-links"><?php the_category( ', ' ); ?></span>
for instance something like:
<span class="author-link cat-links">by <?php the_author(); ?></span>
mchristine
Member
Posted 3 months ago #
Thanks so much! This bit of code did exactly what I wanted. The only thing now is that when you click through to the individual post, the author name appears twice. Any idea how to address that?
maucantara
Member
Posted 3 months ago #
I've solved this differently.
On "content.php" i've deleted the following line:
<?php if ( is_single() && ! is_page() ) : ?>
and also the <?php endif; ?> after <!-- .byline -->
worked great, without having to insert any new code.
mchristine
Member
Posted 3 months ago #
Oh perfect! Thanks so much guys, this was really helpful.