• 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 Text Widget

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 Text Widget

This topic is: resolved
  • This topic has 7 replies, 2 voices, and was last updated 12 years, 8 months ago by Christopher Harris.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • September 15, 2013 at 1:58 pm #62668
    KM
    Participant

    Hello, how do I create and install a custom text widget that has no padding and background color. I would like to be able to drag this custom text widget from the "Available Widgets" area into the Primary or Secondary Sidebar.

    I also want to keep and use the default text widget.

    Thank you.

    September 15, 2013 at 2:15 pm #62676
    Christopher Harris
    Member

    You can create specific CSS for a specific widget that has no padding and the background color you would like. You will not have to create a special text widget for this. The CSS would look something like this...

    #text-1 {padding: 0; background: black;}

    You will need to use the id of your custom widget (#text-1 in my example above). To find the id use something like firebug in Firefox or Developer tools in Chrome.


    WordPress Consultant and Genesis Developer http://wpattendant.com

    September 15, 2013 at 10:19 pm #62767
    KM
    Participant

    Thank you very much for that Christopher.

    The reason why I wanted a custom text widget is because I will be using different sidebars that show unique content on specific pages and would like to drag that same custom widget style in the other sidebars.

    Is there a way then I can achieve this without a custom text widget?

    September 16, 2013 at 9:01 am #62826
    Christopher Harris
    Member

    I use simple sidebars to control which widgets appear on which pages...
    http://wordpress.org/plugins/genesis-simple-sidebars/


    WordPress Consultant and Genesis Developer http://wpattendant.com

    September 16, 2013 at 1:20 pm #62862
    KM
    Participant

    Yes I have simple sidebars but how do I get that same custom style widget into a different sidebar?

    September 20, 2013 at 10:37 am #63535
    Christopher Harris
    Member

    You will have to create a new widget for the site the other sidebar you want to place it in then add it's unique is to to you CSS and then it will be styled the same.

    Using the same sample code from before you would do this to have the widgets styled the same for your different sidebars:

    #text-1,
    #text-2 {
        padding: 0; 
        background: black;
    }

    WordPress Consultant and Genesis Developer http://wpattendant.com

    September 20, 2013 at 4:32 pm #63589
    KM
    Participant

    Ahhh yes of course, that makes sense. Thank you Christopher!

    September 20, 2013 at 4:57 pm #63592
    Christopher Harris
    Member

    Happy to help!


    WordPress Consultant and Genesis Developer http://wpattendant.com

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Custom Text Widget’ 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