http://www.islevideofilm.com/?portfolio=kauai-hawaii
is there a way to get rid of the "comments are closed" description below the video?
http://www.islevideofilm.com/?portfolio=kauai-hawaii
is there a way to get rid of the "comments are closed" description below the video?
Hi!
Do you only want to do this for Portfolio entries or for all posts?
This code is in single.php and needs a conditional variable if this is just for portfolio pages.
Best regards,
James
just for the portfolio pages.
Thanks so much
The code you need to edit is in comments.php, open it up and find this code:
<!-- If comments are closed. -->
<span class="meta"><?php _e('Comments are closed.','avisio'); ?></span>
and replace it with:
<?php if( get_post_type() != 'portfolio' ) {
<!-- If comments are closed. -->
<span class="meta"><?php _e('Comments are closed.','avisio'); ?></span>
<?php } ?>
Let me know if this doesn't work or have any other questions.
And how do I do this for for ALL posts (both blog posts & portfolio entries)?
Thanks.
Hey,
To remove "Comments are closed" for all posts, just delete this text in comments.php:
<!-- If comments are closed. -->
<span class="meta"><?php _e('Comments are closed.','avisio'); ?></span>
or this text if you made the modification above:
<?php if( get_post_type() != 'portfolio' ) {
<!-- If comments are closed. -->
<span class="meta"><?php _e('Comments are closed.','avisio'); ?></span>
<?php } ?>
James
Hey James,
thanks again, worked perfect :-)
Glad that James could help you.
My goal: Remove the "Comments are Closed" from portfolio items only.
When I used the code James suggested to remove comments are closed from portfolio items I got this parse error:
Parse error: syntax error, unexpected '<' in /home/vlanec5/public_html/valiantlane.com/coaching/wp-content/themes/avisio/comments.php on line 36
Need help to make this work. Thanks!
In the code above a ?> is missing.
Here's the correct code:
<?php if( get_post_type() != 'portfolio' ) {?>
<!-- If comments are closed. -->
<span class="meta"><?php _e('Comments are closed.','avisio'); ?></span>
<?php } ?>Thanks, Dude! Worked perfectly. I love this template and anyone who visits my website (coaching.valiantlane.com) does, too! So additional thanks to Kreisi and to you, James, and others who are providing support...superior support!
Question re forum etiquette: I wasn't sure if adding to a resolved issue would be picked up, so I created the new thread. Was is too much to create the new one? Don't want to junk up the forum.
Have a great day!
V.
I think it's better to create new threads for requests. It's easier for us because we notice it's a new request and not just an answer to an old question.
Will do.
Can you help in portfolio I wish to remove comments "Closed" and the "Posted in:" on all the portfolio pages
see: http://www.psweb-test.com/?portfolio=absolute-moon-youtube I want to remove
"Posted in: Timber Fences-Jun 19, 2010" "Comments Off"
I have tried to amend the comments.php file with
<?php if( get_post_type() != 'portfolio' ) {?>
<!-- If comments are closed. -->
<span class="meta"><?php _e('Comments are closed.','avisio'); ?></span>
<?php } ?>
However this does not seem to work can you help me please?
You must log in to post.