How to remove filter and tag from all Archives

Community Forums Forums Design Tips and Tricks How to remove filter and tag from all Archives

This topic is: resolved

This topic contains 4 replies, has 2 voices, and was last updated by  toni.gomes 1 year, 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #29992

    toni.gomes
    Participant
    Post count: 20

    I am using news theme.

    i want to remove filter and  tag details from archives page

    the site- http://www.krishnatorque.com/category/tips-tricks/

    can I remove leave comment option too?

    #30293

    Robin
    Participant
    Post count: 291

    Here is how to remove the post info (comments, author, date). How to remove the post meta (tags and categories).

    You can also just modify those, if you want to show the date, for instance, but not the author or comments. Actually, to remove the comments link, the easiest way would be to disable comments altogether on the Genesis settings page.


    I do the best I can with what I’ve got. (say hey on twitter)

    #30358

    toni.gomes
    Participant
    Post count: 20

    its removing from single post page too.

    i want to remove from category page, tag and archives page only. not from single post.

    #30408

    Robin
    Participant
    Post count: 291

    I *think* this may do it:
    add_action( 'genesis_before_post', 'remove_infometa' );
    function remove_infometa () {
    if ( ! is_singular() ) {
    remove_action( 'genesis_before_post_content', 'genesis_post_info' );
    remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
    }
    }

    If it’s not right, I think it’s close. You need to have the actions run conditionally. What I put there would remove the info and meta if you are not on a single post/page. (You need to remove the remove_action lines of code from the first go round.)


    I do the best I can with what I’ve got. (say hey on twitter)

    #30822

    toni.gomes
    Participant
    Post count: 20

    awesome. its work.

    that’s exactly what I was looking for

    thank you

    thank you

    thank you

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.