• hello i have created a new website with magazon theme and i had to create an static page for my home website. the problem is that the page navigation on the home page does not work and it works only in catories ecc

    this is the index.html code:

    <?php
    do_action('st_theme_init');
    get_header(); ?>
    <div class="main-outer-wrapper mt30">
        <div class="main-wrapper container">
            <div class="row row-wrapper">
                <div class="page-wrapper twelve columns b0">
                    <div class="row">
                        <?php
                           $default_layout  =  intval(st_get_setting("layout",3));
                           if(is_singular()):
                                global $post;
                                $st_page_builder = get_page_builder_options($post->ID);
                                $layout = intval($st_page_builder['layout']);
                                if(in_array($layout,array(1,2,3,4))){
                                   $default_layout = $layout  ;
                                }
                            endif;
                            do_action('st_before_layout');
                           // $file  = ST_TEMPLATE_DIR.'/layout/'.st_get_layout($default_layout).'.php';
                          //  include($file);
                           get_template_part('st-framework/templates/layout/'.st_get_layout($default_layout),'');
                            do_action('st_after_layout');
                         ?>
    
                     </div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
    </div> <!-- END .main-outer-wrapper -->
    <?php
    get_footer();

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser. https://codex.www.ads-software.com/Forum_Welcome#Posting_Code ]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page Navigation not working only on index’ is closed to new replies.