السلام عليكم ورحمة الله وبركاتة
عندي مشكلة وان شاء الله تخدموني فيها ويجزاكم عني الخير:tears::tears:
فتح موقع تجاري عن طريق Shopify ولما جيت اترجم الموقع للعربية واجهتني مشكلة في الربط عند انشاء قائمة منسدلة "drop-down" كما في الصورة :bigsmile:
القائمة بعد الترجمة تختفي حتى السهم ماعدا يظهر :crazy::crazy:
هذا كود الثيم الرئيسي:icon-mos:
رمز PHP:
<span style="color: #000000">doctype html>
{{ page_title }}{% if current_tags %} – tagged "{{ current_tags | join: ', ' }}"{% endif %}{% if current_page != 1 %} – Page {{ current_page }}{% endif %}{% unless page_title contains shop.name %} – {{ shop.name }}{% endunless %}
{% if page_description %}
{% endif %}
{% include 'fb-open-graph-tags' %}
{% include 'twitter-cards' %}
{{ 'styles.scss.css' | asset_url | stylesheet_tag }}
{{ 'social/social-icons.css' | global_asset_url | stylesheet_tag }}
{{ '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css' | stylesheet_tag }}
{% if settings.google_header_font != "none" %}
{% endif %}
{% if settings.google_nav_font != "none" %}
{% endif %}
{{ 'html5shiv.js' | asset_url | script_tag }}
{{ content_for_header }}
{{ 'option_selection.js' | shopify_asset_url | script_tag }}
{{ 'api.jquery.js' | shopify_asset_url | script_tag }}
{% if template contains 'customers' %}
{{ 'shopify_common.js' | shopify_asset_url | script_tag }}
{{ 'customer_area.js' | shopify_asset_url | script_tag }}
{% endif %}
</i>
{% if cart.item_count != 0 %}
Checkout
{% endif %}
</i> Cart: {{ cart.item_count }}
{% include 'customer-links' %}
{% if settings.top_bar_linklist != blank %}
{% for link in linklists[settings.top_bar_linklist].links %}
{{ link.title }}
{% endfor %}
{% endif %}
</ul>
</i>Menu
{% include 'mobile-menu' %}
</div>
{% if settings.navigation_alignment == "right" %}
{% if settings.use_logo %}
{% if template == 'index' %}
{{ shop.name }}</h1>
{% endif %}
{% else %}
{{ shop.name }}
{% endif %}
</div>
</div>
{% include 'site-nav' %}
</div>
</div>
</div>
{% endif %}
{% if settings.navigation_alignment == "below" %}
{% if settings.use_logo %}
{% if template == 'index' %}
{{ shop.name }}</h1>
{% endif %}
{% else %}
{{ shop.name }}
{% endif %}
</div>
</div>
{% include 'site-nav' %}
{% include 'mobile-menu' %}
</div>
{% endif %}
{{ content_for_layout }}
</div>
</div>
</div>
{% assign blog_module_in_footer = false %}
{% unless settings.footer_blog_post == blank or blogs[settings.footer_blog_post].empty? or blogs[settings.footer_blog_post].articles.size == 0 %}
{% assign article = blogs[settings.footer_blog_post].articles.first %}
{% assign blog_module_in_footer = true %}
{{ settings.footer_blog_post_header }}
{{ article.title | link_to: article.url }}</p>
{{ article.content | strip_html | truncatewords: 30 }}
</div>
</div>
{% endunless %}
{{ settings.footer_linklist_title }}
{% for link in linklists[settings.footer_linklist].links %}
{{ link.title }}
{% endfor %}
</ul>
</div>
{% if settings.footer_display_newsletter %}
{{ settings.footer_newsletter_title }}
</div>
{% endif %}
{% if blog_module_in_footer %}
{% if settings.enable_social_links %}
{{ settings.footer_social_title }}
{% include 'social-links' %}
{% endif %}
</div>
{% endif %}
</div>
{% unless blog_module_in_footer %}
{% if settings.enable_social_links %}
{{ settings.footer_social_title }}
{% include 'social-links' %}
{% endif %}
</div>
</div>
{% endunless %}
Copyright © {{ 'now' | date: "%Y" }} {{ shop.name }} | {{ powered_by_link }} {% if settings.designed_by %}{% endif %}
{% if shop.enabled_payment_types.size > 0 %}
{% for type in shop.enabled_payment_types %}
{% endfor %}
</ul>
{% endif %}
</div>
</div>
</div>
{% if settings.display_slideshow %}
{{ 'jquery.flexslider-min.js' | asset_url | script_tag }}
{% endif %}
{% if settings.enable_product_image_zoom %}
{{ 'jquery.zoom.js' | asset_url | script_tag }}
{% endif %}
{{ 'jquery.fancybox.js' | asset_url | script_tag }}
{{ 'scripts.js' | asset_url | script_tag }}
{% if template contains 'product' %}
{% endif %}
</div> </div></div>هذا كود القائمة المنسدلة:icon-mos:
رمز Code:
- {% for link in linklists.main-menu.links %}
{% assign has_sub_menu = false %}
{% assign has_sub_categories = false %}
{% assign parent_link_active = false %}
{% assign child_list_handle = link.title | handle %}
{% if linklists[child_list_handle] and linklists[child_list_handle].links.size > 0 %}
{% assign has_sub_menu = true %}
{% for l in linklists[child_list_handle].links %}
{% if handle != blank and handle == l.object.handle %}
{% assign parent_link_active = true %}
{% elsif page_title == l.title %}
{% assign parent_link_active = true %}
{% endif %}
{% endfor %}
{% elsif settings.display_collection_dropdown and link.type == 'collection_link' and link.object.all_tags.size > 0 %}
{% assign has_sub_categories = true %}
{% endif %}
{{ link.title }}
{% if has_sub_menu or has_sub_categories %}
{% endif %}
{% if has_sub_menu or has_sub_categories %}
- {% if has_sub_menu %}
{% for l in linklists[child_list_handle].links %}
{{ l.title }}
{% endfor %}
{% elsif has_sub_categories %}
{% for tag in link.object.all_tags %}
{{ tag }}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
هذي صورة اضافي وقت ما اسوي ربط ووين المشكلة
اتمنى منكم :icon30: الحل ومنى الدعاء :blushing::bigsmile:</div>
أكثر...