• 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

Custom template in genesis + widget area

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 › Custom template in genesis + widget area

This topic is: not resolved

Tagged: custom template, genesis

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 6 months ago by SoZo.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 27, 2012 at 12:29 pm #1896
    Bader
    Member

    Hi everyone,

    I was trying to create a custom about-page template with a widget area (like the home title area) so I can put the genesis tabs widget in it.

    After a week of try & error, I gave up as I´m new to the whole thing (plz be gentle) and I need help.

    I already created an about-page (about.php) with the following code in it (an placed it in the theme directory):
    <?php
    /*
    Template Name: about
    */
    remove_action('genesis_loop', 'genesis_do_loop');
    add_action('genesis_loop', 'about_loop');

    function childtheme_about_loop() {

    if ( is_active_sidebar( 'about' ) ) {

    dynamic_sidebar( 'about' );
    }
    }

    genesis();
    ---
    Additionally, I ´ve placed the following code to the functions.php to register the widget area:

    /** Register about widget area */
    genesis_register_sidebar( array(
    'id' => 'about',
    'name' => __( 'about', 'minipress' ),
    'description' => __( 'This is a widget area that can be placed before the post', 'minipress' ),
    ) );

    Can you help me please?
    Thank you for your time in advance 🙂


    “Whether you think you can, or you think you can’t–you’re right.”
    ?• Henry Ford

    November 27, 2012 at 12:52 pm #1902
    SoZo
    Member

    Your function names don't match up here
    add_action(‘genesis_loop’, ‘about_loop’);
    function childtheme_about_loop() {

    should be
    add_action(‘genesis_loop’, ‘about_loop’);
    function about_loop() {

    or
    add_action(‘genesis_loop’, ‘childtheme_about_loop’);
    function childtheme_about_loop() {


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    November 27, 2012 at 1:09 pm #1908
    Bader
    Member

    That´s awesome SoZo!

    Now it looks exactly how I imagined it =)

    Thanks a lot!

    Bader


    “Whether you think you can, or you think you can’t–you’re right.”
    ?• Henry Ford

    November 27, 2012 at 1:32 pm #1915
    SoZo
    Member

    You're welcome 🙂


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

  • 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

© 2023 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