Support » How-To and Troubleshooting » how to wrap comments in quote marks?

how to wrap comments in quote marks?

  • the website im working on needs each comment to be wrapped in speech marks automatically. does anyone know away of achieving this? so something like this:

    user says:

    “each comment typed is automatically wrapped in quote marks”

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator cubecolour



    Depending on your theme, you could add *something like*

    .comment-content:before {
    	content: open-quote;
    .comment-content:after {
    	content: close-quote;

    what code are you using to output the comments?

    what theme are you using?

    can you post a link to your site?


    its a custom theme that ive been developing, its based on the amber weinberg template hijinx, how ever its been updated since so its probally not the same http://www.amberweinberg.com/hijinks-a-wordpress-basic-framework/

    unfortunatly im not aloud to post a link to the site but to out put the comments im using

    <?php if ( have_comments() ) : ?>
    	<h3 id="comments"><?php comments_number('No Comments', 'One Comment', '% Comments' );?></h3>
    	<ol class="commentlist">
    	<?php wp_list_comments('avatar_size=60'); ?>

    is there anything else that might help?

    cubecolor- the comments are outputted using the p tag so would i use something like this?

    .comment-content p:before {
    content: open-quote;

    .comment-content p:after {
    content: close-quote;

    cheers guys 🙂


    IT WORKED :D, is there anyway to style the quotes? thanks very much by the way!

    ive sorted the styles too thanks very much for your help guys 🙂

    Moderator cubecolour



    Great! You’re welcome & thanks for letting us know that it worked for you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how to wrap comments in quote marks?’ is closed to new replies.
Skip to toolbar