where to change comment label (5 posts)

  1. adunate
    Posted 6 years ago #

    I'm customizing the default theme for a funeral home client. They will use this as their obituary page. I'd like to change the word "comments" to "condolences" for the comment link. Thus the viewer would see "condolences" rather than comments. I won't be changing anything else, only what the viewer sees.

    In what file can I do this?

  2. Arian Xhezairi
    Posted 6 years ago #

    if you're talking about one single post, then you should edit singe.php file.
    search for something like:
    <?php comments_number('No Comment', 'One Comment', '% Comments' );?>
    and simply edit the words within the single quotes ''

    else, one needs to see you're template file first before giving suggestions I suppose.

  3. adunate
    Posted 6 years ago #

    Actually, I'd like the word "comments" to appear as "condolences" on every post. The reader will then have the option of leaving a condolence rather than a comment (in reality, it is a comment, just labeled condolence)

    My template is the WordPress default template, simply customized in header and typeface color. Everything else is the same.

  4. Arian Xhezairi
    Posted 6 years ago #

    WordPress default theme you say!

    than just search for this line of code

    <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>

    and replace words 'Comments' with the desired one.
    this must suffice.

  5. donedealpal
    Posted 6 years ago #

    How would I go about adding additional text around the label?

    Would changing: <?php comments_number('No Comment', 'One Comment', '% Comments' );?>

    To: <?php comments_number('What do you think? (No Comments)', 'What do you think? (One Comment)', 'What do you think? (% Comments)' );?>

    Would make it look like: What do you think? (Ten Comments), etc?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.