poley7
Member
Posted 7 months ago #
hi there
I seem to have picked up some unwanted forward slash signs at the bottom of every page on my site
see here for an example:
http://www.itstravel.co.uk/contact-us/
I know its something to do with editing one of the php files but can't see to find where the '*/' and '/*' text is to be found and deleted.
Can anyone help??
Thanks! :)
Check this leftover of editing:
<div class="comment_section">
<!--Start Comment list-->
/*<!-- You can start editing here. -->
<div id="commentsbox">
</div>
*/
<!--End Comment Form-->
</div>
As can be seen, it is in comment form.
poley7
Member
Posted 7 months ago #
where? the comments.php file doesn't show that code and I can't see the */ text in it anywhere
<?php
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( post_password_required() ) { ?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.','colorway'); ?></p>
<?php
return;
}
?>
<!-- You can start editing here. -->
<div id="commentsbox">
<?php if ( have_comments() ) : ?>
<h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?><?php _e('so far.','colorway'); ?></h3>
<ol class="commentlist">
<?php wp_list_comments(); ?>
</ol>
<div class="comment-nav">
<div class="alignleft">
<?php previous_comments_link() ?>
</div>
<div class="alignright">
<?php next_comments_link() ?>
</div>
</div>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ( ! comments_open() && ! is_page() ) : ?>
<?php _e('','colorway'); ?>
<?php endif; ?>
<?php endif; ?>
<?php if ( comments_open() ) : ?>
<div id="comment-form">
<?php comment_form(); ?>
</div>
<?php endif; // if you delete this the sky will fall on your head ?>
</div>
where are you referring to that I need to go to to take out the */ bit?
Part of what I quoted can be seen in the above:
<!-- You can start editing here. -->
<div id="commentsbox">
Anyway, you can check it with Firebug + Firefox and see the code on the page quoted by you.
ward1941uk
Member
Posted 1 month ago #
I have the same problem but I have got comments turned off so I don't think that the fault is in my comments.php
If you post a new thread, there's more chance that you'll receive some help.