Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29550

    I am trying to add a nav bar with hotlinks set up after my header that shows on above the main content section of a specific page. However all that shows when I load the page is the header and no content OR the navbar.

    I added this code to my header.php file

    (‘

    <?php

    if ( is_next_steps() ) :

    get_header( ‘steps’ );

    endif

    ?>

    ‘)

    ??

    #140958

    Hey,

    Where did you get the code? On what part of header.php did you add the code?

    Did you create a header called header-steps.php?

    Regards,

    Ismael

    #140959

    I created a header called header-steps.php

    I added the php code that I mentioned before into the header.php file at the end of the container, like so:

    <!– end container–>

    </div>

    <?php

    if ( is_next_steps() ) :

    get_header( ‘steps’ );

    endif

    ?>

    <!– end container_wrap–>

    </div>

    #140960

    Hi,

    You can’t create a header inside a header. You need to insert the code on a page template like page.php, find the code:

    get_header();

    Replace it with yours.

    Regards,

    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add Nav Bar under header before main content’ is closed to new replies.