• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Wan't to hide genesis_post_info() to a particular category?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Wan't to hide genesis_post_info() to a particular category?

This topic is: resolved

Tagged: hook, simple hook

  • This topic has 9 replies, 2 voices, and was last updated 12 years, 7 months ago by Brad Dalton.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • March 20, 2013 at 12:07 pm #29742
    Taba Chatung
    Member

    My blog link is HugLoo

    and want to hide the Post info for this particular category (Post)  http://www.hugloo.com/sms-messages/

    Problem is that, with Hook plugin the post info gets hide for all the Categories and post.

    Kindly help....!!!

     

    March 20, 2013 at 12:15 pm #29745
    Brad Dalton
    Participant

    On the archive page for that category or the single posts assigned to that category.


    Tutorials for StudioPress Themes.

    March 20, 2013 at 1:04 pm #29759
    Taba Chatung
    Member

    Sorry.. but m not getting your point.! (Or may be i explained in wrong way).

    I configured on Simple hook plugin to hide the post info by selecting the "Unhook genesis_post_info() function from this hook?"

    But whats the problem is that, i m looking to hide those from few selected post (Which are under single category). So, is there any way to do so such..??

    March 20, 2013 at 1:11 pm #29761
    Brad Dalton
    Participant

    Understand but do you want to hide the post info for posts assigned to that category on single posts or on the archive pages?

    Post info is displayed on both single posts and blog, category, tag and author archive pages by default.

    Paste this CSS code at the end of your child themes style.css file:

    .category-4 .post-info { 
    display: none; 
    }
    

    Tutorials for StudioPress Themes.

    March 20, 2013 at 1:16 pm #29764
    Taba Chatung
    Member

    On the archive page for that category.

    I think, Post info for single post will be fine with it... Just want to hide from the archive page for that category

    March 20, 2013 at 1:20 pm #29768
    Taba Chatung
    Member

    Oh.. thanks for the help..! Just one more question, can i use "The code you given" for others selected category also by changing the category ID...??

    March 20, 2013 at 1:20 pm #29769
    Brad Dalton
    Participant

    Ok then that code will work that i posted as i tested it on your sites archive page for that category.


    Tutorials for StudioPress Themes.

    March 20, 2013 at 1:24 pm #29771
    Brad Dalton
    Participant

    Affirmative.

    You can grab the category id from the source code.


    Tutorials for StudioPress Themes.

    March 20, 2013 at 1:32 pm #29774
    Taba Chatung
    Member

    Is the procedure ok..?

    .category-4 .post-info {
    display: none;
    }

    .category-9 .post-info {
    display: none;
    }

    .category-18 .post-info {
    display: none;
    }

    Or is there any CSS shortcut for this..??  [ Sorry, little knowledge of CSS ]

    March 20, 2013 at 1:38 pm #29778
    Brad Dalton
    Participant
    .post-info {
    display: none;
    }
    

    But that will hide it from your entire site. To hide it from all archives but display it on single posts you'll need to use PHP or all that CSS which you can actually reduce.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble