Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #1596

    I followed this thread for instructions on how to remove the “Comments Are Closed.” from portfolio items in Avisio.


    Didn’t work, got parse error for syntax and the page formatting went goofy.

    Please help with correct code.

    Thanks a bunch!


    You might of removed too much PHP code. Make sure the quotes are still there, but there is nothing in between them. If you still having trouble I could access your the code to your site and look for a solution.


    Hi Noah. Thanks for responding! The instructions in the thread I mentioned are:

    Replace this code:

    <!– If comments are closed. –>

    <span class=”meta”><?php _e(‘Comments are closed.’,’avisio’); ?></span>

    With this code:

    <?php if( get_post_type() != ‘portfolio’ ) {

    <!– If comments are closed. –>

    <span class=”meta”><?php _e(‘Comments are closed.’,’avisio’); ?></span>

    <?php } ?>

    The only quotes in the new code are: “meta”. Are you saying to remove “meta” from the quotes?

    Or is there something else I should be looking at? The other thing that happens when I do the above code replacement in that the color of the background of the text areas change to global background color that I selected to show in the banner. Other formatting shifts as well.

    Thanks for the assistance!


    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!


Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Remove Comments Are Closed From Portfolio Items’ is closed to new replies.