• My comments form appears below pages I’ve created (e.g. “Contact” and “Music Archives”) but not under my posts… I’d like the form to be below posts as well… right now it just has a “0 posts” link that takes you to the exact same page but with the form this time… I’ve been making this blog myself by winging it and am a newb, but this is the last little thing before it’s complete…

    Any help is appreciated!

    https://www.sonamedia.us/blog/

Viewing 5 replies - 1 through 5 (of 5 total)
  • When you write or edit a post you can allow comments near the bottom of same page. Then comments form will show up.

    Thread Starter sonamedia

    (@sonamedia)

    Thanks for the response… I just checked and comments are allowed on all my posts… Does it have something to do with the code in comments.php? Right now the form only appears below “pages”, but not any of my posts.

    https://www.sonamedia.us/blog/

    comments.php:

    <?php if ( !empty($post->post_password) && $_COOKIE[‘wp-postpass_’ . COOKIEHASH] != $post->post_password) : ?>
    <p><?php _e(‘Enter your password to view comments.’); ?></p>
    <?php return; endif; ?>

    <?php if ( comments_open() ) : ?>
    <?php else : // If there are no comments yet ?>
    <?php endif; ?>
    <?php if ( comments_open() ) : ?>

    “>Leave a comment
    <?php endif; ?>


    <?php if ( $comments ) : ?>

    <?php foreach ($comments as $comment) : ?>
    <div class=”commentBox”>
    <?php comment_text() ?>

    <i><?php comment_type(__(‘Comment’), __(‘Trackback’), __(‘Pingback’)); ?> <?php _e(‘by’); ?> <?php comment_author_link() ?>
    <?php comment_date(‘m.d.y’) ?> @ “><?php comment_time() ?> <?php edit_comment_link(__(“Edit This”), ‘ |’); ?></i>
    </div>

    <?php endforeach; ?>

    <?php else : // If there are no comments yet ?>

    <?php endif; ?>

    <div class=”ac”><?php comments_rss_link(__(‘<abbr title=”Really Simple Syndication”>RSS</abbr> feed for comments on this post.’)); ?>
    <?php if ( pings_open() ) : ?>
    ” rel=”trackback”><?php _e(‘TrackBack <abbr title=”Uniform Resource Identifier”>URI</abbr>’); ?>
    <?php endif; ?>
    </div>


    <?php if ( comments_open() ) : ?>
    <b><?php _e(‘Leave a comment’); ?></b>

    <form action=”<?php echo get_settings(‘siteurl’); ?>/wp-comments-post.php” method=”post” id=”commentform”>

    <p>
    <input type=”text” name=”author” id=”author” class=”textarea” value=”<?php echo $comment_author; ?>” size=”25″ tabindex=”1″ />
    <label for=”author”><?php _e(‘Name’); ?></label> <?php if ($req) _e(‘(required)’); ?>
    <input type=”hidden” name=”comment_post_ID” value=”<?php echo $post->ID; ?>” />
    <input type=”hidden” name=”redirect_to” value=”<?php echo htmlspecialchars($_SERVER[‘REQUEST_URI’]); ?>” />
    </p>

    <p>
    <input type=”text” name=”email” id=”email” value=”<?php echo $comment_author_email; ?>” size=”25″ tabindex=”2″ />
    <label for=”email”><?php _e(‘E-mail’); ?></label> <?php if ($req) _e(‘(required)’); ?>
    </p>

    <p>
    <input type=”text” name=”url” id=”url” value=”<?php echo $comment_author_url; ?>” size=”25″ tabindex=”3″ />
    <label for=”url”><?php _e(‘<acronym title=”Uniform Resource Identifier”>URI</acronym>’); ?></label>
    </p>

    <p>
    <label for=”comment”><?php _e(‘Your Comment’); ?></label>

    <textarea name=”comment” id=”comment” cols=”50″ rows=”6″ tabindex=”4″></textarea>
    </p>

    <p>
    <input name=”submit” id=”submit” type=”submit” tabindex=”5″ value=”<?php _e(‘Say It!’); ?>” />
    </p>
    <?php do_action(‘comment_form’, $post->ID); ?>
    </form>

    <?php else : // Comments are closed ?>

    <?php endif; ?>

    The above code shows the comment form being called for posts also. Do you have a plugin interfering possibly?

    Thread Starter sonamedia

    (@sonamedia)

    Thanks for this help… I don’t think it’s a plugin though…

    Maybe something in style_css? Like I said in the original post, it’s displaying a “0 Comments” link at the bottom of each post… and when you click that it takes you to the top of the exact same page, but at the bottom this time is the comments form.

    /*
    Theme Name: Sona
    Author: Sona Media
    */

    #nav{
    background:#FFFFFF;
    font-size:1em;
    }
    #nav, #nav ul {
    list-style: none;
    line-height: 1;
    }
    #nav a, #nav a:hover {
    display: block;
    font-weight:normal;
    color: #FF0000;
    text-decoration: none;
    border:none;
    }
    #nav li {
    float: right;
    list-style:none;
    border-right:0px
    }
    #nav a, #nav a:visited {
    display:block;
    font-weight:bold;
    color: #888888;
    padding:6px 10px;
    }
    #nav a:hover, #nav a:active, .current_page_item a, #home .on {
    background:#none;
    font-weight:bold;
    color: #FF0000;
    text-decoration:none
    }
    #nav li ul {
    position: absolute;
    left: -999em;
    height: auto;
    width: 100px;
    border-bottom: none;
    }
    #nav li li {
    width: 153px;
    border-top: 0px solid #FFFFFF;
    border-right: 0px solid #FFFFFF;
    border-left: 0px solid #FFFFFF;
    background: #FFFFFF;
    }
    #nav li li a, #nav li li a:visited {
    font-weight:normal;
    font-size:0.95em;
    color:#666666;
    }
    #nav li li a:hover, #nav li li a:active {
    background: #DDDDDD;
    font-weight:normal;
    color: #FF0000;
    }
    #nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul {
    color: #FF0000;
    left: auto;
    }
    a.main:hover {
    background: none;
    }
    #navCatTabs ul li {
    padding-right: 5em;
    }

    body {
    background: #111111;
    font-family: Verdana, Tahoma, sans-serif;
    text-align: Left;
    color:#333;
    font-size: 8pt;
    padding: 0px;
    margin:-11px;
    }

    .cite {
    font-size: 7pt;
    }

    code {
    font-family: Courier New, Verdana;
    text-align:left;
    color:#666;
    font-size: 8pt;
    }

    #wrapper {
    width: 600px;
    margin: 0 auto;
    background-image: url(‘images/pg-bg.gif’);
    background-position: center;
    background-repeat: repeat-y;
    }

    .left {
    float: left;
    margin: 0px 10px 0px 10px;
    }

    .right {
    float: right;
    margin: 0px 10px 0px 10px;
    }

    #masthead {
    background-image: url(images/top.gif);
    background-position: top;
    background-repeat: no-repeat;
    width: 600px;
    height: 185px;
    margin: 0;
    }

    .centeredImage {
    text-align:center;
    margin-bottom:0px;
    padding:0px;

    }

    #insideWrapper {
    width: 500px;
    margin: 0 auto;
    text-align: right;
    }

    #footer {
    font-size: 7pt;
    width: 600px;
    height: 80px;
    margin-top: 20px;
    text-align: center;
    background-image: url(‘images/bottom.jpg’);
    background-position: bottom;
    background-repeat: no-repeat;
    }

    #navbar {
    background: url(‘images/navbar.jpg’);
    background-position: center;
    background-repeat: repeat-x;
    width: 550px;
    height: 27px;
    margin: 10px 0 10px 15px;
    padding: 20px 10px 10px 10px;
    font-family: Georgia, serif;
    font-weight: Bold;
    color: #000000;
    font-size: 14px;

    }

    #navbar a {
    color:#000;
    font-weight:bold;
    text-decoration:none;
    }

    #navbar a:visited {
    color: #000000;
    text-decoration: none;
    }

    #navbar a:hover {
    color: #FF0000;
    text-decoration: none;
    }

    .sep {
    position: relative;
    background: url(‘images/sep.gif’);
    width: 600px;
    height: 14px;
    margin: 2px;
    padding: 0px;
    right: 89px;
    text-align: center;
    }

    .commentPos {
    position: relative;
    margin: 0px;
    padding: 0px;
    text-align: center;
    }

    .post {
    width: 425px;
    margin: auto;
    text-align: left;
    font-size: 11px;
    line-height: 140%;

    }

    .commentBox {
    width: 100%;
    background-color: #FFFFFF;
    text-align: left;
    border: 1px solid #999;
    padding: 5px;
    }
    input, textarea, submit {
    border: 1px solid #cccccc;
    background-color: #FFFFFF;
    color: #000;
    font-family: Verdana, Geneva, Tahoma, Trebuchet MS, Arial, Sans-serif;
    font-size: 8px;
    margin-bottom: 3px;
    }

    h2 {
    color: #666;
    font-size: 14px;
    text-align: left;
    }

    blockquote, blockquote p {
    text-indent: 0px;
    margin-bottom: 7px;
    color: #999;
    }

    .nav {
    color: #666;
    }

    a.nav {
    color: #666;
    }

    a.nav:visited {
    color: #666;
    }

    a.nav:hover {
    color: #999;
    }

    .footerLink {
    color: #666;
    text-decoration: underline;
    }

    a.footerLink {
    color: #666;
    text-decoration: underline;
    }

    a.footerLink:visited {
    color: #666;
    text-decoration: underline;
    }

    a.footerLink:hover {
    color: #999;
    text-decoration: underline;
    }

    .title {
    font-family: Georgia, “Book Antiqua”, “Souvenir Lt BT”, “Times New Roman”, serif;
    font-weight: bold;
    color: #666666;
    font-size: 14px;
    }

    a.title {
    color: #666;
    }

    a.title:visited {
    color: #666;
    }

    a.title:hover {
    color: #FF0000;
    }

    a {
    color: #FF0000;
    text-decoration: none;

    }

    a:visited {
    color: #FF0000;
    text-decoration: none;
    }

    a:hover {
    color: #394651;
    text-decoration: none;
    }

    ul#sidebar {
    width: 500px;
    margin: 8px auto 0 auto;
    background: #FFFFFF;
    border-top: 1px solid #FFFFFF;
    border-bottom: 1px solid #FFFFFF;
    padding: 15px 0 25px 0;
    }

    ul#sidebar li {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
    }

    ul#sidebar li ul, ul#sidebar li ul li {
    margin: 0;
    padding: 0;
    list-style: disc;
    text-align: left;
    }

    #wrapper>#sidebar { padding: 15px 0 25px 0; } /* FF Specific */

    #sidebar_wrapper {
    width: 467px;
    margin: 15px 15px 15px 45px;
    padding: 0 0 -20px 20px;
    }

    #sidebar>#sidebar_wrapper { margin-top: 0; } /* FF Specific */

    #sidebar li h2 {
    margin: 0;
    font-family: Georgia,serif;
    color: #000000;
    font-weight: bold;
    font-size: 1.3em;
    width: 140px;
    }

    ul#sidebar li {
    width: 150px;
    float: left;
    margin: 0 0 15px 0;
    padding: 0;
    }

    ul#sidebar li ul {
    width: 135px;
    padding: 5px 0 15px 10px;
    }

    ul#sidebar li ul li { width: 130px; }

    .ar { /*This way you can use a simple

    class=”ar”/”al”/”ac” to get an objet floated or centered.*/
    float: right;
    }
    .al {
    float: left
    }
    .ac {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    }

    Hello,
    I have two problems I can’t find an answer to. When a user posts a comment on a post to a post in my blog, their user name and email address shows up in the form when the next user attempts to post a comment.

    Also, the type is always uppercase, so if people hit the shift key to uppercase a letter, it shows up in the final post as a lowercase letter.

    I’ve tried everything I can think of to fix these problems but no luck. Any ideas?

    Mike WJ

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Help: My Comments Form.’ is closed to new replies.