Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full width footer no longer responsive? #109

Open
richardthiru opened this issue Mar 6, 2013 · 4 comments
Open

Full width footer no longer responsive? #109

richardthiru opened this issue Mar 6, 2013 · 4 comments

Comments

@richardthiru
Copy link

Hi there,

When I modified the theme to use a full-width footer, I noticed that content I put in the footer would no longer move/scale to the other browser sizes. Any idea how I can remedy this?

@mojaray2k
Copy link

Do you have the footer in a container-fluid and then are you placing row-fluid inside the container?

@richardthiru
Copy link
Author

I thought that would have did it, but it didn't keep the content in the 940px container.

<?php
/**
 * Default Footer
 *
 * @package WP-Bootstrap
 * @subpackage Default_Theme
 * @since WP-Bootstrap 0.1
 *
 * Last Revised: July 16, 2012
 */
?>
    <!-- End Template Content -->
      <footer>
<div class="container-fluid">
<div class="row-fluid">

<div class="footer-content">

<div id="footer-icons">
    <a href="#"><img src="http://www.peopleforgood.ca/revamp/wp-content/uploads/2013/03/icon_small_app.png"></a>
    <a href="#"><img src="http://www.peopleforgood.ca/revamp/wp-content/uploads/2013/03/icon_small_youtube.png"></a>
    <a href="#"><img src="http://www.peopleforgood.ca/revamp/wp-content/uploads/2013/03/icon_small_fb.png"></a>
    <a href="#"><img src="http://www.peopleforgood.ca/revamp/wp-content/uploads/2013/03/icon_small_pinterest.png"></a>
    <a href="#"><img src="http://www.peopleforgood.ca/revamp/wp-content/uploads/2013/03/icon_small_twitter.png"></a>
</div>

          <?php
    if ( function_exists('dynamic_sidebar')) dynamic_sidebar("footer-content");
?>
    </div></div></div> <!-- /container -->
       </footer>
<?php wp_footer(); ?>

  </body>
</html>

Notice anything wrong with my footer code?

@mojaray2k
Copy link

You need a parent container that holds everything.

If you are using 940px as your width for your content you can write the css rule two ways:

.parent-container {
max-width: 940px;
}

or

.parent-container {
max-width: 92%;
}

@richardthiru
Copy link
Author

Thank you very much for the help! That did it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants