{"id":9094,"date":"2021-11-20T09:16:26","date_gmt":"2021-11-20T09:16:26","guid":{"rendered":"https:\/\/www.bay20.com\/?p=9094"},"modified":"2025-05-21T15:54:55","modified_gmt":"2025-05-21T10:09:55","slug":"entfernen-der-kopfzeilen-top-leiste-in-shopware-5","status":"publish","type":"post","link":"https:\/\/www.bay20.com\/de\/entfernen-der-kopfzeilen-top-leiste-in-shopware-5\/","title":{"rendered":"Wie kann ich die Kopfleiste in Shopware 5 entfernen?"},"content":{"rendered":"\n<p>Wir werden die Texte wie\u00a0<strong>&#8222;<a href=\"https:\/\/www.bay20.com\/de\/my-account\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"https:\/\/www.bay20.com\/my-account\/\">Mein Konto<\/a>&#8222;<\/strong> und den Preis im Einkaufswagen entfernen. Um die Shopware 5 Topbar in der Kopfzeile zu entfernen, f\u00fchren Sie die folgenden Schritte aus:<\/p>\n\n\n\n<p>Unsere Topbar sieht wie folgt aus.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/07\/image-12.png\" alt=\"\" class=\"wp-image-9100\" width=\"446\" height=\"151\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/07\/image-12.png 399w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/07\/image-12-300x102.png 300w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 1: <\/strong>Gehen Sie in das <a href=\"https:\/\/www.bay20.com\/de\/shopware-entwicklungsunternehmen\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"https:\/\/www.bay20.com\/shopware-development\/\">shopware<\/a> Themenverzeichnis Ihrer Website.<\/p>\n\n\n\n<p><strong>Schritt 2: <\/strong>Erstellen Sie ein neues Unterverzeichnis namens<strong> footer.less<\/strong><\/p>\n\n\n\n<p><strong>Dateistruktur:-<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>themes\/Frontend\/Custom\/frontend\/_public\/src\/less\/_modules\/<\/code><\/pre>\n\n\n\n<p><strong>Hinweis:<\/strong> Das <strong>benutzerdefinierte<\/strong> Verzeichnis ist ein Thema, das ich bereits erstellt habe.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_6-980x449.png\" alt=\"How To Remove the Shopware 5 Topbar in the Header\" class=\"wp-image-8493\" width=\"701\" height=\"320\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_6-980x449.png 980w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_6-300x137.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_6-800x366.png 800w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_6-768x352.png 768w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_6-1000x458.png 1000w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_6.png 1365w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 3: <\/strong>Schreiben Sie diesen Code in die Datei<strong> topbar-navigation.tpl.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{extends file='parent:frontend\/index\/topbar-navigation.tpl'}\n\n{block name=\"frontend_index_top_bar_main\"}\n    &lt;div class=\"top-bar\"&gt;&lt;\/div&gt;\n{\/block}<\/code><\/pre>\n\n\n\n<p><strong>Schritt 4: <\/strong>Erstellen Sie im gleichen <strong>Index<\/strong>verzeichnis eine neue Datei namens<strong> shop-navigation.tpl<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>themes\/Frontend\/Custom\/frontend\/index\/shop-navigation.tpl<\/code><\/pre>\n\n\n\n<p>Und schreiben Sie diesen Code in diese Dateien.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{extends file='parent:frontend\/index\/shop-navigation.tpl'}\n\n{block name='frontend_index_checkout_actions'}\n{$smarty.block.parent}\n    {* Top bar navigation *}\n    {block name=\"frontend_index_shop_navigation_nav\"}\n        &lt;nav class=\"top-bar--navigation block\" role=\"menubar\"&gt;\n\n        {action module=widgets controller=index action=shopMenu}\n        {* Article Compare *}\n        {block name='frontend_index_shop_navigation_inline'}\n            {if {config name=\"compareShow\"}}\n                &lt;div class=\"navigation--entry entry--compare is--hidden\" role=\"menuitem\" aria-haspopup=\"true\" data-drop-down-menu=\"true\"&gt;\n                    {block name='frontend_index_shop_navigation_compare'}\n                        {action module=widgets controller=compare}\n                    {\/block}\n                &lt;\/div&gt;\n            {\/if}\n        {\/block}\n\n        {* Service \/ Support drop down *}\n        {block name=\"frontend_index_shop_navigation_checkout_actions_service_menu\"}\n            &lt;div class=\"navigation--entry entry--help has--drop-down\" role=\"menuitem\" aria-haspopup=\"true\" data-drop-down-menu=\"true\"&gt;\n                &lt;i class=\"icon--service\"&gt;&lt;\/i&gt;\n\n                {* Include of the widget *}\n                {block name=\"frontend_index_shop_navigation_checkout_actions_service_menu_include\"}\n                    {action module=widgets controller=index action=menu group=gLeft}\n                {\/block}\n            &lt;\/div&gt;\n        {\/block}\n    {\/block}\n{\/block}<\/code><\/pre>\n\n\n\n<p><strong>Schritt 5: <\/strong>Erstellen Sie eine neue Datei namens <strong>index.tpl<\/strong> im <strong>Verzeichnis<\/strong> compare.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/07\/Screenshot_2-8.png\" alt=\"\" class=\"wp-image-9097\" width=\"271\" height=\"380\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/07\/Screenshot_2-8.png 247w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/07\/Screenshot_2-8-214x300.png 214w\" sizes=\"auto, (max-width: 271px) 100vw, 271px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 6: <\/strong>Schreiben Sie diesen Code in diese Datei.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{extends file='parent:frontend\/compare\/index.tpl'}\n\n{block name='frontend_top_navigation_menu_entry'}\n    &lt;i class=\"icon--compare\"&gt;&lt;\/i&gt; &lt;span class=\"compare--quantity\"&gt;({$sComparisons|@count})&lt;\/span&gt;\n{\/block}<\/code><\/pre>\n\n\n\n<p><strong>Schritt 7:<\/strong> Erstellen Sie eine Datei <strong>header.less<\/strong> im Verzeichnis _<strong>modules<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/07\/Screenshot_3-6.png\" alt=\"\" class=\"wp-image-9098\" width=\"270\" height=\"482\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/07\/Screenshot_3-6.png 251w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/07\/Screenshot_3-6-168x300.png 168w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 8: <\/strong>Schreiben Sie diesen Code in diese Datei.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.top-bar--navigation{\n    display: none;\n  }\n  \n  @media screen and (min-width: @tabletViewportWidth) {\n    .container.header--navigation .shop--navigation.block-group .navigation--list.block-group{\n      .entry--search{\n        left:1%;\n      }\n      .entry--account .account--link {\n        padding: 2px 8px 2px 8px;\n        .icon--account {\n          font-size: 21px;\n          display: inline;\n          position: relative;\n          vertical-align: middle;\n          top: 0;\n          left: 0;\n        }\n        .account--display {\n          display: none !important;\n        }\n      }\n      .entry--cart{\n        margin-right:5px;\n        .cart--link {\n          padding: 2px 10px 2px 6px;\n          width: 42px;\n          .cart--amount {\n            display: none;\n          }\n        }\n      }\n      .top-bar--navigation{\n        display: block;\n        margin-left:5px;\n        .entry--compare {\n          display: block;\n          padding:0px;\n          margin-right: 5px;\n          .icon--compare {\n            top: 8px;\n            position: relative;\n            font-size: 25px;\n          }\n          .compare--quantity {\n            font-size: 15px;\n            vertical-align: middle;\n            margin-left:0px;\n          }\n          .compare--list {\n            top:45px;\n            &amp;:after{\n              left: 85%;\n            }\n            .btn--compare.btn--compare-start {\n              width: 100%;\n            }\n          }\n        }\n        .entry--help{\n          padding:0px;\n          .icon--service{\n            font-size:30px;\n            position: relative;\n            top:5px;\n          }\n          .service--list::after{\n            right:1%;\n          }\n          .service--list{\n            top:45px;\n          }\n        }\n      }\n    }\n  }\n\n  @media screen and (min-width: @desktopViewportWidth) {\n    .container.header--navigation .shop--navigation.block-group .navigation--list.block-group{\n      .entry--search{\n        left:3%;\n      }\n      .top-bar--navigation{\n        .entry--compare {\n          margin-right:10px;\n          .compare--list {\n            &amp;:after {\n              left: 80%;\n            }\n          }\n        }\n        .entry--help {\n          .service--list::after {\n            right: 8%;\n          }\n        }\n      }\n    }\n  }<\/code><\/pre>\n\n\n\n<p><strong>Schritt 9: Importieren<\/strong> Sie die less-Datei in die Datei <strong>all.less.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/07\/Screenshot_4-6.png\" alt=\"\" class=\"wp-image-9099\" width=\"262\" height=\"447\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/07\/Screenshot_4-6.png 250w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/07\/Screenshot_4-6-176x300.png 176w\" sizes=\"auto, (max-width: 262px) 100vw, 262px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 10: <\/strong>Schreiben Sie diesen Code in die Datei <strong>all.less.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@import \"_modules\/header\";<\/code><\/pre>\n\n\n\n<p><strong>Ergebnisse<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/07\/Screenshot_5-6.png\" alt=\"\" class=\"wp-image-9101\" width=\"453\" height=\"127\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/07\/Screenshot_5-6.png 417w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/07\/Screenshot_5-6-300x84.png 300w\" sizes=\"auto, (max-width: 453px) 100vw, 453px\" \/><\/figure>\n\n\n\n<p><strong>Bitte kontaktieren Sie uns unter <strong><a href=\"mailto:manish@bay20.com\">manish@bay20.com<\/a><\/strong> oder rufen Sie uns unter <strong><a href=\"https:\/\/api.whatsapp.com\/send?phone=+918800519180&amp;text=Hi, I contacted you through your website.\" target=\"_blank\" rel=\"noreferrer noopener\">+91-8800519180<\/a><\/strong> an, wenn Sie Unterst\u00fctzung f\u00fcr Shopware 5 ben\u00f6tigen. Sie k\u00f6nnen auch die <strong><a href=\"https:\/\/www.bay20.com\/de\/shopware-entwicklungsunternehmen\/\">Shopware 5 <strong>Entwicklungsseite<\/strong><\/a><\/strong> besuchen, um die von uns angebotenen Dienstleistungen zu \u00fcberpr\u00fcfen.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wir werden die Texte wie\u00a0&#8222;Mein Konto&#8222; und den Preis im Einkaufswagen entfernen. Um die Shopware 5 Topbar in der Kopfzeile zu entfernen, f\u00fchren Sie die folgenden Schritte aus: Unsere Topbar sieht wie folgt aus. Schritt 1: Gehen Sie in das shopware Themenverzeichnis Ihrer Website. Schritt 2: Erstellen Sie ein neues Unterverzeichnis namens footer.less Dateistruktur:- Hinweis: [&hellip;]<\/p>\n","protected":false},"author":74,"featured_media":9103,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78,116],"tags":[],"class_list":["post-9094","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-shopware","category-shopware-5"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/posts\/9094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/users\/74"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/comments?post=9094"}],"version-history":[{"count":10,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/posts\/9094\/revisions"}],"predecessor-version":[{"id":17259,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/posts\/9094\/revisions\/17259"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/media\/9103"}],"wp:attachment":[{"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/media?parent=9094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/categories?post=9094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/tags?post=9094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}