• 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

Nurdit

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 10, 2017 at 3:03 pm in reply to: new page template help #202850
    Nurdit
    Member

    Disregard, all sorted thanks mate

    March 10, 2017 at 2:52 pm in reply to: Created new widget area but not appearing on site #202849
    Nurdit
    Member

    Disregard, all sorted thanks mate

    March 10, 2017 at 10:06 am in reply to: Created new widget area but not appearing on site #202835
    Nurdit
    Member

    Hi Victor,

    I have used your code in your post above (in my child functions.php) and I have getting nothing in the widgets dashboard or showing on my front-page.php (within my child theme called genesis-sample).

    Any help would be great!

    March 10, 2017 at 7:16 am in reply to: new page template help #202810
    Nurdit
    Member

    Hey Brad, followed your advice, but unfortunately no new widget is showing in the widgets page. I tried my own unique ID and NAME but had no joy so reverted back to your example.

    functions.php code:

    genesis_register_sidebar( array(
    	'id'          => 'new-widget',
    	'name'        => __( 'New Widget', 'domain' ),
    	'description' => __( 'Add Content Here', 'domain' ),
    ) );
    
    add_action( 'genesis_before_loop', 'your_widget' );
    function your_widget() {
    if ( is_front_page() && is_active_sidebar('new-widget') ) {
    genesis_widget_area( 'new-widget', array(
    'before' => '<div class="new-widget widget-area">',
    'after'	 => '</div>',
    		) ); 
    
      }
    
    }

    front-page.php code:

    <?php
    /**
     * Genesis Sample.
     *
     * This file adds a custom home page template to the Genesis Sample Theme.
     *
     * Template Name: Custom Front Page
     *
     * @package Genesis Sample
     * @author  Nurdit
     * @license GPL-2.0+
     * @link    http://www.nurdit.com/
     */
    
    // Add custom front page body class to the head.
    add_filter( 'body_class', 'genesis_sample_add_body_class' );
    function genesis_sample_add_body_class( $classes ) {
    
    	$classes[] = 'custom-front-page';
    
    	return $classes;
    
    }
    
    // Remove Skip Links.
    // remove_action ( 'genesis_before_header', 'genesis_skip_links', 5 );
    
    // Dequeue Skip Links Script.
    add_action( 'wp_enqueue_scripts', 'genesis_sample_dequeue_skip_links' );
    function genesis_sample_dequeue_skip_links() {
    	wp_dequeue_script( 'skip-links' );
    }
    
    // Force full width content layout.
    add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );
    
    // Remove site header elements.
    // remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
    // remove_action( 'genesis_header', 'genesis_do_header' );
    // remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
    
    // Remove navigation.
    // remove_theme_support( 'genesis-menus' );
    
    // Remove breadcrumbs.
    // remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
    
    // Remove footer widgets.
    // remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
    
    // Remove site footer elements.
    // remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
    // remove_action( 'genesis_footer', 'genesis_do_footer' );
    // remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
    
    // Run the Genesis loop.
    genesis();
    
    March 10, 2017 at 6:31 am in reply to: new page template help #202804
    Nurdit
    Member

    Thanks Brad, you've been a big help! Much appreciated!!!

    March 10, 2017 at 6:06 am in reply to: new page template help #202799
    Nurdit
    Member

    Thanks brad. Would I need to use the Genesis Hook plugin to add in the two widgets before and after?

    Cheers!

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)

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