Comments.php Problem
-
Hi
I have problem with comments.php file. The problem is that I can’t make my own style ??
so here’s comment style that I want:<h4 class="m-t-lg m-b">4 Comments</h4> <section class="comment-list block"> <article id="comment-id-1" class="comment-item"> <a class="pull-left thumb-sm"> <img alt="Avatar" src="images/a0.png" class="img-circle"> </a> <section class="comment-body m-b"> <header> <a href="#"><strong>Lord Artimos</strong></a> <label class="label bg-info m-l-xs">Admin</label> <span class="text-muted text-xs block m-t-xs"> 25min ago </span> </header> <div class="m-t-sm">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus aliquam velit ornare ante finibus, id lobortis ligula semper. Sed nec tincidunt nunc.</div> </section> </article> </section> <h4 class="m-t-lg m-b">Leave a comment</h4> <form> <div class="form-group pull-in clearfix"> <div class="col-sm-6"> <label>Name:</label> <input type="text" class="form-control" placeholder="Name"> </div> <div class="col-sm-6"> <label >Email:</label> <input type="email" class="form-control" placeholder="Email"> </div> </div> <div class="form-group"> <label>Comment:</label> <textarea class="form-control" rows="5" placeholder="Write your comment"></textarea> </div> <div class="form-group"> <button type="submit" class="btn btn-success">Post Comment</button> </div> </form>
Now I don’t know how to make these on comments.php file also I tried to copy other comments.php file with their style but again I can’t find out how does it work and I can’t use this code:
<?php if ( is_user_logged_in() ) : ?> <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Logout from this account">Logout ?</a></p> <?php else : ?>
And when I delete this part, the comments won’t work anymore.
….. Plz help me
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Comments.php Problem’ is closed to new replies.