restlessness
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Thumbnail Image for Posts is either Cropped or ResizedThanks a lot for your speedy reply. Regarding the specified width and height, where do I find them? There’s nothing in the CSS that specifies the image size with a height of 190.
I already changed the width and height in the settings, but I unchecked the box that says “crop thumbnails to exact dimensions. The problem is still the same..
- This reply was modified 8 years, 6 months ago by restlessness.
Forum: Themes and Templates
In reply to: Adding a "Reply" button to commentsOkay, so I’ve copied the entire comments.php file from the Twenty Fourteen theme and replaced it with my current (The Go Green) Theme – I tested it, and it worked! Thank you SO much!
Right now the comments appear to be jumbled over each other and they lack proper padding/margins, so I how do I fix that and edit it them the way I did my previous comments file?
Forum: Themes and Templates
In reply to: Adding a "Reply" button to commentsMy current theme is “The Go Green Theme”, and some of the other installed themes are “Twenty Thirteen” and “Twenty Fourteen”.
Forum: Themes and Templates
In reply to: Adding a "Reply" button to commentsI’m a bit confused here…I’ve read about calling wp_list_comments(), and I’ve looked into all the themes I have – but they all operate with the foreach loop.
If it’s not a lot of trouble, can you add that snippet into the code I posted and then re-posted? Thank you so much in advance!
Forum: Themes and Templates
In reply to: Adding a "Reply" button to commentsI added it but nothing happens. Here’s the entire “comments.php” code:
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
<?php // Do not delete these lines if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!'); if (!empty($post->post_password)) { // if there's a password if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie ?> <p class="nocomments">This post is password protected. Enter the password to view comments.</p> <?php return; } } /* This variable is for alternating comment background */ $oddcomment = 'class="alt" '; ?> <!-- You can start editing here. --> <?php if ($comments) : ?> <h3 id="comments"><?php comments_number('No Comments Yet', 'One Comment', '% Comments' );?></h3> <div class="commentbox"> <?php foreach ($comments as $comment) : ?> <h3 id="commenter"><b><?php comment_author_link() ?></b> | <?php comment_date('F jS, Y') ?> at <?php comment_time() ?></h3> <?php if ($comment->comment_approved == '0') : ?> <em>Your comment is awaiting moderation.</em> <?php endif; ?> <div id="commenttext"><?php comment_text() ?> <div id="reply"><?php comment_reply_link() ?></div> </div> <?php /* Changes every other comment to a different class */ $oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : ''; ?> <?php endforeach; /* end for each comment */ ?> </div> <?php else : // this is displayed if there are no comments so far ?> <?php if ('open' == $post->comment_status) : ?> <!-- If comments are open, but there are no comments. --> <?php else : // comments are closed ?> <!-- If comments are closed. --> <p class="nocomments">Comments are closed.</p> <?php endif; ?> <?php endif; ?> <?php if ('open' == $post->comment_status) : ?> <h3 id="comments">Leave a Reply</h3> <div class="commentbox"> <?php if ( get_option('comment_registration') && !$user_ID ) : ?> <p>You must be <a>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p> <?php else : ?> <center> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <?php if ( $user_ID ) : ?> <p>Logged in as <a>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a>/wp-login.php?action=logout" title="Log out of this account">Logout ?</a></p> <?php else : ?> <p><label for="author">Name<?php if ($req) echo ""; ?> *</label> <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="56" tabindex="1" /></p> <p><label for="email">Email<?php if ($req) echo ""; ?> *</label> <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="56" tabindex="2" /></p> <p><label for="url">Website</label> <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="56" tabindex="3" /> </p> <?php endif; ?> <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>--> <p>Comment <textarea name="comment" id="comment" cols="100%" rows="8" tabindex="4"></textarea></p> <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit" /> <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> </p> <?php do_action('comment_form', $post->ID); ?> </form> </center> </div> <?php endif; // If registration required and not logged in ?> <?php endif; // if you delete this the sky will fall on your head ?>