• 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

Made custom sidebar, but can't format it.

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 › Made custom sidebar, but can't format it.

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 11 years ago by sethbahookey.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • November 19, 2014 at 4:38 pm #132222
    sethbahookey
    Member

    I just created a custom sidebar mainly through Carrie Dils tutorial. This is what I have.

    /** Add custom sidebar */
    genesis_register_sidebar(array(
    'name'=>'Sidebar for Conditions',
    'id' => 'conditions-sidebar',
    'description' => 'This is a menu for the treatable conditions page',
    'before_widget' => '<div id="%1$s"><div class="widget %2$s">',
    'after_widget' => "</div></div>\n",
    'before_title' => '<h4><span>',
    'after_title' => "</span></h4>\n"
    ));

    add_action( 'get_header', 'conditions_sidebar' );
    function conditions_sidebar() {
    if ( is_page( 'treatable-conditions' )) {
    remove_action( 'genesis_after_content', 'genesis_get_sidebar' );
    add_action( 'genesis_after_content', 'call_in_conditions_sidebar' );
    }
    }

    //* Function to call in Conditions Sidebar
    function call_in_conditions_sidebar() {
    genesis_widget_area( 'conditions-sidebar' );
    }

    It works just fine and it shows. However, there is 0 formatting on it at all 🙁 I'd like to have the kind of formatting like the Genesis News Extended widget where it's in the black box and there is padding.

    Basically I'm trying to insert a menu in the side when you go to a specific page, but all it shows is the links in basic text lined right up against the main content area. Why does it do this?

    Do I have to go into CSS and format this whole section? Or am I missing something that would give it that kind of formatting naively?

    November 19, 2014 at 5:38 pm #132228
    Lauren @ OnceCoupled
    Member

    You'll need to include a link to your website, or at the very least, what theme you're using. It sounds like you could add add a class to it in order to obtain the styling you're looking for. Or that you're using a widget that doesn't use a style similar to the enews widget, in which case yes, you would need to go into the CSS and make changes.

    Also, when you paste code into the forum, please use the code tags. This formats it in a legible way, and prevents it from breaking the site of anyone who copies the code.

    Let me know where the site is, and I'll have a second look!

    Best,
    Lauren


    We create mobile-first, PageSpeed-optimized, pixel-perfect custom themes! https://www.oncecoupled.com

    November 20, 2014 at 11:01 am #132287
    sethbahookey
    Member

    I am using the Genesis Sample Theme

    This is what the News Extender format looks like...

    This is what it is looking like with custom side bar...

    Any ideas on how to help? Can't send link as it is on a local hard drive.

    Thanks

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