• Resolved Tasha

    (@queenv)


    Thank you for a great looking theme. Everything works really well and I’ve managed to customize it a bit through your helpful forum.

    The one thing that I am struggling with is adjusting the width if the site. The full size slider is too much for the look I’m trying to achieve. But with the slider more narrow the rest of the site looks to wide. Everything I try breaks the responsiveness of the site.

    I think the width of the navigation would work but I just can’t get it right. I’m using a child theme and here is a link to the test site. (far from finished)

    https://www.granthamfarm.angelicdesign.co.uk/

    Any help would be much appreciated.
    Thank you
    Tash

Viewing 16 replies (of 16 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.

Viewing 16 replies (of 16 total)
  • The topic ‘Width of header and pages’ is closed to new replies.