• I would like to remove the ‘reply to’ from the bottom of my website pages. I’ve unchecked in discussion settings ‘allow people to post comments on new articles’. There is no corresponding option at the bottom of an individual pages. I found a response on an earlier post to add this line in the stylesheet editor:
    #comment {
    display: none;
    }

    I tried that but nothing changed. Any other way to do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Linda Lombardi

    (@linda-lombardi)

    this is the link to the website I’m trying to build.

    http://artfulhandcrafted.com

    Hello Linda.

    The addition of #comment { display: none; } to your style sheet should work but only if you insert it in the right place in the style.css file. CSS is an abbreviation of Cascading Style Sheet, ‘Cascading’ being the key word. If a style definition appears more than once in a stylesheet, subsequent definitions will override previous ones.

    You may have inserted the #comment { display: none; } too near the top and has been overridden further down. Try inserting it at right at the bottom instead.

    Let me know if it works.

    Thread Starter Linda Lombardi

    (@linda-lombardi)

    Hi,

    Thanks very much for responding. I tried adding #comment { display: none; } to the bottom of the stylesheet but that didn’t do the trick. I found another post that said to select ‘discussion’ in the screen options for each page and then the options for ‘allow comments’ would appear at the bottom of the page and could be unchecked – so that got me there. But, if you wouldn’t mind, I have a couple of questions about editing the stylesheet. Under appearance there is an option for ‘edit css’ and one for editor. I thought that anything you added under ‘edit css’ would load after the default stylesheet and override the options in the stylesheet. Is that correct?

    My second question has to do with the format of the css statements. The bottom of the stylesheet for twenty thirteen looks like this:
    .comment-author .fn,
    .comment-reply-link,
    .comment-reply-login {
    color: #333;
    }
    }
    So would I use a class statement as opposed to an id statement? such as .comment-display?

    Thanks very much.

    No problem. I hope i can help.

    Under appearance there is an option for ‘edit css’ and one for editor. I thought that anything you added under ‘edit css’ would load after the default stylesheet and override the options in the stylesheet. Is that correct?

    I suggest using just one method of editing the CSS. Choose either Edit CSS or Editor. Don’t us both. It keeps the whole process much simpler and removes the issue of which method overrides the which.

    So would I use a class statement as opposed to an id statement? such as .comment-display?

    The fundamental difference between class (.) and id (#) is down to repeated use within a document:

    Classes can be used as many times as needed within a document.
    IDs can only be applied once within a document.
    So, if you need to use the same specific selector more than once, classes are a better choice.

    You can combining class selectors. You can use multiple classes to style a HTML element but you can only use one ID when styling an HTML element. This means that class selectors have a wider range of applications. An example of combining classes would be:

    <p class=”highlight indent”>
    .highlight { font-weight: bold; }
    .indent { padding-left: 2em; }

    There may be times when a declaration conflicts with another declaration. These conflicts are resolved using the Cascade rules. In simple terms, if a class selector and ID selector were to be in conflict, the ID selector would be chosen.

    Before you dive into editing anything though I strongly suggest you create a child theme so your tweaks won’t be overwritten when updating the theme. Here are some guides in case you haven’t made one before:

    http://codex.wordpress.org/Child_Themes
    http://op111.net/53/
    http://vimeo.com/39023468

    I hope this helps.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove 'Reply To' from bottom of pages’ is closed to new replies.