# Footer covering a section of main view

**URL:** <https://forum.ionicframework.com/t/footer-covering-a-section-of-main-view/1469>\
**Category:** ionic-v1\
**Created:** [February 28, 2014, 10:39am UTC](https://forum.ionicframework.com/t/footer-covering-a-section-of-main-view/1469 "2014-02-28T10:39:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![shinaekwon2n](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@shinaekwon2n](https://forum.ionicframework.com/u/shinaekwon2n)\
**Post date:** [February 28, 2014, 10:39am UTC](https://forum.ionicframework.com/t/footer-covering-a-section-of-main-view/1469/1 "2014-02-28T10:39:33Z")

</div>

I used this: [http://codepen.io/anon/pen/begHr](http://codepen.io/anon/pen/begHr) from Ionic Codepen.  
After added footer to main view and set has-footer=“true”, I tried to load more data by on-infinite-scroll, then a section of content has been overlayed by footer, like this:

![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/200/85617ee98535e3f2.png)

This made the infinite scroll loading image can not show on screen.  
Can someone tell me how to fix this task? Thank you. Sorry for my bad English!

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [February 28, 2014, 12:24pm UTC](https://forum.ionicframework.com/t/footer-covering-a-section-of-main-view/1469/2 "2014-02-28T12:24:44Z")

</div>

I just forked it and added `has-footer="true"` and all seems fine:

https://codepen.io/calendee/embed/preview/FisDH?height=300&slug-hash=FisDH&default-tabs=js,result&host=https://codepen.io

You added `has-footer="true"` in the wrong place. It’s in your `movie.html` template NOT in then `index.html` template.

---

<div class="post-metadata">

**Author:** ![shinaekwon2n](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@shinaekwon2n](https://forum.ionicframework.com/u/shinaekwon2n)\
**Post date:** [March 1, 2014, 2:34am UTC](https://forum.ionicframework.com/t/footer-covering-a-section-of-main-view/1469/3 "2014-03-01T02:34:18Z")

</div>

@Calendee Opps, my mistake, it’s worked now, thank you so so much 😄

---

<div class="post-metadata">

**Author:** ![duuuudeman](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@duuuudeman](https://forum.ionicframework.com/u/duuuudeman)\
**Post date:** [April 9, 2014, 1:08am UTC](https://forum.ionicframework.com/t/footer-covering-a-section-of-main-view/1469/4 "2014-04-09T01:08:23Z")

</div>

Do you know if the has-footer directive is supported with sideMenus? I ask because I have added it to _all_ of my views, and still I have content hidden behind the footer.

Actually, it doesn’t look like the has-footer directive is supported anymore:  
[http://ionicframework.com/docs/api/directive/ionContent/](http://ionicframework.com/docs/api/directive/ionContent/)

So how can I have a footer, that doesn’t hide any of the scrollable content in the main content area (specifically the content at the end of that list - which I cannot seem to get to display above the footer - its’ hidden behind it)?

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [April 9, 2014, 3:01pm UTC](https://forum.ionicframework.com/t/footer-covering-a-section-of-main-view/1469/5 "2014-04-09T15:01:58Z")

</div>

Since the beta, the Ionic code automatically detects the presence of footers. Make sure you are using the correct syntax.

[http://ionicframework.com/docs/api/directive/ionFooterBar/](http://ionicframework.com/docs/api/directive/ionFooterBar/)

If that doesn’t help, you’ll need to post a CodePen sample for us to take a look at it.

---

<div class="post-metadata">

**Author:** ![duuuudeman](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@duuuudeman](https://forum.ionicframework.com/u/duuuudeman)\
**Post date:** [April 15, 2014, 1:12am UTC](https://forum.ionicframework.com/t/footer-covering-a-section-of-main-view/1469/6 "2014-04-15T01:12:07Z")

</div>

That was it! Ack, I was still using `<div class="footer" ...` instead of `<ion-footer-bar ...` !

Thank you for pointing that out. Exactly what I needed to know.

---

<div class="post-metadata">

**Author:** ![danprime](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@danprime](https://forum.ionicframework.com/u/danprime)\
**Post date:** [May 15, 2014, 4:22pm UTC](https://forum.ionicframework.com/t/footer-covering-a-section-of-main-view/1469/7 "2014-05-15T16:22:47Z")

</div>

Hi

I’m experiencing the same thing. Using Beta 4 and the ion-footer-bar directive.

I do use ui-router instead of the AngularJS Router and I occasionally need to hide the footer contents depending on the state (hence the ng-If).

Here’s a codepen: [http://codepen.io/anon/pen/nJAum](http://codepen.io/anon/pen/nJAum)

Would love to know where I went wrong.

Thanks!  
-Dan

---

<div class="post-metadata">

**Author:** ![deep2322](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@deep2322](https://forum.ionicframework.com/u/deep2322)\
**Post date:** [December 8, 2014, 1:03pm UTC](https://forum.ionicframework.com/t/footer-covering-a-section-of-main-view/1469/8 "2014-12-08T13:03:29Z")

</div>

.has-footer{  
bottom: 50px;  
}

adjust the bottom as required from css.you may see the result

---

<div class="post-metadata">

**Author:** ![sammysounder](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@sammysounder](https://forum.ionicframework.com/u/sammysounder)\
**Post date:** [January 23, 2015, 7:05pm UTC](https://forum.ionicframework.com/t/footer-covering-a-section-of-main-view/1469/9 "2015-01-23T19:05:43Z")

</div>

I need to do some validation before adding my footer. It appears that the automatic addition of “has-footer” doesn’t work with the “ng-if”. It does work with ng-show.

Just leaving this for posterity.
