Support » Theme: Kerli lite » Layout is stretched horizontally

  • Resolved dvamyprlestat


    Help, please.

    It’s my blog:

    Except for the header, which is still 960px wide, the rest is stretched, so there are no margins on the left, and it looks awkward. The body used to be aligned with the header. How do I restore that back, please? I don’t want to change my theme because I prefer Kerli.

    I hope you guys can help me. Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • your theme seems to have some broken code within this section in header.php:

    if (get_theme_mod('kerli_lite_logo_active') == 1) {
    						$div_image_header = '<div class="logo-header-wrapper">';
    						if (get_theme_mod('kerli_lite_logo_center') == 1) $div_image_header = '<div class="logo-header-wrapper-center">';
    						$div_image_header = '<div class="image-header-wrapper">';
    					} ?>
    					<?php //echo $div_image_header; ?>
    					<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> <img src="<?php header_image(); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" /></a>
    					</div><!-- logo-header-wrapper -->

    i.e. the important code line is commented out:

    <?php //echo $div_image_header; ?>

    either restore the line to:

    <?php echo $div_image_header; ?>

    or remove this line:

    </div><!-- logo-header-wrapper -->

    Thank you so much, I tried the first option and it worked!!

    What could have been the reason for it being edited out? I am completely clueless with .css, so I stay away from it, so I don’t think it was because I changed anything. Just so I can avoid doing it again in the future. 🙂

    Thank you again in advance!

    whoops…nevermind! Fixed it 🙂

    What could have been the reason for it being edited out?

    this is in the original theme files – so not any of your edits.

    hopefully, the theme’s developer will see this topic and fix the problem.

    Michael you are a LIFE SAVER, I couldn’t find a way to contact the developer but they definitely should be made aware their latest update broke it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Layout is stretched horizontally’ is closed to new replies.