I'm getting some code in top of announcement bar in product page

Website link: https://urban-souq.com/products/eyebrow-scissors-with-eyebrow-comb
How to get rid of this code.

1 Like

Hi @Sahariar19 , I can send you an access request and remove it.

@Sahariar19 - please open theme.liquid file of your theme and check it, yo will have this code in it

Could you please send me a screenshot if possible that where i can get the code?

@Sahariar19 - go to online store->themes->click on 3 dots … of the active theme->edit code

then you can get your theme’s theme.liquid file

{%- if settings.favicon -%}

{%- endif -%}

{% include ‘seo-title’ %}

{{ seo_title }}

{%- if page_description -%}

{%- endif -%}

{% include ‘social-meta-tags’ %}

{% include ‘font-face’ %}
{{ ‘theme.scss.css’ | asset_url | stylesheet_tag }}

{% style %}
.collection-item__title {
font-size: {{ settings.type_collection_size | times: 0.8 }}px;
}

@media screen and (min-width: 769px) {
.collection-item__title {
font-size: {{ settings.type_collection_size }}px;
}
}
{% endstyle %}

{{ content_for_header }}

{% if settings.enable_currencies %}
{% unless shop.enabled_currencies.size > 1 %}

{% endunless %}

{% endif %}

{%- if request.page_type contains ‘customers/’ -%}

{%- endif -%}
{% include ‘booster-common’ %}

{% comment %}
Enable below script if page transitions enabled
{% endcomment %}
{% comment %}

{% endcomment %}

{{ ‘general.accessibility.skip_to_content’ | t }}

{% section ‘header’ %}

{{ content_for_layout }}

{% section ‘footer-promotions’ %}
{% section ‘footer’ %}

{% section ‘newsletter-popup’ %}

{%- if settings.cart_type == ‘drawer’ -%}
{%- include ‘ajax-cart-template’ -%}
{%- endif -%}

{%- if settings.enable_currencies -%}
{%- include ‘currency-modal’ -%}
{%- endif -%}

{% comment %}
Custom markup for slider arrows using theme icons
{% endcomment %}

{{ 'general.pagination.previous' | t }} {{ 'general.pagination.next' | t }}

{%- if settings.predictive_search_enabled -%}
{%- include ‘predictive-template’ -%}
{%- endif -%}

{% include ‘video-modal’ %}
{% include ‘photoswipe-template’ %}
{% if template contains ‘product’ %}
{% include ‘recently-viewed-product-template’ %}
{% endif %}
{% include ‘booster-discounts’ %}

{% render ‘hextom_usb_main’, product: product, customer: customer %}

Can you please tell me which one should i remove? This is theme.liquid code.

@suyash1

@Sahariar19 - check if you have product template file, because it looks like it has error on product pages only

{% section ‘product-template’ %}
{% section ‘product-recommendations’ %}
{% section ‘recently-viewed’ %}

{% if collection %}

{{ 'products.general.collection_return' | t: collection: collection.title }}
{% endif %}

@suyash1

{% include ‘product-template’,
description_style: section.settings.description_style,
image_position: section.settings.image_position,
image_container_width: section.settings.image_size,
section_id: product.id,
social: section.settings.social_enable,
thumbnail_position: section.settings.thumbnail_position,
thumbnail_arrows: section.settings.thumbnail_arrows
%}

{% if settings.enable_product_reviews and settings.reviews_layout == ‘full’ %}


{{ product.metafields.spr.reviews }}
{% endif %}

{% schema %}
{
“name”: “Product pages”,
“settings”: [
{
“type”: “select”,
“id”: “image_position”,
“label”: “Images position”,
“default”: “right”,
“options”: [
{
“value”: “left”,
“label”: “Left”
},
{
“value”: “right”,
“label”: “Right”
}
]
},
{
“type”: “select”,
“id”: “image_size”,
“label”: “Image size”,
“default”: “medium”,
“options”: [
{
“value”: “small”,
“label”: “Small”
},
{
“value”: “medium”,
“label”: “Medium”
},
{
“value”: “large”,
“label”: “Large”
}
]
},
{
“type”: “select”,
“id”: “thumbnail_position”,
“label”: “Thumbnail position”,
“default”: “beside”,
“options”: [
{
“value”: “beside”,
“label”: “Next to image”
},
{
“value”: “below”,
“label”: “Below image”
}
]
},
{
“type”: “checkbox”,
“id”: “thumbnail_arrows”,
“label”: “Show thumbnail arrows”
},
{
“type”: “select”,
“id”: “description_style”,
“label”: “Description position”,
“default”: “default”,
“options”: [
{
“value”: “default”,
“label”: “Next to images”
},
{
“value”: “full”,
“label”: “Below images”
}
]
},
{
“type”: “checkbox”,
“id”: “social_enable”,
“label”: “Enable social sharing”,
“default”: true
}
]
}
{% endschema %}

@suyash1 Please check

@Sahariar19 - ceck this product-template file, it would be in snippets folder

{%- unless thumbnail_position -%}
{%- assign thumbnail_position = ‘beside’ -%}
{%- endunless -%}

{%- unless description_style -%}
{%- assign description_style = ‘full’ -%}
{%- endunless -%}

{%- assign product_img_structure = product.featured_image | img_url: ‘1x1’ | replace: ‘1x1.', '{width}x.’ -%}

{%- include ‘product-template-variables’ -%}

{%- if image_position == 'left' -%}
{% include 'product-images', section_id: section_id, isModal: isModal, thumbnail_position: thumbnail_position, thumbnail_arrows: thumbnail_arrows %}
{%- endif -%}
{%- if settings.show_breadcrumbs and isModal != true -%} {%- include 'breadcrumbs' -%} {%- endif -%}

{%- if settings.vendor_enable -%}

{{ product.vendor }}
{%- endif -%}

{%- if isModal -%}

{{ product.title }}

{% else %}

{{ product.title }}

{%- endif -%}

{%- if settings.enable_product_reviews and settings.reviews_layout == ‘full’ -%}
{%- if isModal -%}
{%- assign review_link = product.url | within: collection | append: ‘#Reviews-’ | append: product.id -%}
{% else %}
{%- assign review_link = ‘#Reviews-’ | append: product.id -%}
{%- endif -%}



{%- endif -%}

{%- if settings.sku_enable -%}

{%- if current_variant.sku -%} {{ current_variant.sku }} {%- endif -%}

{%- endif -%}

{%- assign hide_sale_price = true -%}
{%- if product.compare_at_price_max > product.price -%}
{%- if current_variant.compare_at_price > current_variant.price -%}
{%- assign hide_sale_price = false -%}
{%- endif -%}

{{ ‘products.general.regular_price’ | t }}



{%- if current_variant.compare_at_price > current_variant.price -%}
{{ current_variant.compare_at_price | money }}
{%- endif -%}


{{ ‘products.general.sale_price’ | t }}
{% else %}
{{ ‘products.general.regular_price’ | t }}
{%- endif -%}


{{ current_variant.price | money }}

{%- if settings.product_save_amount -%}
{%- if settings.product_save_type == ‘dollar’ -%}
{% capture saved_amount %}{{ current_variant.compare_at_price | minus: current_variant.price | money }}{% endcapture %}
{%- else -%}
{% capture saved_amount %}{{ current_variant.compare_at_price | minus: current_variant.price | times: 100.0 | divided_by: current_variant.compare_at_price | round }}%{% endcapture %}
{%- endif -%}

{{ ‘products.general.save_html’ | t: saved_amount: saved_amount }}

{%- endif -%}

{%- capture unit_price_base_unit -%} {%- if current_variant.unit_price_measurement -%} {%- if current_variant.unit_price_measurement.reference_value != 1 -%} {{ current_variant.unit_price_measurement.reference_value }} {%- endif -%} {{ current_variant.unit_price_measurement.reference_unit }} {%- endif -%} {%- endcapture -%}

{{ current_variant.unit_price | money }}/{{ unit_price_base_unit }}

{%- if shop.taxes_included or shop.shipping_policy.body != blank -%}

{%- if shop.taxes_included -%} {{ 'products.product.include_taxes' | t }} {%- endif -%} {%- if shop.shipping_policy.body != blank -%} {{ 'products.product.shipping_policy_html' | t: link: shop.shipping_policy.url }} {%- endif -%}
{%- endif -%}

{%- if settings.inventory_enable or settings.inventory_transfers_enable -%}
{%- assign variants_with_inventory_tracking = product.variants | where: ‘inventory_management’, ‘shopify’ -%}

{% comment %}
If loaded in quick view, it might be from a JS-loaded function
that loads recommended products. If that’s the case, the above
JS will not set the variant inventory. Add it to an accessible
data div to read later instead.
{% endcomment %}
{%- if isModal -%}

{%- for variant in variants_with_inventory_tracking -%}
{%- endfor -%}
{%- endif -%} {%- endif -%}

{%- unless isModal -%}
{% comment %}
Shopify’s product form attaches a number of tracking
scripts that cause slower load times and false statistics.
Quick view modals request these on-demand.
{% endcomment %}
{% include ‘product-form’, section_id: section_id %}
{%- else -%}

{%- endunless -%}

{%- if settings.trust_image != blank -%}

{%- assign img_url = settings.trust_image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' -%} {{ settings.trust_image.alt }} {{ settings.trust_image.alt }}
{%- endif -%}

{%- unless description_style == ‘full’ -%}

{{ product.description }}

{% include ‘product-additional-content’, section_id: section_id %}
{%- endunless -%}

{%- if social -%}
{% include ‘social-sharing’, share_title: product.title, share_permalink: product.url, share_image: product %}
{%- endif -%}

{%- unless image_position == ‘left’ -%}

{% include 'product-images', section_id: section_id, isModal: isModal, thumbnail_position: thumbnail_position, thumbnail_arrows: thumbnail_arrows %}
{%- endunless -%}

{%- if description_style == ‘full’ -%}

{{ product.description }}

{% include ‘product-additional-content’, section_id: section_id %}
{%- endif -%}

@suyash1 Here is snippets folder code.

@Sahariar19 - can you add me as collab? I can send request, need to search it a bit, code looks ok

Can we do anydesk?

Contact Me: