WordPress.org

Ready to get started?Download WordPress

Forums

how to wrap comments in quote marks? (7 posts)

  1. martisim
    Member
    Posted 2 years ago #

    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"

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

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

    .comment-content:before {
    	content: open-quote;
    }
    
    .comment-content:after {
    	content: close-quote;
    }
  3. alchymyth
    Forum Moderator
    Posted 2 years ago #

    what code are you using to output the comments?

    what theme are you using?

    can you post a link to your site?

  4. martisim
    Member
    Posted 2 years ago #

    alchymyth-

    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'); ?>
    	</ol>

    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 :)

  5. martisim
    Member
    Posted 2 years ago #

    cubecolour-

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

  6. martisim
    Member
    Posted 2 years ago #

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

  7. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic