• 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 3.0.3 Breaks Custom Page Templates in Centric Pro

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 › General Discussion › Genesis 3.0.3 Breaks Custom Page Templates in Centric Pro

This topic is: not resolved

Tagged: centric pro, Genesis 3.0.3

  • This topic has 2 replies, 1 voice, and was last updated 5 years, 8 months ago by bluebird.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 16, 2019 at 2:56 pm #493010
    bluebird
    Member

    Hello and thank you in advance to anyone who can help me resolve this issue.

    Recently, I upgraded to Genesis 3.0.3 (I am using Centric Pro as a child theme). Doing so broke 2 of my pages that I have as custom templates. The errors that I received were related to the 2 functions below suddenly becoming undefined (I'm assuming that they no longer exist in the new/latest version of Genesis):

    <?php genesis_before_content_sidebar_wrap(); ?>
    
    <?php genesis_before_content(); ?>

    I had to switch back to a previous version of Genesis as a result (at least for now). Are there different (newer) functions that I can use in place of the ones above so that I can update to the latest version of Genesis without breaking my site?

    Thanks:-)

    https://firebugmusic.com/
    August 25, 2019 at 3:19 pm #493174
    bluebird
    Member

    Hello? Is there anyone out there who can help me?

    I have rolled back to Genesis V 2.6.1 for now, but this is not a permanent solution.

    Thanks:-)

    August 27, 2019 at 1:30 pm #493226
    bluebird
    Member

    In case this helps anyone else in a similar situation, I have found the solution to my issue(s) above:

    I'm working on a new site locally with the Parallax Pro theme and with the latest version of Genesis, I encountered the same issue(s) when trying to create two custom pages.

    The solution is simply just to not use any of these functions in my custom page templates:

    <?php genesis_before_content_sidebar_wrap(); ?>
    
    <?php genesis_before_content(); ?>
    
    <?php genesis_before_loop(); ?>
    
    <?php genesis_loop(); ?>
    
    <?php genesis_after_content(); ?>
    
    <?php genesis_after_content_sidebar_wrap(); ?>

    The whole process is now actually a lot more simple (yay!).

    Here is an example on how to create a custom page with Genesis 3+:

    <?php
    /*
    Template Name: media page template
    */
    
    //* Add custom body class
    
    add_filter( 'body_class', 'childthemeprefix_media_body_class' );
    function childthemeprefix_media_body_class( $classes ) {
    	$classes[] = 'media-page';
    	return $classes;
    }
    
     ?>
    
    <!-- genesis(); -->
    <?php get_header(); ?>
    
    <div id="content-sidebar-wrap">
    
    <div id="content" class="hfeed">
    
    <?php add_action( 'genesis_post_title', 'genesis_do_post_title' ); ?>
    
    ....custom HTML here.....
    
    </div><!-- end #content -->
    
    </div><!-- end #content-sidebar-wrap -->
    
    <script type="text/javascript">
    ....custom JS
    </script>
    
    <?php get_footer(); ?>

    Hope that this helps someone else:-)

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ 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