• Resolved igendreau

    (@igendreau)


    I am using the Diary theme by Site5. I have two issues:

    1. On my front page (which is recent posts, not static page), everything looks great, but if you visit one of my other pages, there is a space between the graphics at the top of the page. How do I remove it? (see: http://rabidrunners.com/?page_id=2 )

    2. My theme currently doesn’t have the author listed with each post. At the top of each post, it lists the post date, post category and number of comments. I have all my authors setup, and now I’d like to add the author name to that top line of information. How do I do that? (see: http://www.rabidrunners.com )

Viewing 3 replies - 1 through 3 (of 3 total)
  • Zoe

    (@aquickstudy)

    Hi there,

    1. The gap is caused by a bottom margin on the header div in your css. You’ll want to override it in a child theme or using a CSS plugin. Here’s what you have now (just the bit that’s causing the gap):

    .post header, .page header {
    margin-bottom: 20px;
    }

    However, that also impacts other parts of the page, so you’ll want to use this to override it:

    #page-header {
    margin-bottom: 0;
    }

    2. You’ll want to create a child theme and add <?php get_the_author_link(); ?> or <?php $author = get_the_author(); ?> (depending on whether you want it linked or not) into a the post content block. I’m not familiar with the particular theme you’re using to be able to tell you exactly which file.

    Thread Starter igendreau

    (@igendreau)

    Thanks so much!

    Solutions was just as you said:

    1. Create a child theme, and just add Zoe’s code above to overwrite the page gap.
    2. Copy over index.php to my new child theme and add in the author link as mentioned above.

    Worked like a charm!

    Zoe

    (@aquickstudy)

    You’re welcome! You may need to add the author link in other theme files, though. Potentially single.php, and if you have any archive.php / category.php / tag.php type files.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Author and Remove Space’ is closed to new replies.