• 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

Genesis-Sample customize single post template under certain 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 › Genesis-Sample customize single post template under certain category

This topic is: resolved

Tagged: genesis sample, single post, template

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 4 months ago by Jeremy Holden.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 15, 2015 at 7:10 am #137523
    psid
    Member

    Howdy 🙂

    could you please help me to customize single post look for Genesis-Sample theme.

    i need any single post under "Gallery" category to look different from defaults :

    no site title

    no sidebars

    no widget areas

    no credentials in the footer

    full width content only

    Thank you in advance,
    Alex.

    January 15, 2015 at 11:29 am #137567
    Jeremy Holden
    Participant

    there are a couple ways to do this.

    1. You can remove those actions which an if condition in the functions file.

    2. You can use the class selectors for that page and each element and then used the property value {display: none;}


    Website design and Genesis customization
    jeremyholden.me

    January 15, 2015 at 12:07 pm #137574
    psid
    Member

    Thank you Jeremy!

    here is what worked for me:

    - created single.php in Genesis-Sample

    -added following code into

    <?php
    if (in_category('my-category-slug')) { 
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    remove_action( 'genesis_site_title', 'genesis_seo_site_title' );
    unregister_sidebar( 'header-right' );
    remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
    remove_action( 'genesis_sidebar_alt', 'genesis_do_sidebar_alt' );
    remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
    remove_action( 'genesis_footer', 'genesis_do_footer' );
    add_action( 'genesis_footer', 'sp_custom_footer' );
    function sp_custom_footer() {
    ?>
    <p></p>
    <?php
    } 
    }
    genesis();

    - done.

    adding same code into function.php didnt work for me

    if any one knows better/function.php way - you are welcome to share 😉

    January 15, 2015 at 12:13 pm #137577
    Jeremy Holden
    Participant

    Great. Glad you found a solution.

    If you can mark the thread resolved so that others will know that you're all set.

    Thanks


    Website design and Genesis customization
    jeremyholden.me

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