• 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

Unregister sidebar widget in single page

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 › Unregister sidebar widget in single page

This topic is: resolved

Tagged: Outreach Pro, primary sidebar, remove, Sidebar, unregister, widget

  • This topic has 7 replies, 2 voices, and was last updated 11 years, 11 months ago by wizz6113.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • June 23, 2014 at 2:52 am #111124
    wizz6113
    Member

    How do I unregister the default primary sidebar widget on single pages? I have installed the Genesis Simple Sidebars plugin, which is helping register bespoke widgets per page, but I simply want no widgets at all (but retaining sidebar space for the future) on some pages like this one:

    http://wpreneur.com/iicss/about-iicss/fellows/

    How do I go about it? In the simple hooks plug-in or hard code? I am using Outreach Pro.

    Thanks!

    http://wpreneur.com/iicss/about-iicss/fellows/
    June 23, 2014 at 3:56 am #111129
    Brad Dalton
    Participant

    unregister the default primary sidebar widget on single pages

    You mean remove the primary sidebar from single pages?


    Tutorials for StudioPress Themes.

    June 23, 2014 at 4:08 am #111131
    wizz6113
    Member

    Yes, Brad, that's what I mean - simply to not have that default black box and text showing up. If I put a blank text widget in a bespoke widget created using Simple Sidebar plugin, I still get a empty black box. I just need white space there!

    Tnx!

    June 23, 2014 at 4:23 am #111132
    Brad Dalton
    Participant

    I would hide it using CSS.

    Otherwise, you can create a template for single pages using the WordPress Template Hierarchy http://codex.wordpress.org/Template_Hierarchy

    and add the remove action for the primary sidebar

    The other option is to conditionally remove the sidebar using a custom function.

    Where is the black box? Please link to it.


    Tutorials for StudioPress Themes.

    June 23, 2014 at 4:28 am #111133
    wizz6113
    Member

    Brad, thanks for this.

    The 'black box' is basically the widget box (in my theme coloured black as background) which shows either the default primary sidebar prompt or a content-empty box when I tried my (failed) workaround of creating an empty text box for a new widget using simple sidebars plugin. As per this eg: http://wpreneur.com/iicss/about-iicss/fellows/

    If I opt to remove the hook for the sidebar how and where can I do it for single pages / posts? I have the Simple Hooks plug in installed.

    In CSS, I have no idea where to attempt to hide some page (or post) IDs to get it removed on single pages / posts only. Any quick links or idea to help?

    Tnx for all!

    June 23, 2014 at 4:52 am #111134
    Brad Dalton
    Participant

    I don't see any black box except for the footer. http://wpsites.net/web-design/genesis-3-ways-to-remove-the-primary-sidebar-from-single-pages/


    Tutorials for StudioPress Themes.

    June 23, 2014 at 5:39 am #111136
    wizz6113
    Member

    Thanks Brad, it's the black default widget background in the right sidebar, but not to worry. It now seems I simply need to remove the primary sidebar widget altogether, on all pages, not single ones, so perhaps that makes life easier?

    I'll go see your link above to see if that helps.

    Cheers,

    June 23, 2014 at 5:59 am #111138
    wizz6113
    Member

    HI Brad, very simple solution to my issue - as it's not now custom sidebar per page / post but remove altogether; I just chose a different page template for each page to suit!

    Feel really silly not thinking of that earlier. But your info v useful for a future job I need to do on another site. Thanks so much.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Unregister sidebar widget in single page’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

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