• Resolved applescruff

    (@applescruff)


    First, I want to apologize as I’m sure this has been asked before, but I couldn’t seem to find my specific issues searching the forums and WP site. However it’s very late and I haven’t slept trying to figure this out so I may have just missed it in my weary state.

    I’m new to WordPress so I don’t exactly know what I’m doing and yet I’ve decided to create a theme/template/whatever-you-want-to-call-it that matches my current static site. Surprisingly, I managed to do that and you can see the results here. The WP bit doesn’t look exactly how I would like it, but just getting it to work properly is all I really care about right now (although if you can point me in the direction of tutorials or articles on how to style the loop, that would be great).

    I have two issues. The first is the lack of spacing between the posts – how can I get it so that the posts shown in the loop aren’t just sitting on top of each other? I’ve taken the loop from the default theme if that’s relevant. The second issue is the comments; they don’t show up. All the other links (ie. category, edit, title, etc.) work, but when I click on the comments link, nothing happens. What am I missing? Do I need a comments.php file for it to work or something?

    Any help would be greatly appreciated as I would like to get some sleep and I just can’t seem to do that knowing that I’m so close to getting this done and yet so far. Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The first is the lack of spacing between the posts

    Use CSS to give each post a decent bottom margin or padding.

    Do I need a comments.php file for it to work or something?

    Yes.

    Thread Starter applescruff

    (@applescruff)

    esmi,

    Thanks for the reply. The comments work now (yay!), but I still can’t get the styling for the loop/posts to work. I’ve changed every possible bit of the CSS that might alter the look, but it never changes. Anyone have any ideas on why that might be? I’ve tried adding divs (though admittedly I’m not sure I’ve put them in the loop right – I’m not very familiar with PHP) and modifying existing ones, nothing works.

    If anyone has any ideas on how to space things out in the loop and the single post view, please enlighten me. I’ve never had CSS behave or not behave like this before. Thanks again!

    @applescruff, use .post { margin-top: 15px; margin-bottom: 25px; } in your main CSS file as a start, you can change it to your liking. I’ve just checked with Chrome’s Inspect Element and it works.

    Thread Starter applescruff

    (@applescruff)

    pixel-Jay,

    Thanks for the tip! I did what you said and it didn’t immediately work right away, but after playing around in the CSS I finally got things going.

    My issue was that I was just tacking the styling onto the end of my CSS sheet and I needed to put it in the same area as some of the related classes (ie. if the entry div was inside the post div, I needed to put the styling for the .entry under the styling for the .post). I never really thought it made that much of a difference, but I guess in this case it did. I mention this in case there are others who might have the same problem since none of the other solutions I found in my searches worked.

    As always with coding, it was one tiny seemingly insignificant detail that caused several days of frustration!

    Thanks for all the help, though. It got me pointed in the right direction to figuring out my problems. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Theme/Template Help’ is closed to new replies.