I'm using NightLife as the basis of my theme for GrayingTech.com, a technology news site for the baby-boomer generation. How can I add an option to the "About this Post" bar enabling me to edit the post without returning to the admin screen?
Also, I added posts from Drupal via cut-n-paste and a couple posts (like this one) starts on the same line as the title. I've tried adding a but that seems to have no effect. Why would some posts display correctly, while others are off by one character?
Thanks,
Ed













Answer
Find this code inside the postinfo.php file:
<a href="javascript:window.print()">Print This Article</a> | <?php comments_popup_link('Leave a Comment'); ?><br />Make it look like this:
<a href="javascript:window.print()">Print This Article</a> | <?php comments_popup_link('Leave a Comment'); ?> <?php edit_post_link('(Edit)', '', ''); ?><br />Answer
In the style.css file, find this:
.contenttitle {
float: left;
width: 500px;
margin: 0px;
padding: 0px 0px 0px 10px;
}
Increase the width by a pixel or two and see if that helps.
Answers
Thanks for the answers, Brian. Regarding the out-of-line character problem, I found (and this doesn't make sense, I know) posts that were written in WP instead of imported from TextEdit displayed fine. I'll try the style.css solution.
Answer
The reason behind the character issue only occurs when the beginning of a post is 1 or 2 characters, since the post title is actually floated. Which means if you change the first word on posts you are experiencing this issue to something longer than 1 or 2 characters, this issue will not occur. Does that make sense?
Makes Sense
The one-or-two character issue makes perfect sense. Replacing "A" with "The" in the posts corrected it.
Post new comment