• So I’ve already searched a couple of other threads like this, and all of them tell me to delete a bit of code in index.php or single.php, but I can’t find that code in either of them. I tried finding it with ctrl+F but still nothing. I also want to get rid of everything on the right side of tall the pages as well.

    The site: https://doggytrainings.com/

    *very much under construction at this point

Viewing 2 replies - 1 through 2 (of 2 total)
  • There’s a couple of ways you could go about this and it all depends on how comfortable with coding you are and what theme you are using.

    If you don’t like the idea of looking through PHP files and editing your actual theme, you could simply not display the items after they are generated. I see it is enclosed in a div with a class called “byline”. In your main CSS file you could simply add

    .byline {
       display:none;
    }

    and this should stop displaying the element (although it is technically still created by your theme).

    Otherwise, you could try to find where the line is generated in your specific theme files. Probably it displays this info on both your main home page and on the individual posts which means there would be two files that need editing. If you just text search for the phrase “Posted by” in the correct files, you’ll probably find the actual line (will be some sort of print line with variables for author, date, and categories). Then you could just delete that print line. Of course, if you’re editing theme files it’s always a good idea to make backups just in case something looks weird.

    Thread Starter mrsmartarded

    (@mrsmartarded)

    Thank you so much! I simply added the line of code you suggested and everything looked fine! I appreciate you being so thourough! I still have any issue though. I’d like to get rid of the sidebar and bost advertisements there. Is this simple enough that it could be explained to me over text or would it require serious coding?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I get rid of the "posted by…on" on the home page of my site’ is closed to new replies.