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"
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"
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?
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 :)
cubecolour-
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 :)
Great! You're welcome & thanks for letting us know that it worked for you.
You must log in to post.