• 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

How to add or change class in Genesis Child themes?

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 › How to add or change class in Genesis Child themes?

This topic is: not resolved

Tagged: classes

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 9 months ago by rogger.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 31, 2015 at 10:47 am #169728
    rogger
    Member

    I want to modify site-title and a lot of Genesis classes.

    Currently i want to change <div class="title-area"> to <div class="logo-wrap">

    How can i achive this? Any support will be appreciated. Thanks

    October 31, 2015 at 11:57 am #169743
    Victor Font
    Moderator

    You would have to replace Genesis core code with your own functions. To change the title-area class, you need to remove_action( 'genesis_header', 'genesis_do_header' ); in functions.php, then add your own header function. If you look at genesis_do_header() in genesis/lib/structure/header.php. you can model your new function after this one. If you're not an experienced coder, you're asking for a lot of heartache. Instead of replacing core functions, why wouldn't you just change the CSS to have the title-area appear as you want it?


    Regards,

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

    October 31, 2015 at 1:29 pm #169754
    rogger
    Member

    Thanks Victor For your awesome help. Actually, I am trying to put

    Logo + Nav Primary Menu + Social Icons + Search Button inside header. What i tried is to add custom header with the help of some previous support tickets on this forum. However, I haven't achieved what i am looking for yet. Here is my code.

    remove_action('genesis_header', 'genesis_do_header');
    remove_action('genesis_header', 'genesis_header_markup_open', 5);
    remove_action('genesis_header', 'genesis_header_markup_close', 15);
    add_action('genesis_header', 'custom_header');
    function custom_header() { ?>
    	<header class="site-header" role="banner" itemscope="itemscope" itemtype="http://schema.org/WPHeader">
    		<div class="wrap">
    			<div class="logo-wrap">
    				
    					<a href="#" alt="My Revies">
                <img src="/logo.png" title="My Reviews"></a>
    				
    			</div>
    		
    		</div>
    	</header>
    <?php }
    

    Now i need some code to put nav-primary and social icons in this code. Thanks again for your awesome support.

  • 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