Minor suggestions
-
Love this theme! My only problem was that some meta div’s were showing up blank when they were neccesary at all. Here are the changes I made, hopefully if the author ever feels the need to update this theme they can bake these changes in, as I see no reason why they wouldn’t benefit everyone.
On the index, post, and pages templates, I changed
<div class="post_meta"><?php comments_popup_link('No Comments', 'Comment (1)', 'Comments (%)'); ?></div>
to
<?php if ( comments_open() || get_comments_number() > 0 ) : ?><div class="post_meta"><?php comments_popup_link('No Comments', 'Comment (1)', 'Comments (%)'); ?></div><?php endif; ?>On the index and post templates, I changed
<div class="post_meta"><?php edit_post_link('Edit',''); ?></div>
to
<?php if ( current_user_can('edit_posts') ) : ?><div class="post_meta"><?php edit_post_link('Edit',''); ?></div><?php endif; ?>And finally, on the page template, I changed
On the index and post templates, I changed
<div class="post_meta"><?php edit_post_link('Edit',''); ?></div>
to
<?php if ( current_user_can('edit_pages') ) : ?><div class="post_meta"><?php edit_post_link('Edit',''); ?></div><?php endif; ?>
The topic ‘Minor suggestions’ is closed to new replies.