• 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

Get rid of the .header-full-width class

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 › Get rid of the .header-full-width class

This topic is: resolved

Tagged: Header Full Width

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 4 months ago by Andrea Barghigiani.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 6, 2017 at 5:09 am #202548
    Andrea Barghigiani
    Member

    Hi StudioPress Team and Community,
    I feel kind of dumb to ask you this question but how can I get rid of the .header-full-width from my body element?

    I am use to work with Genesis to develop my custom child themes but this time I do not know how to remove this class from my body that will fire a CSS class that I do not use.

    I've used the "Genesis Starter Theme" for this project and I've also checked inside my functions.php and also the Theme Settings in order to find if there was an option that I didn't see.

    Unfortunatly I didn't find anything so I am here looking for help 🙂

    Any advice will be useful but please do not tell me to edit my CSS file to get rid of the class, this is a simple fix and I could do it even by myself. In this case I am looking to understand even better how Genesis work and what I am missing.

    Thanks for your time and keep up your great work!


    SkillsAndMore: the italian go to resource for web development.

    March 6, 2017 at 8:03 am #202556
    Victor Font
    Moderator

    The header-full-width class is added if you are not using the header right widget area. I haven't tested this, but believe it will work if you add it to functions.php:

    add_filter( 'body_class', 'remove_header_full_width_class' );
    function remove_header_full_width_class( $classes ) {
     
        unset($classes['header-full-width']);
     
        return $classes;
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 6, 2017 at 8:28 am #202563
    Andrea Barghigiani
    Member

    Thank you so much Victor!
    I was sure there was something that I've missed and it was the use of the Header Right sidebar!

    I didn't have to run your snippet because I started using the widget area 😉

    Thank you for your keep answer and keep up the good work.
    Andrea


    SkillsAndMore: the italian go to resource for web development.

  • 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

© 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