• 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

Metro Header Text Widget Styling

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 › General Discussion › Metro Header Text Widget Styling

This topic is: not resolved

Tagged: Metro text widget

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 11 months ago by Bill Murray.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 13, 2013 at 7:29 am #20054
    jeff9661
    Participant

    In the Metro child theme I need to align the text widget in the header (phone number) to the right and make it bigger. This should be easy, but I'm not really identifying the proper class or ID (using Firebug). I'm looking at the rule at line 508 ( see below). When I try and separate out #header .widget, to style separately the whole layout falls apart.

    http://acmesign.wwwsr4.supercp.com/wp-three/

    .content-sidebar-sidebar #sidebar-alt,
    .footer-widgets-3,
    .home-middle-right,
    .sidebar,
    .sidebar-content #content,
    .sidebar-content-sidebar #content-sidebar-wrap,
    .sidebar-sidebar-content #content,
    .sidebar-sidebar-content #content-sidebar-wrap,
    #footer .creds,
    #header .widget-area {
    float: right;

    }

    February 13, 2013 at 8:54 am #20063
    Bill Murray
    Member

    You can target it specifically with an ID of #text-13.


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    February 19, 2013 at 8:45 am #21314
    jeff9661
    Participant

    Thanks Bill, that did work. The only problem is if the widget gets updated the target id changes and the CSS has to been updated. I've assigned a specific class within the widget area itself.  That also works, but can be tricky regrading specificity and the cascade, I had to use !important to get some of the style to work.

    February 19, 2013 at 9:35 am #21338
    Bill Murray
    Member

    1) You can change the text of the widget without triggering a new ID. The only thing that would trigger a new ID would be changing the widget that's there. And yes, if you change that widget, the ID will change.

    2) Assigning a specific class in a text widget works too.

    3) !important is best avoided here. Having to use it just means you haven't gotten the CSS specific enough.

    4) From your original post, your problem might have been separating out the header styling. Instead of separating out, you can simply add new styling rules for this area. You presently have rules for ...

    #header .wrap .widget-area #text-13 .widget-wrap

    ...which is ultra specific.

    You could simply use ...

    #header .widget-area

    ...which would make it less specific but therefore less likely to require changing due to just changing the widget. Of course, any widget change might require styling changes anyway.

    If you find that your styling rules aren't working the way you expect, they might be getting mixed with your media queries for mobile responsive styling at the bottom of your stylesheet.


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ 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

© 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