internal page help

Homepage Community Forums Legacy Theme Support internal page help

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1162
    Cove145
    Customer

      I am not using a primary nav only a header nav.  On my internal pages I still want the  colored section where the primary nav would be, but when I don’t have a primary nav there  is no section.  How can I add this section without using a primary nav?
      Thanks
      kris

       

      #1163
      Wes
      Moderator

        You could just add the exact same nav ID in your functions file like this –

        /** Nav Bar */
        add_action('genesis_after_header', 'nav_bar');
        function nav_bar() {
        echo '<div id="nav"></div>';
        }

        Then add some padding to the #nav in your css on or around line 321.

        #1164
        Cove145
        Customer

          so when I do that it adds to the home page which creates space above my slider.  Can I exclude it from the home page or is there a differnt solution?

          Thanks
          kris

          #1165
          Wes
          Moderator

            It shouldn’t add extra space unless you added too much padding.  How much padding did you add?

            I added 20px and it worked fine for me.

            #1166
            Cove145
            Customer

              I added 20px, it is adding the nav bar on the home page.

              Look at my home page.

              http://www.takesoneaction.com

               

              #1167
              Wes
              Moderator

                Add this to your style.css to remove it from the homepage

                .home #nav {
                display: none;
                }

                #1174
                Cove145
                Customer

                  thanks

                  #1175
                  Wes
                  Moderator

                    You’re Welcome

                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • The topic ‘internal page help’ is closed to new replies.