• 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

Genesis sample child theme stylesheet specificity

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 › Genesis sample child theme stylesheet specificity

This topic is: not resolved

Tagged: custom logo, Logo, wp-custom-logo

  • This topic has 1 reply, 2 voices, and was last updated 4 years, 11 months ago by Brad Dalton.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 1, 2020 at 6:35 pm #499797
    Jane James
    Member

    Hi all,

    I am new to genesis and I have added theme support for my custom logo in the genesis header, since this is not included with genesis sample. I aded this to my functions.php file:

    add_theme_support( 'custom-logo', array(
    'height' => 140, // set to your dimensions
    'width' => 140,
    'flex-height' => true,
    'flex-width' => true,
    ) );

    The logo is showing perfectly, but I want to reduce the width to 50%. When I inspect the element, I get this css rule:

    .wp-custom-logo .title-area img {
    width: auto;
    }

    When I change the width to 50% in chrome dev tools, its the right size. This rule is being inherited from Genesis parent theme.

    I tried altering the width on my child theme style.css and header.scss files to 50% but the parent theme specificity is higher priority. I have tried adding !important at the end of the rules in genesis sample/style.css and still no working.

    I was wondering if I can declare the child theme stylesheet to have priority over the parent theme in my functions file (I assumed this woud be the case but Im wrong.)

    Can anyone share how they solved this issue?

    Thanks alot

    July 1, 2020 at 10:17 pm #499825
    Brad Dalton
    Participant

    Works when i test it in the latest version.

    What happens if you add the CSS inline using the Additional CSS input field via the customizer?

    Make sure you clear caching both server/plugin and browser caching.


    Tutorials for StudioPress Themes.

  • 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

© 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