WordPress.org

Ready to get started?Download WordPress

Forums

Clear Style Theme - Can't find HTML (5 posts)

  1. cmdouble
    Member
    Posted 1 year ago #

    Hello all. Granted, I am new to all of this...WordPress, PHP, CSS, HTML, but I think I have done pretty well. I need some help though. I have two pages that show a Reply To comment box at the bottom of them. I can see the code that needs to be deleted in the HTML script when viewing the source code of the website page. I can't, for the life of me, find the code in any of the pages within WordPress. I am using BlueHost as my domain service. I was able to get into the files and find the index.php in the public files, but it was not the same as the website source code. The code that I need to delete is as follows:

    <div class="clearstyle-b-container">
        <div id="comments">
    
        								<div id="respond">
    				<h3 id="reply-title">Leave a Reply <small><a rel="nofollow" href="/?page_id=22#respond">Cancel reply</a></small></h3>
    									<form action="http://www.executivelyyours.com/wp-comments-post.php" method="post" id="commentform">
    																			<p class="logged-in-as">Logged in as <a href="http://www.executivelyyours.com/wp-admin/profile.php">admin</a>. <a href="http://www.executivelyyours.com/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fwww.executivelyyours.com%2F%3Fpage_id%3D22&_wpnonce=9d3611006c" title="Log out of this account">Log out?</a></p>																			<p class="comment-form-comment"><label for="comment">Comment</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>						<p class="form-allowed-tags">You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:
    <a> <abbr title=""> <acronym title=""> <b>
    
    <blockquote> <cite>
    <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 						<p class="form-submit">
    							<input name="submit" type="submit" id="submit" value="Post Comment" />
    							<input type='hidden' name='comment_post_ID' value='22' id='comment_post_ID' />
    <input type='hidden' name='comment_parent' id='comment_parent' value='0' />
    						</p>
    						<input type="hidden" id="_wp_unfiltered_html_comment_disabled" name="_wp_unfiltered_html_comment_disabled" value="56433a8c29" /><script>(function(){if(window===window.parent){document.getElementById('_wp_unfiltered_html_comment_disabled').name='_wp_unfiltered_html_comment';}})();</script>
    					</form>
    							</div><!-- #respond --></p>
    <p></div>
    </div>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still - use the pastebin]

    The Theme I am using is Clear Style and my website is ExecutivelyYours.com. The pages I am having problems with are About Us and Contact Us. I copied and pasted all pages from the theme into an editor and did a search on clearstyle-b-container with no results. Any help you can offer is greatly appreciated. I am stumped and probably in way over my head, but hopefully with your help, I can find what I am looking for.
    Thank you so very much.
    Maria

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Uncheck "Allow comments" in the Discussion pane on each Edit Page. If you do not see this pane, click Screen Options at the very top of the page and check "Discussion".

  3. Andrew Bartel
    Member
    Posted 1 year ago #

    The proper way to do this would be to create a child theme.

    When you've read that document and got it created, add:

    #comments {
    display: none;
    }

    To your child theme's style.css. Keep in mind this will likely disable comments throughout the site. Many themes also have a globally disable comments option.

    Alternately, you can use the Disable Comments plugin.

    In general you shouldn't delete large blocks of code, comment them out if you're going to do this at all.

  4. cmdouble
    Member
    Posted 1 year ago #

    If you were here, I would hug you! Thank you so much esmi! It worked famously.

  5. Andrew: Nooo don't use CSS, use Esmi's recommendation instead.

    A few months ago someone did that and didn't realize that his post had >1,500 SPAM comments. The HTML alone was more than 10 MB just for that post!

    There are lots of things in a child theme that that works fine for, but comments aren't one of them. :)

Topic Closed

This topic has been closed to new replies.

About this Topic