Removing Inherited Announcement bar after theme import

Good day,

I have a problem with the AppHero announcement bar - I exported a theme file form another website my colleague had built, it had the announcement bar active with custom information.

Now on my store, the announcement bar is present with info I do not need.

I have tried editing the code to remove the bar but can’t seem to find the code for the announcement bar.

My website: cyncon.co.za

Password: nellouw

Can anyone please assist?

1 Like

@Rudeharvester

Please share screenshot what do you want!

Thanks!

I want the banner in red to be removed.

@Rudeharvester

Please share Sections/header.liquid file code .

Thanks!

@Rudeharvester

sorry for that issue can you please try this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.
.aph_bar_bar {display: none !important;}
1 Like

Hi there,

This solution worked but now my new announcement bar is also missing.

I only want to remove the one inherited from the theme export file.

Can you assist?

@dmwwebartisan

Here is the code:

.site-header__logo img { max-width: {{ section.settings.logo_max_width | default: '450' | remove: 'px' | append: 'px' | escape }}; }
{% include 'icon-search' %} {{ 'general.search.submit' | t }}
{% include 'icon-hamburger' %} {% include 'icon-close' %} {{ 'general.drawers.navigation' | t }}
{% if request.page_type == 'index' %}

{% else %}
{% endif %} {% if section.settings.logo != blank %} {% capture image_size %}{{ section.settings.logo_max_width }}x{% endcapture %} {{ section.settings.logo.alt | default: shop.name }} {% else %} {% assign shop_name_length = shop.name.size %} 10 %} class="site-header__shop-name--small"{% endif %}>{{ shop.name }} {% endif %} {% if request.page_type == 'index' %}

{% else %}
{% endif %}
{% comment %}{% endcomment %} {{ 'general.search.placeholder' | t }} {% include 'icon-search' %} {{ 'general.search.submit' | t }} {% include 'icon-cart' %} {{ 'layout.cart.title' | t }}
{% include 'icon-hamburger' %} {{ 'general.drawers.menu' | t }} {{ 'general.drawers.navigation' | t }}
    {% for link in linklists[section.settings.main_linklist].links %} {% assign child_list_handle = link.title | handleize %}

    {% comment %}
    Use full width layout if there are 7+ links or parent has products
    {% endcomment %}
    {% assign meganav_use_columns = false %}
    {% assign nav_parent_product_count = link.object.products_count %}
    {% unless nav_parent_product_count == blank or nav_parent_product_count == 0 %}
    {% assign meganav_use_columns = true %}
    {% endunless %}

    {% if link.links.size > 7 %}
    {% assign meganav_use_columns = true %}
    {% endif %}

    {% assign is_collection_with_products = false %}
    {% if link.type == ‘collection_link’ and link.object.products_count > 0 %}
    {% assign is_collection_with_products = true %}
    {% endif %}

    {% if link.links != blank %}

  • {{ link.title }} {% include 'icon-arrow-down' %}
      {% include 'site-nav' %}
  • {% else %}
  • {{ link.title }}
  • {% endif %} {% endfor %}
{% if shop.customer_accounts_enabled %}
{% if customer %} {{ 'layout.customer.account' | t }} {{ 'layout.customer.log_out' | t | customer_logout_link }} {% else %} {{ 'layout.customer.account' | t | customer_login_link }} {% endif %}
{% endif %}
{{ 'products.product.product_added_to_cart_html' | t }} {% include 'icon-close' %} {{ 'cart.general.close_notification' | t }}
{% include 'icon-close' %} {{ 'cart.general.close_notification' | t }}

{% if section.settings.promo_bar_enable and section.settings.promo_bar_text != blank %}

{% if section.settings.promo_bar_link != blank %} {{ section.settings.promo_bar_text | escape }} {% else %} {{ section.settings.promo_bar_text | escape }} {% endif %} {% include 'icon-close' %} {{ 'cart.general.close_notification' | t }}
{% endif %}

{% schema %}
{
“name”: {
“cs”: “Záhlaví”,
“da”: “Overskrift”,
“de”: “Titel”,
“en”: “Header”,
“es”: “Encabezado”,
“fi”: “Ylätunniste”,
“fr”: “En-tête”,
“hi”: “हैडर”,
“it”: “Header”,
“ja”: “ヘッダー”,
“ko”: “헤더”,
“nb”: “Header”,
“nl”: “Koptekst”,
“pl”: “Nagłówek”,
“pt-BR”: “Cabeçalho”,
“pt-PT”: “Cabeçalho”,
“sv”: “Rubrik”,
“th”: “ส่วนหัว”,
“tr”: “Üstbilgi”,
“vi”: “Đầu trang”,
“zh-CN”: “标头”,
“zh-TW”: “標頭”
},
“settings”: [
{
“type”: “image_picker”,
“id”: “logo”,
“label”: {
“cs”: “Obrázek loga”,
“da”: “Logobillede”,
“de”: “Logo-Foto”,
“en”: “Logo image”,
“es”: “Logo”,
“fi”: “Logokuva”,
“fr”: “Image du logo”,
“hi”: “लोगो इमेज”,
“it”: “Immagine del logo”,
“ja”: “ロゴ画像”,
“ko”: “로고 이미지”,
“nb”: “Logobilde”,
“nl”: “Afbeelding van logo”,
“pl”: “Obraz logo”,
“pt-BR”: “Imagem do logo”,
“pt-PT”: “Imagem do logótipo”,
“sv”: “Logobild”,
“th”: “รูปภาพโลโก้”,
“tr”: “Logo görseli”,
“vi”: “Hình ảnh logo”,
“zh-CN”: “logo 图片”,
“zh-TW”: “標誌圖片”
}
},
{
“type”: “text”,
“id”: “logo_max_width”,
“label”: {
“cs”: “Šířka vlastního loga (v pixelech)”,
“da”: “Tilpasset logobredde (i pixels)”,
“de”: “Benutzerdefinierte Logobreite (Pixel)”,
“en”: “Custom logo width (in pixels)”,
“es”: “Ancho del logo personalizado (en píxeles)”,
“fi”: “Mukautettu logon leveys (pikseleinä)”,
“fr”: “Largeur personnalisée du logo (en pixels)”,
“hi”: “कस्टम लोगो की चौड़ाई (पिक्सेल)”,
“it”: “Larghezza logo personalizzato (in pixel)”,
“ja”: “ロゴの幅をカスタマイズする (ピクセル単位)”,
“ko”: “사용자 지정 로고 폭 (픽셀)”,
“nb”: “Tilpasset logobredde (i piksler)”,
“nl”: “Aangepaste logobreedte (in pixels)”,
“pl”: “Niestandardowa szerokość logo (w pikselach)”,
“pt-BR”: “Largura do logo personalizado (em pixels)”,
“pt-PT”: “Largura de logótipo personalizada (em píxeis)”,
“sv”: “Anpassad logotypbredd (i pixlar)”,
“th”: “ความกว้างของโลโก้แบบกำหนดเอง (เป็นพิกเซล)”,
“tr”: “Özel logo genişliği (piksel)”,
“vi”: “Chiều rộng logo tùy chỉnh (pixel)”,
“zh-CN”: “自定义 logo 宽度(像素)”,
“zh-TW”: “自訂標誌寬度 (單位為像素)”
},
“default”: {
“cs”: “450”,
“da”: “450”,
“de”: “450”,
“en”: “450”,
“es”: “450”,
“fi”: “450”,
“fr”: “450”,
“hi”: “450”,
“it”: “450”,
“ja”: “450”,
“ko”: “450”,
“nb”: “450”,
“nl”: “450”,
“pl”: “450”,
“pt-BR”: “450”,
“pt-PT”: “450”,
“sv”: “450”,
“th”: “450”,
“tr”: “450”,
“vi”: “450”,
“zh-CN”: “450”,
“zh-TW”: “450”
}
},
{
“type”: “link_list”,
“id”: “main_linklist”,
“label”: {
“cs”: “Nabídka”,
“da”: “Menu”,
“de”: “Menü”,
“en”: “Menu”,
“es”: “Menú”,
“fi”: “Valikko”,
“fr”: “Menu”,
“hi”: “मेनू”,
“it”: “Menu”,
“ja”: “メニュー”,
“ko”: “메뉴”,
“nb”: “Meny”,
“nl”: “Menu”,
“pl”: “Menu”,
“pt-BR”: “Menu”,
“pt-PT”: “Menu”,
“sv”: “Meny”,
“th”: “เมนู”,
“tr”: “Menü”,
“vi”: “Menu”,
“zh-CN”: “菜单”,
“zh-TW”: “選單”
},
“default”: “main-menu”
},
{
“type”: “header”,
“content”: {
“cs”: “Panel oznámení”,
“da”: “Meddelelseslinje”,
“de”: “Ankündigungsleiste”,
“en”: “Announcement bar”,
“es”: “Barra de anuncios”,
“fi”: “Ilmoituspalkki”,
“fr”: “Barre d’annonces”,
“hi”: “घोषणा बार”,
“it”: “Barra degli annunci”,
“ja”: “告知バー”,
“ko”: “공지 표시줄”,
“nb”: “Kunngjøringslinje”,
“nl”: “Aankondigingsbalk”,
“pl”: “Pasek ogłoszeń”,
“pt-BR”: “Barra de avisos”,
“pt-PT”: “Barra de comunicado”,
“sv”: “Meddelandefält”,
“th”: “แถบประกาศ”,
“tr”: “Duyuru çubuğu”,
“vi”: “Thanh thông báo”,
“zh-CN”: “公告栏”,
“zh-TW”: “公告列”
}
},
{
“type”: “checkbox”,
“id”: “promo_bar_enable”,
“label”: {
“cs”: “Zobrazit oznámení”,
“da”: “Vis meddelelse”,
“de”: “Ankündigung anzeigen”,
“en”: “Show announcement”,
“es”: “Mostrar anuncio”,
“fi”: “Näytä ilmoitus”,
“fr”: “Afficher l’annonce”,
“hi”: “घोषणा दिखाएं”,
“it”: “Mostra annuncio”,
“ja”: “告知を表示する”,
“ko”: “공지 표시”,
“nb”: “Vis kunngjøring”,
“nl”: “Aankondiging weergeven”,
“pl”: “Pokaż ogłoszenie”,
“pt-BR”: “Exibir comunicado”,
“pt-PT”: “Mostrar comunicado”,
“sv”: “Visa tillkännagivande”,
“th”: “แสดงประกาศ”,
“tr”: “Duyuruyu göster”,
“vi”: “Hiển thị thông báo”,
“zh-CN”: “显示公告”,
“zh-TW”: “顯示公告”
}
},
{
“type”: “text”,
“id”: “promo_bar_text”,
“label”: {
“cs”: “Text”,
“da”: “Tekst”,
“de”: “Text”,
“en”: “Text”,
“es”: “Texto”,
“fi”: “Teksti”,
“fr”: “Texte”,
“hi”: “टेक्स्ट”,
“it”: “Testo”,
“ja”: “テキスト”,
“ko”: “텍스트”,
“nb”: “Tekst”,
“nl”: “Tekst”,
“pl”: “Tekst”,
“pt-BR”: “Texto”,
“pt-PT”: “Texto”,
“sv”: “Text”,
“th”: “ข้อความ”,
“tr”: “Metin”,
“vi”: “Văn bản”,
“zh-CN”: “文本”,
“zh-TW”: “文字”
}
},
{
“type”: “url”,
“id”: “promo_bar_link”,
“label”: {
“cs”: “Odkaz”,
“da”: “Link”,
“de”: “Link”,
“en”: “Link”,
“es”: “Enlace”,
“fi”: “Linkki”,
“fr”: “Lien”,
“hi”: “लिंक”,
“it”: “Link”,
“ja”: “リンク”,
“ko”: “링크”,
“nb”: “Kobling”,
“nl”: “Link”,
“pl”: “Link”,
“pt-BR”: “Link”,
“pt-PT”: “Ligação”,
“sv”: “Länk”,
“th”: “ลิงก์”,
“tr”: “Bağlantı”,
“vi”: “Liên kết”,
“zh-CN”: “链接”,
“zh-TW”: “連結”
},
“info”: {
“cs”: “Volitelné”,
“da”: “Valgfri”,
“de”: “Optional”,
“en”: “Optional”,
“es”: “Opcional”,
“fi”: “Valinnainen”,
“fr”: “Facultatif”,
“hi”: “वैकल्पिक”,
“it”: “Facoltativo”,
“ja”: “オプション”,
“ko”: “선택 사항”,
“nb”: “Valgfritt”,
“nl”: “Optioneel”,
“pl”: “Opcjonalnie”,
“pt-BR”: “Opcional”,
“pt-PT”: “Opcional”,
“sv”: “Valfritt”,
“th”: “ไม่จำเป็น”,
“tr”: “İsteğe bağlı”,
“vi”: “Không bắt buộc”,
“zh-CN”: “可选”,
“zh-TW”: “(選填)”
}
}
]
}
{% endschema %}

@Rudeharvester

Please Remove css code provided by ketan kumar

@dmwwebartisan I have removed it now

@Rudeharvester

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.
#bar397436_410076{display: none !important;}

Hope this work

Thanks!

1 Like

@dmwwebartisan It works!!!

Thank you very much!

@KetanKumar Thank you for trying to help, I appreciate it!

1 Like

@Rudeharvester

its my pleasure to help us