Main Menu
  • About
  • Blog
  • Code Your Site
Main Menu
  • WP Hosting
  • Review
  • Submit Your Blog
Main Menu
  • About
  • Blog
  • Contact
  • WP Hosting
  • Review
  • Submit Your Blog
Add Custom Logo to Genesis Child Theme
Home / Web Programming / How to Add Custom Logo to Genesis Child Theme

How to Add Custom Logo to Genesis Child Theme

  • Editorial Staff by Editorial Staff
  • Last Update 9 months ago
  • 3 Comments
wprocket

There are a bunch of tutorials that would work for you to add the custom logo to Genesis child theme. However, for my the last project, I had to write custom logo functions for a client site’s theme. Here is the step I added to functions.php:

  • Add custom logo function
  • Display custom logo function
  • Remove title/logo metabox from Genesis theme options page function
  • Remove title/logo metabox from Genesis customizer function

Add Custom Logo to Genesis Child Theme

So, here is the code snippet to add the custom logo to a child theme:

// Add custom logo or Enable option in Customizer > Site Identity
add_theme_support( 'custom-logo', array(
    'width'       => 244,
    'height'      => 315,
    'flex-width' => true,
    'flex-height' => true,
    'header-text' => array( '.site-title', '.site-description' ),
) );

After adding this code to your theme’s functions.php, you’ll see something like the screenshot below.

Custom Logo
We enable the option in Customizer > Site Identity

Select your logo and save it. Let’s display your logo now. Add the code below to display the custom logo that has selected already.

// Display custom logo 
add_action( 'genesis_site_title', 'the_custom_logo', 0 );

You’ll see your custom logo displaying as like as the screenshot below after adding the code of showing.

Display Custom Logo
Display Custom Logo to Genesis Child Theme

Okay, we have a metabox for selecting the option for the header; “Image Logo” and “Dynamic Text” in Genesis Theme Setting page. So, I think we don’t need that metabox anymore. Let’s remove it. Add the following function to your theme’s functions.php

function be_remove_metaboxes( $_genesis_admin_settings ) {
  remove_meta_box( 'genesis-theme-settings-header', $_genesis_admin_settings, 'main' );
}

// Remove title/logo metabox from Genesis theme options page
add_action( 'genesis_theme_settings_metaboxes', 'be_remove_metaboxes' );

I think we don’t need title/logo metabox in Genesis customizer also. So, here is the screenshot with red marking area going to remove.

Image-logo

Here is the code snippet to remove title/logo metabox from Genesis customizer:

wprocket-728x98_Black

function es_theme_customize_register( $wp_customize ) {
    $wp_customize->remove_control('blog_title');
}

// Remove title/logo metabox from Genesis customizer
add_action( 'customize_register', 'es_theme_customize_register', 99 );

We have done except adding a few CSS lines. If you want you could add them to your style.css

.wp-custom-logo .site-title {
    position: absolute!important;
    clip: rect(0,0,0,0);
    height: 0;
    width: 0;
    border: 0;
    overflow: hidden;
}

.wp-custom-logo .site-description {
    position: absolute!important;
    clip: rect(0,0,0,0);
    height: 0;
    width: 0;
    border: 0;
    overflow: hidden;
}

Here is the full snippet of adding the custom logo to Genesis child theme:

// Add custom logo or Enable option in Customizer > Site Identity
add_theme_support( 'custom-logo', array(
    'width'       => 244,
    'height'      => 315,
    'flex-width' => true,
    'flex-height' => true,
    'header-text' => array( '.site-title', '.site-description' ),
) );

// Display custom logo
add_action( 'genesis_site_title', 'the_custom_logo', 0 );

function be_remove_metaboxes( $_genesis_admin_settings ) {
    
    remove_meta_box( 'genesis-theme-settings-header', $_genesis_admin_settings, 'main' );
}

// Remove title/logo metabox from Genesis theme options page
add_action( 'genesis_theme_settings_metaboxes', 'be_remove_metaboxes' );

function es_theme_customize_register( $wp_customize ) {
 
    $wp_customize->remove_control('blog_title');
 
}

//Remove title/logo metabox from Genesis customizer
add_action( 'customize_register', 'es_theme_customize_register', 99 );

Leave feedback if you face there any issue. Thank you all. Happy coding!

You will love the following tutorials:

  • How to Add Nofollow Tag to a Certain Domain
  • How to Add Visitor Counter to Website in PHP
  • How to Combine a Background Image and CSS3 Gradient on the Same Element
  • How to Popup Genesis eNews Extended Opt-in Form
  • 11 Genesis Framework Hacks for Beginner
  • How to Use HTML Form [PHP]
  • Starting with WordPress Metafields
  • How to Store XML Data to PHP Variable
  • How to Create Awesome Input Range Slider
  • How to Make HTML Form Work and Send Mail

GenesisPro728x90

Facebook
Twitter
LinkedIn
Pinterest
Tumblr
Editorial Staff

Editorial Staff

Editorial Staff is an in-house team of native WordPress developer and industry columnists lead by Anwer Ashif. Join the community of 2,77,752 users.

3 thoughts on “How to Add Custom Logo to Genesis Child Theme”

  1. Kamal kumar says:
    February 9, 2019 at 7:51 pm

    Very mush helpful, thanks for this awesome post

    Reply
  2. venkatesh kumar says:
    April 5, 2019 at 3:18 pm

    Hi,
    The article is very much helpful. I was struck while installing the genesis theme. thanks for the help and adding the value.

    Reply
  3. ARE says:
    August 25, 2021 at 4:26 pm

    The metabox for Theme Settings > Header > “Use for site title/logo” is still displaying. Is there something missing in the PHP code/

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Get the $97 Book for FREE!

Table of Contents

Popular Guides

  • Start a Blog on Budget
  • Best Keyword Research Tools
  • Best WordPress Hosting Companies
  • Build eCommerce Website Using WooCommerce
  • Best Practices WordPress SEO OnPage Guide
  • Best Paypal Alternative For Business
  • Guide to Build a Profitable Online Business
  • Securing Your WordPress Website
Main Menu
  • About Us
  • Contact Us
  • Write for Us
  • Work with Us
  • Advertise with Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Services
© 2025 RainaStudio.com
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.AcceptRead More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT