Jump to content

Responsive problem with footer


rockman2044

Recommended Posts

Hello, there is some position problem with my footer and I have no clue what happen it is, I want to reset the footer position but I can't reset it in any way, please help

 

HVZ1NfV.png

^The above is the footer in full size

 

 

1GXHihz.png

^The above is the footer in half size or mobile size

Link to comment
Share on other sites

Your theme comes from the default-bootstrap theme and I suggest to follow it. More of your footer blocks use <div></div> envelope. Compare

 

the default-bootstap HTML

<footer id="footer" class="container">
    <div class="row">
        <div id="newsletter_block_left" class="block">
        <section id="social_block" class="pull-right">
        <div class="clearfix"></div>
        <section class="blockcategories_footer footer-block col-xs-12 col-sm-2">
        <section id="block_various_links_footer" class="footer-block col-xs-12 col-sm-2">
        <section class="bottom-footer col-xs-12">
        <section class="footer-block col-xs-12 col-sm-4">
        <section id="block_contact_infos" class="footer-block col-xs-12 col-sm-4">
    </div>
</footer>

and your HTML

<footer id="footer" class="container">
    <div class="row">
        <div class="col-md-5">
            <section id="social_block" class="pull-right">
            <div class="clearfix"></div>
        </div>
        <div class="col-md-5">
            <section class="blockcategories_footer footer-block col-xs-12 col-sm-2">
        </div>
        <div class="col-md-5">
            <section id="block_various_links_footer" class="footer-block col-xs-12 col-sm-2">
        </div>
        <div class="col-md-5">
            <section class="footer-block col-xs-12 col-sm-4">
        </div>
        <div class="col-md-4">
            <section id="block_contact_infos" class="footer-block col-xs-12 col-sm-4">
        </div>
    </div>
</footer>
Link to comment
Share on other sites

I believe the problem is with my $hook_footer, because the code in my footer.tpl  is as default and not changed

 

{if !isset($content_only) || !$content_only}

</div><!-- #center_column -->
{if isset($right_column_size) && !empty($right_column_size)}
<div id="right_column" class="col-xs-12 col-sm-{$right_column_size|intval} column">{$HOOK_RIGHT_COLUMN}</div>
{/if}
</div><!-- .row -->
</div><!-- #columns -->
</div><!-- .columns-container -->
{if isset($HOOK_FOOTER)}
<!-- Footer -->
<div class="footer-container">
<footer id="footer"  class="container">
<div class="row">{$HOOK_FOOTER}</div>
</footer>
</div><!-- #footer -->
{/if}
</div><!-- #page -->
{/if}
{include file="$tpl_dir./global.tpl"}
</body>
</html>

 

I have no idea how to make the html looks like the default-bootstap HTML, please help

 

Your theme comes from the default-bootstrap theme and I suggest to follow it. More of your footer blocks use <div></div> envelope. Compare

 

the default-bootstap HTML

<footer id="footer" class="container">
    <div class="row">
        <div id="newsletter_block_left" class="block">
        <section id="social_block" class="pull-right">
        <div class="clearfix"></div>
        <section class="blockcategories_footer footer-block col-xs-12 col-sm-2">
        <section id="block_various_links_footer" class="footer-block col-xs-12 col-sm-2">
        <section class="bottom-footer col-xs-12">
        <section class="footer-block col-xs-12 col-sm-4">
        <section id="block_contact_infos" class="footer-block col-xs-12 col-sm-4">
    </div>
</footer>

and your HTML

<footer id="footer" class="container">
    <div class="row">
        <div class="col-md-5">
            <section id="social_block" class="pull-right">
            <div class="clearfix"></div>
        </div>
        <div class="col-md-5">
            <section class="blockcategories_footer footer-block col-xs-12 col-sm-2">
        </div>
        <div class="col-md-5">
            <section id="block_various_links_footer" class="footer-block col-xs-12 col-sm-2">
        </div>
        <div class="col-md-5">
            <section class="footer-block col-xs-12 col-sm-4">
        </div>
        <div class="col-md-4">
            <section id="block_contact_infos" class="footer-block col-xs-12 col-sm-4">
        </div>
    </div>
</footer>
Link to comment
Share on other sites

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...