WordPress.org

Ready to get started?Download WordPress

Forums

Path
[resolved] want to remove "posted in Uncategorised" from all posts (8 posts)

  1. royaugustine
    Member
    Posted 1 year ago #

    Hello,

    I am new to wordpress and new to the Path theme as well.

    After few days of searching I finally found the theme I was looking for. I like the 'Path' theme very much. Thanks Sami for this wonderful theme.

    By going thru other threads in this forum I found out how to remove the author name and date from the posts. But still don't know how to remove "posted in Uncategorized" from all the posts.
    Please help

    Thanks,
    Roy Augustine

  2. Sami Keijonen
    WordPress-asiantuntija
    Theme Author

    Posted 1 year ago #

    You can hide it like this.

    .entry-meta {
    display: none;
    }

    Put it in your child theme style.css. You can get blank child theme from here.

    http://themehybrid.com/themes/path-child

    And thanks for liking my theme!

  3. royaugustine
    Member
    Posted 1 year ago #

    Thank you Sami for the help.
    It worked.

    Currently I am using the below code for removing the "Published by" and the "date" from the posts. (I know nothing about coding. The below code I got from another question in this forum and I just modified it)

    ~\wordpress\wp-content\themes\path-child\functions.php

    add_filter( "{$prefix}_byline", 'my_byline', 11 );
    }
    
    function my_byline( $byline ) {
    
    		$byline = '';
    		return $byline;
    }

    Is there a way this can be accomplished by adding code to the css file? I mean, disable "published by", "date", "posted in" for all posts in the site.

  4. Sami Keijonen
    WordPress-asiantuntija
    Theme Author

    Posted 1 year ago #

    Yes but that's even better way because there is literally no html in the markup.

    Or you can just use inside setup function in child theme functions.php.

    add_filter( "{$prefix}_byline", '__return_false' );
  5. royaugustine
    Member
    Posted 1 year ago #

    Thanks Sami.

    It worked.

  6. lilytreehe
    Member
    Posted 1 year ago #

    Hi Sami,

    I copyed the extact code above to the path child theme style.css. Nothing happened on the website.
    Would you please give me some suggestions :)
    How to remove "posted in Uncategorised" and the Author description box under every Post?
    Thank you so much!

  7. lilytreehe
    Member
    Posted 1 year ago #

    Thank you!

  8. Sami Keijonen
    WordPress-asiantuntija
    Theme Author

    Posted 1 year ago #

    Could you open new topic for your question.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic