Support » Themes and Templates » 2011 space between entry-content and entry-meta

  • 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?

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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

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

    Regards,
    Bas

    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

    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

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

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

    Cheers

    PAE

    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: ',', '); ?>

    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘2011 space between entry-content and entry-meta’ is closed to new replies.