# トピックに重なるように、モバイルユーザー向けのフッターをアイコン付きでホームに作成する方法はありますか？

**URL:** https://meta.discourse.org/t/is-there-a-way-to-create-a-footer-on-the-home-with-icons-only-for-mobile-users-and-overlapping-the-topics/257541
**Category:** Development
**Created:** [2023 年 3 月 8 日午後 9:35 UTC](https://meta.discourse.org/t/is-there-a-way-to-create-a-footer-on-the-home-with-icons-only-for-mobile-users-and-overlapping-the-topics/257541 "2023-03-08T21:35:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [2023 年 3 月 8 日午後 9:35 UTC](https://meta.discourse.org/t/is-there-a-way-to-create-a-footer-on-the-home-with-icons-only-for-mobile-users-and-overlapping-the-topics/257541/1 "2023-03-08T21:35:52Z")

</div>

ホームページ（およびすべてのページ）にフッターを作成し、そのフッターに他のオプションにアクセスするためのアイコンを配置することを考えていました。スクリプト、CSS、またはテーマコンポーネントでこれを行う方法はありますか？

---

<div class="post-metadata">

### Author: ![satonotdead](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/satonotdead/32/447830_2.png) [@satonotdead](https://meta.discourse.org/u/satonotdead)
#### Post date: [2023 年 3 月 8 日午後 10:14 UTC](https://meta.discourse.org/t/is-there-a-way-to-create-a-footer-on-the-home-with-icons-only-for-mobile-users-and-overlapping-the-topics/257541/2 "2023-03-08T22:14:02Z")

</div>

はい、CSSの特定のセクションにコードを追加し、ホームページにのみ表示する方法を見つけることができます（おそらくヒントがあるはずです）。

> [@Developing Discourse Themes & Theme Components](https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648/1):
>
> Discourse Themes and Theme Components can be used to customize the look, feel and functionality of Discourse’s frontend. This section of the developer guides aims to provide all the reference materials you need to develop simple themes for a single site, right up to complex open-source theme components. This introduction aims to provide a map of all the tools and APIs for theme development. If you prefer a step-by-step tutorial for theme development, jump straight to: Themes vs. Theme Compon…

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [2023 年 3 月 8 日午後 10:16 UTC](https://meta.discourse.org/t/is-there-a-way-to-create-a-footer-on-the-home-with-icons-only-for-mobile-users-and-overlapping-the-topics/257541/3 "2023-03-08T22:16:39Z")

</div>

この素晴らしいコンポーネントを見つけました。これが最新のものか知っていますか？

それとも、他に新しいコンポーネントはありますか？

> [@Discourse Tab Bar for Mobile](https://meta.discourse.org/t/discourse-tab-bar-for-mobile/75696):
>
> GitHub repository: Screenshots Installation Follow the instructions in this #howto topic: Customization See the [readme](https://github.com/OsamaSayegh/discourse-tab-bar-theme/blob/master/README.md) file in the theme’s GitHub repository. Ideas to improve this theme are very welcome slightly_smiling_faceUpdate 24/12/2018: You no longer need to overwrite any code in order to customize this theme. It’s now shipped with theme settings that allow customization for each of the 6 tabs with ability to disable any tab. See the [readme](https://github.com/OsamaSayegh/discourse-tab-bar-theme/blob/master/README.md) file for detai…

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [2023 年 3 月 9 日午前 10:10 UTC](https://meta.discourse.org/t/is-there-a-way-to-create-a-footer-on-the-home-with-icons-only-for-mobile-users-and-overlapping-the-topics/257541/4 "2023-03-09T10:10:21Z")

</div>

もし「フッター」や「固定フッター」などの用語で探しているものが見つからない場合は、誰かに依頼するか、自分で作成する必要があるでしょう。

* * *

カスタムフッターを自分で作成したい場合は、ここから始められます。  
フォーラムに新しいテーマコンポーネントを作成します。CSS/HTMLの編集で、「📱 Mobile」タブ → 「Body」に、次のHTMLコードを貼り付けます。

```html
<div id="footer-test">
    test footer
</div>

```

「📱 Mobile」タブ → 「CSS」に、次のSCSSコードを貼り付けます。

```css
#footer-test {
    position: sticky;
    bottom: 0;
    z-index: 2;
    height: 80px;
    background: red;
    text-align: center;
    body[class=""] & { // prevent the footer from being displayed during the splash screen
        display: none;
    }
}

```

結果：  
 ![chrome_fLvmktTnqY](https://global.discourse-cdn.com/meta/original/4X/f/1/0/f10a7c5978eb7562d57ecad8a76a1e62be98a97d.gif)

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [2023 年 3 月 9 日午後 3:26 UTC](https://meta.discourse.org/t/is-there-a-way-to-create-a-footer-on-the-home-with-icons-only-for-mobile-users-and-overlapping-the-topics/257541/5 "2023-03-09T15:26:23Z")

</div>

手伝ってくれてありがとう。でも、ここで動作するコンポーネントを見つけました。

> [@Discourse Tab Bar for Mobile](https://meta.discourse.org/t/discourse-tab-bar-for-mobile/75696):
>
> GitHub repository: Screenshots Installation Follow the instructions in this #howto topic: Customization See the [readme](https://github.com/OsamaSayegh/discourse-tab-bar-theme/blob/master/README.md) file in the theme’s GitHub repository. Ideas to improve this theme are very welcome slightly_smiling_faceUpdate 24/12/2018: You no longer need to overwrite any code in order to customize this theme. It’s now shipped with theme settings that allow customization for each of the 6 tabs with ability to disable any tab. See the [readme](https://github.com/OsamaSayegh/discourse-tab-bar-theme/blob/master/README.md) file for detai…

これで、最後の「ボタン」に、さらに多くのボタンを残すオプションを追加する方法を知るだけで済みます。

![](https://global.discourse-cdn.com/meta/original/4X/0/5/7/0579d77f7f749e2907bd6ab9a349e3230cdc4c1d.gif)
