• 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 content in Main navigation bar before navigation links

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 content in Main navigation bar before navigation links

This topic is: not resolved

Tagged: Logo, nav menu

  • This topic has 4 replies, 3 voices, and was last updated 6 years ago by Konspaul.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • July 17, 2016 at 6:37 am #189650
    Konspaul
    Member

    Hello,

    This site http://konstantin.raccoonbox.com/ has a small orange logo embed into main nav. The theme is WooThemes' Canvas them and the the code is written inside theme-actions.php.

    
    	?>
    		<a href="http://raccoonbox.com" onCLick="return confirm('Olet siirtymässä pois tältä sivulta ja jatkamassa raccoonbox.com sivulle. Tätäkö haluat?')"><img id="menu-logo-main-nav" src="http://raccoonbox.com/raccoonbox-img/RACCOONBOX-logo-SMALLnav.png" alt="raccoonbox logo in main manu"></a>
    		<?php
    

    I would like to have a same little logo in Genesis Sample theme main navigation (shop.raccoonbox.com) just before the navigation links. But I just can't seem to find a proper .php file that I should edit or the line where I should but this mentioned code. Could you please point me to the right direction?

    http://shop.raccoonbox.com
    July 17, 2016 at 7:52 am #189689
    Christoph
    Member

    Hi,

    you have a few options.
    You could simply add the logo in the customizer, and use the header right widget area for the navigation and style everything with css.
    Or you could add the code in functions.php in a hook for the right location.
    Here is a guide to the Genesis hooks: https://genesistutorials.com/visual-hook-guide/
    I might look something like

    add_action('genesis_after_header', 'add_logo_to_nav');
    function add_logo_to_nav() {
    you code goes here.
    }
    

    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    August 1, 2016 at 5:56 am #190568
    Konspaul
    Member

    Amazing! Thanks alot!

    August 1, 2016 at 7:00 am #190571
    Brad Dalton
    Participant

    Or you can filter the nav menu and float it to the left using this PHP code. Thats if you want it inline with and inside your nav menu.


    Recent Client work

    August 1, 2016 at 9:21 am #190576
    Konspaul
    Member

    Filtering nav menu? What do you mean?

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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

© 2022 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