WordPress.org

Ready to get started?Download WordPress

Forums

Remove posted on, by admin, posted in and leave a comment (16 posts)

  1. WilliamBill
    Member
    Posted 2 years ago #

    Well I have just spent the past three hours trying at least 6 different ways to make my website less of a blog by taking off the "posted on", "by admin", "posted in" and "leave a comment" and nothing seems to work. Every youtube video, wordpress forum and google search gives me instructions for an older version of WordPress. Is that the problem? Or is it just me?!?!?! I am not afraid of editing the code but I still haven't made any progress. Please help me if you have a free moment. Thanks!

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    It's got nothing to do with the version of WordPress and everything to do with the theme that you are currently using.

  3. WilliamBill
    Member
    Posted 2 years ago #

    Well I used twenty ten when the advice was for twenty ten and the same for twenty eleven. I figured I can't be choosy if I don't know how to code so I would take the most basic theme. What do you suggest?

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Do not edit the Twenty Eleven or Twenty Ten themes. The former is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. First create a child theme for your changes.

  5. WilliamBill
    Member
    Posted 2 years ago #

    By some miracle of the 5th dimension, I was able to create a child theme (for anyone reading this, I used this video - http://www.youtube.com/watch?v=zTXVQz8x4lY- which was very helpful).

    So what is my next step esmi Theme Diva???

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    Which parent theme is your child based on?

  7. WilliamBill
    Member
    Posted 2 years ago #

    I wrote this into my child theme to make the child theme and then to take out the posted on, by admin, posted in and leave a comment ... did I do it right? Is there a better way of doing this? (By the way, I put the code below in between the barticks like I was told to do ... is that right as well?) Finally, is there a way to mark the line which takes out the posted by, etc. so that I can remember that later if my child them gets too long - like in parentheses or something? Thank you so much for your help!!!! I really appreciate it!!!

    /*
    Theme Name: Twentyeleven Baby
    Description: Child theme for the zuub.ca twentyeleven theme
    Author: admin
    Template: twentyeleven
    */
    
    @import url("../twentyeleven/style.css");
    
    .post .entry-utility, .post .entry-meta {display:none;}
  8. esmi
    Forum Moderator
    Posted 2 years ago #

    Off the top of my head, that should work. Have you tried activating the new child theme?

  9. WilliamBill
    Member
    Posted 2 years ago #

    I did activate the child theme and it works great. Thanks!

    Two more questions:

    1. How can I mark that line so that I know what it refers to later if I keep making more changes?

    2. If I want to take out the Leave a Reply and Post a Comment on the other pages of my site, will I just put that onto the child theme as well? Do you know the code to remove those items and make the other pages into static pages?

    Thanks again!!!!

  10. esmi
    Forum Moderator
    Posted 2 years ago #

    To add a comment to a .css file, use:

    /* comment goes here */

    will I just put that onto the child theme as well?

    Yes - you could try simply hiding them with CSS. Try using Firefox with the Firebug add-on for this kind of CSS work. It's an excellent tool for working out what CSS you need to amend in a child theme.
    http://getfirebug.com/

  11. WilliamBill
    Member
    Posted 2 years ago #

    Wow! I never knew I would be looking at code to make a WordPress site ... this is getting confusing.

    1. I am using Chrome Dev Tools as I use Chrome as my browser. Is that okay instead of Firebug?

    2. I can locate the code for one of the lines I want to remove but I don't know how to remove them in my child theme. For instance, here is the code for the Leave a Reply that Chrome Dev Tools gives me:

    <h3 id="reply-title">
    "Leave a Reply "

    How do I take that out in my child theme? What is the code that I will write on the child theme to get that out?

    3. Is there a faster way to remove the entire Leave a Reply box (including Logged in as admin. Log out?, Comment and Post a Comment)? I just want it to be static and not be a blog site. Or do I have to take out each element individually? I hope not ... this is getting tiring.

    Thanks again for all of your help!!!!

  12. esmi
    Forum Moderator
    Posted 2 years ago #

    1.It's OK... ish. Just nowhere near as powerful or as useful as Firefox+Firebug.

    2. Try using #reply-title. You might want to to start learning a little more about CSS. These are good places to start:
    CSS Tutorials
    Learning CSS

    3. Turn off all commenting on future Posts & Pages via Settings -> Discussion -> Allow people to post comments on new articles

    Then 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".

  13. WilliamBill
    Member
    Posted 2 years ago #

    Hello WordPress Forum and especially Esmi,

    I appreciate your advice and I am trying my best to follow it. However, I am still unable to take off the Leave a Reply and Post a Comment box on all of the pages other than the home page. I went through both a CSS tutorial and an HTML tutorial to follow your advice but to no avail.

    1. In the Child Theme for Twentyevelen Theme (www.zuub.ca), what is the EXACT code that I would write to remove the Leave a Reply and Post a Comment Box? Or what is the process for getting the code from the Parent Theme and transfering + modifying it on the Child Theme to accomplish this?

    2. As for the "more simple" solution, I did what I could but there is a problem. In the Discussion Settings, I unticked "Allow people to post comments on new articles". And in the Screen Options for each page, I unticked "Discussion" too. But I could not find the "Allow Comments" in the Discussion Pane ... is that for an older version? I do not have a Discussion pane to the best of my knowledge.

    Thank you again so much for your help.
    Avery

  14. esmi
    Forum Moderator
    Posted 2 years ago #

    But I could not find the "Allow Comments" in the Discussion Pane

    If you do not see this pane, click Screen Options at the very top of the page and check "Discussion".

  15. WilliamBill
    Member
    Posted 2 years ago #

    If I click on Settings on the Dashboard, it gives me many choices ... of which one is Discussion. When I click that, I am in the Discussion Settings page. However, there is no screen option at the top of the Discussion Settings page. Am I in the right page?

    And will this remove the Leave a Reply / Post Comment box from the other pages of my site?

  16. esmi
    Forum Moderator
    Posted 2 years ago #

    No - click Screen Options at the very top of any Edit Page or Edit Post page.

Topic Closed

This topic has been closed to new replies.

About this Topic