WordPress.org

Ready to get started?Download WordPress

Forums

2011 space between entry-content and entry-meta (8 posts)

  1. bvo
    Member
    Posted 3 years ago #

    Hi,
    I'm creating a child thema for 2011 and have 2 questions:
    1) I like the posts (summary on home page and single page) in a different color then the rest of my website. I changed the background color of entry-header, entry-content and entry-meta since that are the classes within the article id. However, for some reason there is a gap between entry-content and entry-meta (showing the color of the rest of the website). I can't find a margin of padding that causes this. Any ideas?

    2) In one of the posts I hav many tags. For some reason these tags continue ons the second line outside of the website and even outside of the screen (I have to use a scroll bar to see it). Is there a tag limit? Can I (automatically) ajust the hight of the entry-meta so all tags fit in?

  2. peredur
    Member
    Posted 3 years ago #

    Link? It's really hard to comment if we can't see what's happening. So it at all possible, a link would be good.

    If you can't provide a link, all I can suggest is that you play around with Firebug until until you find what you need. That's what I'd be doing if you posted a link.

    Cheers

    PAE

  3. bvo
    Member
    Posted 3 years ago #

    Thanks for your reply, here is the link to the site

    Regards,
    Bas

  4. peredur
    Member
    Posted 3 years ago #

    The gap between the post and the meta is caused by the bottom margin of the paragraph containing the More link.

    So you need to change the background colour for the <article> element that lays behind it. The current rule is:

    article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
      background: none repeat scroll 0 0 #FFFFFF;
    }

    I don't know whether you need the other stuff apart from article. I'd be tempted to start with the following rule at the bottom of my child theme stylesheet:

    article {
      background: none repeat scroll 0 0 #F2F2F2;
    }

    You can always add the others later if you need them.

    If you want to get rid of the vertical space itself (rather then just recolour it) then I think you have a problem because it's part of the output from the_content().

    HTH

    PAE

  5. bvo
    Member
    Posted 3 years ago #

    thank you pae. that does the trick.
    do you, by any change, also know how to solve my tag's problem (it's the 9th post on my site)

    Regards,
    Bas

  6. peredur
    Member
    Posted 3 years ago #

    Not offhand. It's just listing the tags associated with the post.

    I'll try to look at it later, though.

    Cheers

    PAE

  7. Caroline Moore
    Member
    Posted 3 years ago #

    Couple things to try:

    Add word-break: break-word to your .entry-meta class in style.css. This will force long words to break to fit within the div.

    Alternatively, change the separator between your tags to include a space; look for the the_tags function in index.php, and change to something like:

    <?php the_tags('Tags: ',', '); ?>

  8. bvo
    Member
    Posted 2 years ago #

    Sixhour, thanks for your reply. Sadly neither did work for me :( The tags are calles with $tags_list and the seperator with $show_sep: true. Edditing this line didn't work, I don't know where or how to edit the $show_sep variable (?).

    Regards,
    Bas

Topic Closed

This topic has been closed to new replies.

About this Topic