Feeds

Post Questions

PerformancingAds
Submitted by grayingtech on March 21, 2007 - 5:29pm in

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'); ?>&nbsp;<?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

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <h2> <h3> <h4> <img> <div> <a> <em> <strong> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <span> <table> <td> <tr> <caption> <th> <hr> <pre> <br> <p> <object> <param> <embed> <strike>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 12 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.