• 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

Adding custom sidebars to Prose

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 › Adding custom sidebars to Prose

This topic is: not resolved

Tagged: custom function, Prose, sidebars

  • This topic has 1 reply, 2 voices, and was last updated 10 years ago by wendycholbi.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 5, 2013 at 11:03 am #18235
    emilywhitedesigns
    Member

    I'm wanting to add a split sidebar under the main sidebar in Prose (for a total of three widgetized sidebars). I have added the following code to the Custom Functions area in the Custom Code screen but it doesn't seem to be working. Any ideas? I'm rather new to working with Prose and things seems just a little different than the normal child themes.

    // Register the sidebars with WordPress
    genesis_register_sidebar(
    array(
    'id' => 'sidebar-bottom-left',
    'name' => __( 'Sidebar Bottom Left', 'theme-text-domain' ),
    'description' => __( 'This shows up underneath the primary sidebar.', 'theme-text-domain' ),
    )
    );

    genesis_register_sidebar(
    array(
    'id' => 'sidebar-bottom-right',
    'name' => __( 'Sidebar Bottom Right', 'theme-text-domain' ),
    'description' => __( 'This shows up underneath the primary sidebar.', 'theme-text-domain' ),
    )
    );

    February 5, 2013 at 11:05 pm #18384
    wendycholbi
    Member

    In addition to registering the widget areas, you need to add the widgets to one of the Genesis hooks.

    Take a look at Brian Gardner's tutorial for adding a widget, and modify that code for your sidebar widgets (most tutorials will tell you to add functions to functions.php, but Prose is different, and you're already correctly adding your code to the Genesis --> Custom Code --> Custom Functions area. You could also use the Genesis Simple Hooks plugin if you prefer).

    You may want to look at the Genesis Hook Reference and this Genesis Visual Hook Guide to see which hook to use (I'm guessing in your case it would be genesis_after_sidebar_widget_area).

    Then, you'll need to add some CSS to Genesis --> Custom Code --> Custom CSS to style your widget areas (making them each half as wide as the primary sidebar, and whatever other styles you need).


    I love WordPress, Genesis, and the Prose child theme (my complete guide to using Prose is here: SiteSetupKit.com). Say hi on Twitter: @wendycholbi

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