Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • This the original code:

    /*
    Template Name: Custom Page Example
    */
    ?>
    <?php do_action( '__before_main_wrapper' ); ##hooks the header with get_header ?>
    <?php tc__f('rec' , __FILE__ , __FUNCTION__ ); ?>
    <div id="main-wrapper" class="container">
        <?php do_action( '__before_main_container' ); ##hooks the featured page (priority 10) and breadcrumb (priority 20)...and whatever you need! ?>
        <div class="container" role="main">
            <div class="row">
                <?php do_action( '__sidebar' , 'left' ); ?>
                    <div class="<?php echo tc__f( '__screen_layout' , tc__f ( '__ID' ) , 'class' ) ?> article-container">
    
                        <?php do_action ('__before_loop');##hooks the header of the list of post : archive, search... ?>
    
                            <?php
                                global $wp_query;
                                ##do we have posts? If not are we in the no search result case?
                                if ( have_posts() || (is_search() && 0 == $wp_query -> post_count) ) : ?>
                                    <?php if ( is_search() && 0 == $wp_query -> post_count ) : ##no search results case ?>
                                        <article <?php tc__f('__article_selectors') ?>>
                                            <?php do_action( '__loop' ); ?>
                                        </article>
                                    <?php endif; ?>
    
                                    <?php while ( have_posts() ) : ##all other cases for single and lists: post, custom post type, page, archives, search, 404 ?>
                                        <?php the_post(); ?>
                                        <article <?php tc__f('__article_selectors') ?>>
                                            <?php
                                            do_action( '__loop' );
                                            ##we don't want to display more than one post if 404!
                                            if ( is_404() )
                                                break;
                                            ?>
                                        </article>
                                    <?php endwhile; ?>
    
                                <?php endif; ##end if have posts ?>
    
                        <?php do_action ('__after_loop');##hooks the comments and the posts navigation with priorities 10 and 20 ?>
    
                    </div><!--.article-container -->
                <?php do_action( '__sidebar' , 'right' ); ?>
            </div><!--.row -->
        </div><!-- .container role: main -->
        <?php do_action( '__after_main_container' ); ?>
    </div><!--#main-wrapper"-->
    <?php do_action( '__after_main_wrapper' );##hooks the footer with get_get_footer ?>

    I fixed that by moving down ” <div id=”main-wrapper” class=”container”> ” above ” do_action( ‘__after_main_wrapper’ )” and it works fine.

    Thanks a lot and appreciate your help.

    Tasha, I couldn’t find either “do_action( ‘__fp_block’ )” or “get_footer()” in the original file of “custome-page.php”. Am I in hte wrong track?

    Thread Starter bsal62

    (@bsal62)

    Great. Ill check it!.

    Wonderfull Tasha !

    I followed your instructions but the futures circles appear above instead of below of the home page. What changes did you made in the custome-page.php to make this done?. One other thing. In my custome home page I changed the Layout to a two column sidebar whitout effect. How come?

    Great site Tasha !
    I wonder how did you manage to replace the demo-slider to a 2column side at the frontpage.

    Thread Starter bsal62

    (@bsal62)

    I see that S2member still has this bug/incompatibility with this plugin and can’t trust it anymore. Still hang up/dead when trying to login as a member(0-4). Through my debug logs I could see that these member levels are unrecognized(undefined).
    To get rid of this and continue my work, I decided to remove S2member and integrate the “Membership” WP-plugin. And guess what!….it works perfectly. It is very professional, simple and easy to integrate with a lot of free staff.

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