WordPress.org

Ready to get started?Download WordPress

Forums

Add Comment Link Missing (2 posts)

  1. Ryguy3499
    Member
    Posted 5 years ago #

    Hi There,

    I need some help, I have looked everywhere and I cannot figure out how to add the leave a comment link to my blog. http://ryanmalfara.com

    I have searched the forum, yet cannot find an easy explanation. Can you please help me.

  2. Roy
    Member
    Posted 5 years ago #

    <?php comments_popup_link(__('Comment'), __('1 Comment'), __('% Comments')); ?>
    This goes in the index.php of your theme.

    <?php comments_template(); ?>
    This in your single.php.

    /* Comments */
    
    #comments {
    	margin:0 2em;
    }
    
    .commentlist {
    	margin:0;
    	padding:0;
    	list-style:none;
    }
    
    .commentlist li {
    	padding:2em 0;
    	overflow:auto;
    	border-bottom:0.1em solid #DEC8A6;
    }
    
    .commentlist p {
    	margin:0.5em 0;
    	font-size:1.1em;
    }
    
    .commentlist p a {
    	border-bottom:1px solid #ddd;
    }
    .commentlist p a:hover {
    	border-bottom:1px solid #157;
    	text-decoration:none;
    }
    
    .commentlist h4 {
    	margin:0;
    }
    
    textarea#comment {
    	font-size:1.2em;
    	width:100%;
    }
    
    .commentlist img.avatar {
    	align: left; margin: 0 0 0 0px; padding: 0px; border:0px solid #eee;
    }
    /* Comment ends */

    In the stylesheet.

    Of course that's all just how it's in my theme, but just to give you an idea. Also you can compare your theme to the default WP theme.

    Be sure to under "settings" "discussion" you allow people to leave comments.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags