Winning Agent

Sales That Work

  • About
  • Store
  • Blog
  • The Stream
  • Forum
  • Jobs

Remove Primary Nav from Homepage but keep it on other pages

Home › Forums › Winning Agent Pro Theme › Remove Primary Nav from Homepage but keep it on other pages

  • This topic has 2 replies, 3 voices, and was last updated 8 years, 1 month ago by rtibbs4.
Viewing 2 reply threads
  • Author
    Posts
    • April 6, 2014 at 5:24 pm #2758
      danwedin
      Participant

      How can I remove the primary nav on the homepage but keep it on other pages? Is there a plugin that will allow you to select pages for the primary nav to be displayed on?


    • April 7, 2014 at 9:01 am #2765
      Carrie Dils
      Member

      Hi Dan,
      You could add a conditional statement. Something along the lines of:

      
      // Remove nav from regular location
      remove_action( 'genesis_after_header', 'genesis_do_nav' );
      // Add custom nav function instaed
      add_action( 'genesis_after_header', 'my_selective_nav' );
      function my_selective_nav() {
          
         // if we're not on the front page, display the nav
         if ( ! is_front_page() ) {
             genesis_do_nav();
         }
      }

      Note that code is UNTESTED and could blow up your functions file. But that’s the general idea of how you’d go about it.

      Cheers,
      Carrie


    • May 21, 2014 at 1:48 pm #3025
      rtibbs4
      Participant

      Wondering if this code was tested?


  • Author
    Posts
Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Log In

Forum Login

Log In
Register Lost Password

Search Forums

StudioPress Real Estate WordPress Theme: Agent Focused Pro Theme
StudioPress Premium WordPress Themes: Winning Agent Pro Theme

Recent Replies

  • How to edit main page background image opacity
  • Fresh Install Issues
  • Remove Background Image
  • Sidebar on Homepage
  • Featured Page on Homepage Not Clickable
OptinMonster

Loan Types & Property Definitions

There are a lot of different types of mortgages, and there are a lot of different types of real estate property. Here is a list of the most common types of each. We’ve added some links to the most popular articles on the subject.

Read More

Real Estate and Mortgage Forum

We think getting many viewpoints to a particular question is important because it helps you to make better decisions. It’s so important that we have woven the Forum all throughout Winning Agent. We invite you to ask questions, make comments, and be part of the discussion.

Read More

Glossary of Real Estate Terms

Real estate and mortgage finance often times comes with its own unique language. If you work with it every day, it becomes 2nd nature, but most people don’t work with it every day. So we’ve created a glossary of mortgage and real estate terms.

Read More

Copyright © 2022 Winning Agent · Powered by the Genesis Framework · Contact Us
Become an Affiliate
This site uses affiliate links, but know that we only recommend products we personally use and enjoy!