• 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

Add site logo to navigation bar in Magazine Pro

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 › Add site logo to navigation bar in Magazine Pro

This topic is: not a support question

Tagged: Magazine Pro, Navigation Bar, site identity, site logo

  • This topic has 1 reply, 2 voices, and was last updated 4 years, 7 months ago by AnitaC.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • November 7, 2020 at 8:42 am #501815
    gevangelisti7
    Participant

    I am trying to add my site logo to my navigation menu. I would like the site logo to link back to the homepage in an ideal world.

    I recently implemented some code on the site that removed the site identity at the top of the site and was supposed to add the header image into the navigation menu bar - it did not work due to the site not having a header image/ not being able to implement one in the updated version of Magazine Pro. I have implemented the code below to see if anyone has any ideas on how to make the code pull the site logo instead of the header image.

    /***********************************
    Removing site identity at top of pages
    ************************************/
    // Remove Site Header.
    remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
    remove_action( 'genesis_header', 'genesis_do_header' );
    remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );

    add_action( 'wp_head', 'custom_home_menu_item_background' );
    /**
    * Set header image (if set) as background for Home menu item.
    */
    function custom_home_menu_item_background() {
    if ( ! get_header_image() ) {
    return;
    } ?>

    <style type="text/css">
    .nav-primary li.menu-item-home a {
    background-image: url(<?php echo get_header_image(); ?>);
    background-repeat: no-repeat;
    background-size: contain;
    text-indent: -9999em;
    width: 190px;
    height: 45px;
    padding: 0;
    }

    @media only screen and (max-width: 2000px) {

    .nav-primary.genesis-responsive-menu li.menu-item-home a {
    margin: 15px 0 15px 15px;
    }

    }
    </style>
    <?php
    }
    /**** End of Code ****/

    If you think you have a simpler version of code to remove the site identity from the site and have the site logo appear on the navigation bar I would love to hear it.

    Thanks!

    https://collegetotal.com/
    November 12, 2020 at 6:10 pm #501914
    AnitaC
    Keymaster

    Using Google Search, there are a few tutorials on how to do this.

    We are volunteers on the forum. If posts go unanswered it's due to someone not knowing the answer.


    Need help with customization or troubleshooting? Reach out to me.

  • 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