# Mobile footer ohne swCollapsePanel

**URL:** <https://forum.shopware.com/t/mobile-footer-ohne-swcollapsepanel/36774>\
**Category:** Themes & Design\
**Created:** [16. Mai 2016 um 18:59 UTC](https://forum.shopware.com/t/mobile-footer-ohne-swcollapsepanel/36774 "2016-05-16T18:59:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hbee](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hbee](https://forum.shopware.com/u/hbee)\
**Post date:** [16. Mai 2016 um 18:59 UTC](https://forum.shopware.com/t/mobile-footer-ohne-swcollapsepanel/36774/1 "2016-05-16T18:59:12Z")

</div>

hi, ich möchte meinen mobile footer gern immer aufgeklappt anzeigen. In der jquery.shopware-responsive.js ist dafür folgendes verantwortlich:

```
// Slide panel
        .addPlugin('.footer--column .column--headline', 'swCollapsePanel', {
            contentSiblingSelector: '.column--content'
        }, ['xs', 's'])

```

jetzt habe ich es in meine js mit folgendem versucht:

```
StateManager
    .removePlugin('.footer--column .column--headline', 'swCollapsePanel', ['xs', 's']);

```

leider ohne erfolg, es tut sich nix. Dateu ist korrekt eingebunden und wird auch kompiliert.

Wie kann man ein Plugin für einen bestimmten Selektor wieder „unbinden“ ?

Viele Dank.

&nbsp;

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [16. Mai 2016 um 21:39 UTC](https://forum.shopware.com/t/mobile-footer-ohne-swcollapsepanel/36774/2 "2016-05-16T21:39:15Z")

</div>

```
StateManager
    .destroyPlugin('.footer--column .column--headline', 'swCollapsePanel', ['xs', 's'])
    .removePlugin('.footer--column .column--headline', 'swCollapsePanel', ['xs', 's']);

```

So mit sollte das Plugin entgültig weg sein. Ich hab es gerade mal auf der [shopwaredemo.de](http://shopwaredemo.de) Seite ausprobiert.

Du müsstest das&nbsp;.footer-main .column–content display none wegnehmen auf mobile. Dann passt es 🙂

---

<div class="post-metadata">

**Author:** ![hbee](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hbee](https://forum.shopware.com/u/hbee)\
**Post date:** [17. Mai 2016 um 05:29 UTC](https://forum.shopware.com/t/mobile-footer-ohne-swcollapsepanel/36774/3 "2016-05-17T05:29:29Z")

</div>

Danke, das destroy hat mir gefehlt. ist das irgendwo dokumentiert?

---

<div class="post-metadata">

**Author:** ![hth](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@hth](https://forum.shopware.com/u/hth)\
**Post date:** [17. Mai 2016 um 06:08 UTC](https://forum.shopware.com/t/mobile-footer-ohne-swcollapsepanel/36774/4 "2016-05-17T06:08:00Z")

</div>

> [@hbee schrieb:](https://forum.shopware.com/profile/1538/hbee "hbee")
> 
> Danke, das destroy hat mir gefehlt. ist das irgendwo dokumentiert?

Suchen nach -\> destroy und destroyPlugin

&nbsp;[https://github.com/shopware/devdocs/blob/master/source/designers-guide/javascript-statemanager-and-pluginbase/index.md](https://github.com/shopware/devdocs/blob/master/source/designers-guide/javascript-statemanager-and-pluginbase/index.md)

[https://github.com/shopware/shopware/blob/5.1/themes/Frontend/Responsive/frontend/\_public/src/js/jquery.state-manager.js](https://github.com/shopware/shopware/blob/5.1/themes/Frontend/Responsive/frontend/%5C_public/src/js/jquery.state-manager.js)

---

<div class="post-metadata">

**Author:** ![hbee](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hbee](https://forum.shopware.com/u/hbee)\
**Post date:** [17. Mai 2016 um 06:13 UTC](https://forum.shopware.com/t/mobile-footer-ohne-swcollapsepanel/36774/5 "2016-05-17T06:13:06Z")

</div>

> [@hth schrieb:](https://forum.shopware.com/profile/4414/hth "hth")
> 
> > [@hbee schrieb:](https://forum.shopware.com/profile/1538/hbee "hbee")
> > 
> > Danke, das destroy hat mir gefehlt. ist das irgendwo dokumentiert?
> 
> Unter Class Methods -\> destroy
> 
> &nbsp;[https://github.com/shopware/devdocs/blob/master/source/designers-guide/javascript-statemanager-and-pluginbase/index.md](https://github.com/shopware/devdocs/blob/master/source/designers-guide/javascript-statemanager-and-pluginbase/index.md)
> 
> [https://github.com/shopware/shopware/blob/5.1/themes/Frontend/Responsive/frontend/\_public/src/js/jquery.state-manager.js](https://github.com/shopware/shopware/blob/5.1/themes/Frontend/Responsive/frontend/_public/src/js/jquery.state-manager.js)

danke für den Link. erklärt aber noch nciht warum ein removePlugin() nicht ausreicht (

- Removes a previously added plugin from a element for a certain state.

)
