• Resolved kalibahlu

    (@kalibahlu)


    Does anyone know if it’s possible to move the comment Reply link that appears under the author’s name of each comment? Ideally, I would like it to be on the same line as the author’s name, but aligned right, opposite the authors name. If anyone could point me in the right direction to learn how to do this, it would be much appreciated ?? Thank you in advance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter kalibahlu

    (@kalibahlu)

    the Reply link only shows up on the remote site, but not on my local MAMP server, even though they are identical in structure. Does anyone know what might be the factor that causes it show up or not show up? Thanks!

    Thread Starter kalibahlu

    (@kalibahlu)

    Still hoping to get an answer to the first question above, if anyone knows. (The second question was just a setting on the admin page)

    It’s easy enough to align the text to the right and style it in CSS, but I can’t find how to move it either up or down a line, to put it on the same line as either the author or the date. As it is, it’s on a line of it’s own, making 3 lines of text at the top of each comment, and I’d prefer to condense it to only 2.

    Thank you very much for your help in advance ??

    Thread Starter kalibahlu

    (@kalibahlu)

    I found the code, but I don’t know how to apply two separate styles within one set of <div> tags. All I really need to do is align the reply link to the right, and I’ll be happy. Could anyone help? Here’s the code:

    <div class="comment-author vcard">
          <?php printf(__('<cite class="fn">%s</cite>'),
          get_comment_author_link()) ?>
          <div class="reply">
            <?php comment_reply_link(array_merge( $args, array('depth'
            => $depth, 'max_depth' => $args['max_depth']))) ?>
          </div>
             </div>
    
     <div class="comment-meta commentmetadata">
            <a href="<?php echo htmlspecialchars( get_comment_link(
            $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at
            %2$s'), get_comment_date(),  get_comment_time()) ?></a>
            <?php edit_comment_link(__('(Edit)'),'  ','') ?>
          </div>

    I can move the Reply link on the same line with the date by doing this:

    <div class="comment-author vcard">
          <?php printf(__('<cite class="fn">%s</cite>'),
          get_comment_author_link()) ?>
             </div>
    
     <div class="comment-meta commentmetadata">
            <a href="<?php echo htmlspecialchars( get_comment_link(
            $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at
            %2$s'), get_comment_date(),  get_comment_time()) ?></a>
            <?php edit_comment_link(__('(Edit)'),'  ','') ?>
    
    <class="reply">
            <?php comment_reply_link(array_merge( $args, array('depth'
            => $depth, 'max_depth' => $args['max_depth']))) ?>
          </div>

    but then, of course, the “reply” class can’t be used because it’s inside the <div> tag with the class “comment-meta commentmetadata”. Could anyone tell me how I could align the Reply link to the right in this case? I tried applying the replay class like with <reply></reply>, but it didn’t have any effect.

    Thank you to anyone who will help!

    Thread Starter kalibahlu

    (@kalibahlu)

    Well, it was simple once I figured it out, but so is everything, I guess. I’m probably talking to myself, but just in case some poor soul like myself has the same question, the answer will be here:

    <div class="comment-author vcard">
           <?php printf(__('<cite class="fn">%s</cite>'),
           get_comment_author_link()) ?>
        </div>
    <span class="comment-meta commentmetadata">
            <a href="<?php echo htmlspecialchars( get_comment_link(
            $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at
            %2$s'), get_comment_date(),  get_comment_time()) ?></a>
            <?php edit_comment_link(__('(Edit)'),'  ','') ?>
         </span>
    <span class="reply alignright">
            <?php comment_reply_link(array_merge( $args, array('depth'
            => $depth, 'max_depth' => $args['max_depth']))) ?>
        </span>
    <div id="comment-<?php comment_ID(); ?>" class="comment-body">
          <?php comment_text() ?>
        </div>

    There’s probably a better way to do it, but that’s how I did it ?? Looks good so far.

    Just wanted to let you know that another poor soul appreciates all your follow up answers. It’s not exactly what I was looking for, and is more than I can currently comprehend, but appreciated nonetheless.

    Did you ever find out how to add the author to each post in Kubrick?

    Thread Starter kalibahlu

    (@kalibahlu)

    Hi ikedabarry, I’m happy to hear that my answers have helped you ?? thank you for letting me know.

    I’m surprised that adding the author’s name to a post is not a setting on the dashboard, but you can add it easily. Just find the section in index.php that looks like this:

    <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>

    and add some code to change it to this:

    <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted by <?php the_author(); ?> | Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>

    Thread Starter kalibahlu

    (@kalibahlu)

    Hmm, I thought the code would wrap, but it didn’t… oh well, the part you’re inserting is just this:

    Posted by <?php the_author(); ?>

    and then the text that you want in between the metadata, like in Kubrick, it’s ‘ | ‘, not including the apostrophes, of course.

    Thread Starter kalibahlu

    (@kalibahlu)

    Oh, and you have to do the same thing in archive.php

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Move the Comment Reply Link in Kubrick?’ is closed to new replies.