Custom category display

Community Forums Forums Design Tips and Tricks Custom category display

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  nutsandbolts 1 year ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #65842

    babrees
    Participant
    Post count: 69

    Hi. In the past I have used the following code in a category.php file placed within my theme in order to show JUST the thumbnail and title.

    <?php
    // Remove content, post-info, and post-meta from categories
    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');
    ?> 

    I am now setting up a site where I require this again but I’m using Lifestyle Pro with html5 enabled. I changed the code to the following, but it doesn’t seem to work. Guess I’ve done it wrong! Anybody able to help with this please?

    <?php
    // Remove content, post-info, and post-meta from categories
    remove_action('genesis_entry_content', 'genesis_do_post_content');
    remove_action('genesis_entry_header', 'genesis_post_info');
    remove_action('genesis_entry_footer', 'genesis_post_meta');
    
    require_once(PARENT_DIR . '/index.php');
    ?> 

    Thanks

    #78737

    nutsandbolts
    Keymaster
    Post count: 3202

    I see this topic is a few months old – did you ever get this resolved?


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #78785

    babrees
    Participant
    Post count: 69

    yes thank you. Not sure why it didn’t work the first time, but suddenly it worked ok!

    #78809

    nutsandbolts
    Keymaster
    Post count: 3202

    Okay, awesome. I’m going to mark this topic as resolved but feel free to start a new one if you need help with something else. :)


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

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

You must be logged in to reply to this topic.