WordPress.org

Ready to get started?Download WordPress

Forums

How to delete date when article is posted and category (6 posts)

  1. luka123
    Member
    Posted 1 year ago #

    Title say everything. How to delete date when article is posted and under wich category it is posted? I want to delete that for all articles.

  2. Connor Crosby
    Member
    Posted 1 year ago #

    Are you asking how to delete the date and category that is displayed on the post? If so, it depends on which theme you're using. Each theme has a unique structure it uses for code.

    Generally, you want to look in the single.php page. Find the following code <?php the_category(); ?>. By removing that it will no longer display the category.

    The date is a little trickier to find. You want to look for something that says <?php the_date(); ?>. It may look a little different so it might be a little hard to find. But just remove that and you should be good.

  3. luka123
    Member
    Posted 1 year ago #

    I just need to remove that part of code, right? It don't going to produce any errors, bugs or something like that?

  4. Connor Crosby
    Member
    Posted 1 year ago #

    If you just remove that part of the code, it should not produce any errors. What you could do is change the code to <?php // the_category(); ?> and <?php // the_date(); ?>. By adding two slashes after <?php you are commenting them out. This means they are still in the code but will not be published on the page. So, that way if you ever need them again, all you need to do is remove those two slashes.

  5. luka123
    Member
    Posted 1 year ago #

    Thanks! I just deleted them. :) btw Can I delete this text in the footer "Powered by WordPress"? It is "legal" I mean do wordpress alow that?

  6. Connor Crosby
    Member
    Posted 1 year ago #

    Yes, you're certainly allowed to. Many people choose to keep it on their website because WordPress is a free, open CMS. But, to answer your question, you can remove it if you'd like.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.