【发布时间】:2020-07-08 07:21:06
【问题描述】:
我试图在 shopify 上将 image1 添加到我的标题中。我是否需要重叠标题或将 image1 作为一个完整的标题添加到标题中?
我已经有一个徽标,并且已经将图像上传到 Assets 文件夹。我接下来要做什么?
my website header- green box is header space and red box is where i want the image
header.liquid 代码:
<style>
{%- assign logo_width = 695 -%}
{%- assign logo_max_width = section.settings.logo_max_width | times: 1 -%}
{% if logo_max_width < logo_width %}
{%- assign logo_width = logo_max_width -%}
{% endif %}
.logo__image-wrapper {
max-width: {{ logo_width }}px;
}
/*================= If logo is above navigation ================== */
{% if section.settings.nav_below_logo %}
.site-nav {
{% if section.settings.show_header_lines %}
border-top: 1px solid {{ settings.color_borders }};
border-bottom: 1px solid {{ settings.color_borders }};
{% endif %}
margin-top: 30px;
}
{% unless section.settings.left_aligned_logo %}
.logo__image-wrapper {
margin: 0 auto;
}
{% endunless %}
{% endif %}
【问题讨论】:
标签: html css header shopify e-commerce