• 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

customise categories

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 › customise categories

This topic is: resolved

Tagged: custom category, remove post content

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 10 months ago by babrees.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 12, 2015 at 3:20 am #137142
    babrees
    Participant

    In older versions of Genesis I customised the category by having a category.php file with the following in it to remove everything except the post title and thumbnail. This no longer works in the latest version using html5 - can somebody point me in the direction of what will work now?

    <?php
    // Remove content, post-info, and post-meta
    remove_action('genesis_post_content', 'genesis_do_post_content');
    remove_action('genesis_before_post_content', 'genesis_post_info');
    remove_action('genesis_after_post_content', 'genesis_post_meta');

    require_once(PARENT_DIR . '/index.php');
    ?>

    January 12, 2015 at 4:10 am #137146
    Brad Dalton
    Participant

    Try changing the genesis loop hooks


    Tutorials for StudioPress Themes.

    January 12, 2015 at 5:35 am #137152
    babrees
    Participant

    Thanks Brad, but sadly that hasn't worked. I have since added remove meta and info to the functions file, so changed the category.php to the following, but that still isn't working.

    <?php
    // Remove content, post-info, and post-meta
    remove_action('genesis_entry_content', 'genesis_do_entry_content');
    require_once(PARENT_DIR . '/index.php');
    ?>

    What I am trying to do is, in the categories display the post image and title only and in columns. This is the original site I am trying to update: http://www.witchgait.co.uk/category/my-shar-pei/rainbow-bridge/

    Here is the new site so far: http://www.witchgait.co.uk/wordpress/category/my-shar-pei/rainbow-bridge/

    As well as the above category.php I have the following css, putting it into columns on the original site, but doesn't work in the new site:

    body.category #content .post {
    /* add styles to float each .post div and make into columns */
    float:left;
    width: 185px;
    height: 210px;
    padding: 15px;
    margin: 6px;
    font-size:10px;
    text-align:center !important;
    line-height:normal;
    border: 1px solid #9CBDDE;
    }

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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