Missing menu from one page

Home Forums Jevelin Theme Missing menu from one page

Home Forums Jevelin Theme Missing menu from one page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    RESOLVED Posts
  • spalloney
    Participant

    Hello,

     

    I followed instructions from a website on coding a custom archive and it worked, but for some reason on my archive page I am missing the menu bar at the top.

     

    The menu appears on every other page except the custom archive one. All of the other Jevelin elements appear on the archive page.

     

    Is there a way to add the menu to the archive page?

     

    Also when I preview the page, unlike other pages there is no wordpress menu at top or options to edit with yellow pencil.

     

    thanks

     

    • This topic was modified 4 years, 6 months ago by spalloney.

    Hi @spalloney,

     

    I hope you are well today and thank you for your question.

     

    Are you adding the header.php file in the custom template using get_header function?

     

    Could you please share with me the file of your custom template?

     

    Also, could you please share the page URL from your site where it is not displaying so that I can troubleshoot it?

     

    Best regards,
    Shufflehound team

    spalloney
    Participant

    Here you go. Thanks (didn’t know how to share the file so just sent you the code for that page.) let me know if you need more.

     

    https://theforgottenwars.com/archive/

     

     

     

    <?php
    /*
    Template Name: Archives
    */
    ?>
    <?php
    /**
    * Single Page
    */

    if( jevelin_page_layout() == ‘sidebar-right’ || jevelin_page_layout() == ‘sidebar-left’ ) :
    $layout_sidebar = esc_attr( jevelin_page_layout() );
    endif;

    $class = ”;
    if( function_exists(‘fw_ext_page_builder_is_builder_post’) && !fw_ext_page_builder_is_builder_post( get_queried_object_id() ) ) {
    $class = ‘ page-default-content’;
    }
    get_header(); ?>

    <div id=”content” class=”page-content <?php if( isset($layout_sidebar) && $layout_sidebar ) : ?>content-with-<?php echo esc_attr( $layout_sidebar ); endif; ?><?php echo esc_attr( $class ); ?>”>

    <?php
    if( jevelin_get_thumb( get_the_ID() ) ) : ?>
    <div class=”page-featured-image”>
    ” data-rel=”lightcase”>
    <?php echo the_post_thumbnail( ‘jevelin-landscape-large’ ); ?>

    </div>
    <?php endif; ?>

    <?php
    while ( have_posts() ) : the_post();
    the_content();
    endwhile;
    ?>

    <?php /* Clear unclosed floats */ ?>
    <div class=”sh-clear”></div>

    <?php
    if ( comments_open() || get_comments_number() ) :
    comments_template();
    endif;

    if ( is_singular() ) :
    wp_enqueue_script( ‘comment-reply’ );
    endif;
    ?>

    </div>
    <?php if( isset($layout_sidebar) && $layout_sidebar ) : ?>
    <div id=”sidebar” class=”<?php echo esc_attr( $layout_sidebar ); ?>”>
    <?php get_sidebar(); ?>
    </div>
    <?php endif; ?>

    <?php get_footer(); ?>
    <p>By Date</p>

      <?php compact_archive($style=’block’); ?>

    <p>Categories:</p>
    <ul class=”bycategories”>
    <?php wp_list_categories(‘title_li=’); ?>

    <div class=”clear”></div>

    Solution for this topic

    The header is there on your shared page but you have made it hidden developing CSS code using Yellow Pencil Editor so please remove that CSS code to display it.

     

    You can reset the Yellow Pencil editor as described in the below pages.

     

    https://yellowpencil.waspthemes.com/docs/managing-changes-on-entire-website/
    https://yellowpencil.waspthemes.com/docs/managing-the-element-styles/

    spalloney
    Participant

    Thank You so much. Support is always so helpful, even when I have dumb questions. 🙂

    You are always welcome here 🙂

Viewing 6 posts - 1 through 6 (of 6 total)