WordPress.org

Ready to get started?Download WordPress

Forums

Editing "Submit Comment" (3 posts)

  1. Exoclyps
    Member
    Posted 3 years ago #

    Hello there!

    I'm Exoclyps and recently started to make my own blog. Haven't gotten far and got stuck at refining parts around the "Submit Comment" area.

    http://www.heartofphoto.com is the url.

    What I was trying to do is move the "Notify me of followup comments via e-mail" thingy to a better location.

    I did this buy trying to edit the "legacy.comments.php" file:

    <p style="padding:5px 0px 10px 0px;"><textarea name="comment" id="comment" style="width:97%;" rows="10" tabindex="4"></textarea></p>
    
    <?php if (function_exists('show_subscription_checkbox')) { ?>
    <p style="padding:5px 0px 10px 0px;"><?php show_subscription_checkbox(); ?></p>
    <?php } ?>
    
    <p style="padding:10px 0px 10px 0px;"><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" onmouseover="style.cursor='pointer'" />
    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    </p>
    <?php do_action('comment_form', $post->ID); ?>
    
    </form>

    to

    <p style="padding:5px 0px 10px 0px;"><textarea name="comment" id="comment" style="width:97%;" rows="10" tabindex="4"></textarea></p>
    
    <p style="padding:10px 0px 10px 0px;"><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" onmouseover="style.cursor='pointer'" />
    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    </p>
    <?php do_action('comment_form', $post->ID); ?>
    
    <?php if (function_exists('show_subscription_checkbox')) { ?>
    <p style="padding:5px 0px 10px 0px;"><?php show_subscription_checkbox(); ?></p>
    <?php } ?>
    
    </form>

    But there just won't display any difference on the page. What am I doing wrong?

    I even tried adding some random letters after the "form" without any change on the website.

  2. Tara
    Member
    Posted 3 years ago #

  3. alchymyth
    Forum Moderator
    Posted 3 years ago #

    as you may have found out by now, legacy.comments.php is not used by the theme to do the comment stuff.

    have a look into comments.php, and make your edits there.

    or try and rename comments.php to old.comments.php;
    and then rename legacy.comments.php to comments.php;
    that might work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.