Shopify themes, liquid, logos, and UX
Hi All,
I designed a site using a mac and viewing in multiple browsers (safari, chrome). When I view the same site using a Windows machine, the images are cropped, both using Edge and Chrome. The unusual part is that if I run a Windows virtual machine on the mac, it looks fine. Attached are 2 images. The grainy one is from Windows (sorry customer sent from phone pic) and the other is from mac.
Any thoughts would be appreciated.
RP
Solved! Go to the solution
This is an accepted solution.
Hi @rpaulpen,
Please change all code:
<style>
.breadcrumb_collection2 {
position: relative;
}
.bg-breadcrumb--image:before {
content: '';
background: #00000059;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.bg-breadcrumb {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
</style>
<div class="wrap-bread-crumb breadcrumb_collection2">
<div class="bg-breadcrumb--image">
<img class="w-100" src="{% if section.settings.bg_breadcrumb != blank %} {{section.settings.bg_breadcrumb | img_url : 'master'}} {% else %}//placehold.it/1400x583 {% endif %}">
</div>
<div class="bg-breadcrumb">
<div class="container container-v2">
<div class="title-page">
<h2 class="">{{page.title}}</h2>
</div>
{% include 'breadcrumb' %}
</div>
</div>
</div>
<section id="content">
<div class="content-page contact-page">
<div class="container container-v2">
<h3 class="title_desc">{{section.settings.describe}}</h3>
{% if section.settings.enable_map %}
<a class="d-block" style="margin-bottom: 50px" target="_blank" href="{{section.settings.link_map}}">
<img src="{% if section.settings.image_map != blank %} {{section.settings.image_map | img_url : 'master'}} {% else %}//placehold.it/1400x583 {% endif %}">
</a>
{% endif %}
</div>
<div class="container">
<div class="contact-form">
<div class="row">
{% if section.settings.enable_info %}
<div class="col-md-6">
<div class="address-shop">
<h3 class="shop-name">
{{section.settings.shop_name}}
</h3>
<p class="shop-address">{{section.settings.shop_address}}</p>
</div>
{% for block in section.blocks %}
{% if block.type == 'info' %}
<div class=" info-sho p ">
<h3 class="title">
{{block.settings.block_title}}
</h3>
<p class="content">{{block.settings.block_content}}</p>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% if section.settings.enable_s_contactform %}
<div class="col-md-6 col-sm-6 col-12">
<div class="contact-form-page">
{% form 'contact' %}
{% if form.posted_successfully? %}
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<p style="margin-bottom: 5px;">
{{ 'contact.form.post_success' | t }}
</p>
</div>
{% endif %}
{% if form.errors %}
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<!-- {{ form.errors.size }} or {{ form.errors | size }} -->
<p style="margin-bottom: 5px;">Your contact form has {{ form.errors | size | pluralize: "an error", "a few errors" }}. To submit your form, make the following changes and try again:</p>
{% for field in form.errors %}
<p style="margin-bottom: 5px;">The {{ field | capitalize | replace: 'Body', 'Message' }} field {{ form.errors.messages[field] }}.</p>
{% endfor %}
</div>
{% endif %}
<div class="contact-form">
<p class="contact-name">
<input class="" placeholder="{{section.settings.contactform_name}}" type="text" id="contactFormName" name="contact[name]" required>
</p>
<p class="contact-email">
<input class="" placeholder="{{section.settings.contactform_email}}" type="email" id="contactFormEmail" name="contact[email]" required>
</p>
<p class="contact-subject">
<input class="dark border" placeholder="{{section.settings.contactform_subject}}" type="text" id="contactFormSubject" name="contact[subject]" required>
</p>
<p class="contact-message">
<textarea class="" placeholder="{{section.settings.contactform_content}}" cols="30" rows="10" id="contactFormMessage" name="contact[body]" required></textarea>
</p>
<p class="contact-submit">
<input class="shop-button" type="submit" value="{{section.settings.contactform_btn}}">
</p>
</div>
{% endform %}
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</section>
{% schema %}
{
"name": "Contact Us",
"settings": [
{
"type" : "image_picker",
"id": "bg_breadcrumb",
"label" : "Background Image Breadcrumb",
"info" : "1920x510px recommended"
},
{
"type" : "header",
"content" : "Config Map"
},
{
"type": "checkbox",
"id": "enable_map",
"label": "Enable?",
"default": true
},
{
"type" : "image_picker",
"id": "image_map",
"label" : "Image Map",
"info" : "1400x580px recommended"
},
{
"type" : "url",
"id" : "link_map",
"label" : "link map"
},
{
"type": "text",
"id": "describe",
"label": "Describe",
"default": "Contact us to find out more or how we can help you better."
},
{
"type": "header",
"content": "Shop Info & Address"
},
{
"type" : "paragraph",
"content" : "Please scroll to bottom and click Add Content to add info for your Shop"
},
{
"type": "checkbox",
"id": "enable_info",
"label": "Enable?",
"default": true
},
{
"type": "text",
"id": "shop_name",
"label": "Shop Name"
},
{
"type": "text",
"id": "shop_address",
"label": "Shop Name"
},
{
"type": "header",
"content": "Section Contact Form"
},
{
"type": "checkbox",
"id": "enable_s_contactform",
"label": "Enable?",
"default": true
},
{
"type": "text",
"id": "contactform_name",
"label": "Placeholder name",
"default": "User name*"
},
{
"type": "text",
"id": "contactform_email",
"label": "Placeholder email",
"default": "Email*"
},
{
"type": "text",
"id": "contactform_subject",
"label": "Placeholder Subject",
"default": "Subject"
},
{
"type": "text",
"id": "contactform_content",
"label": "Placeholder Message",
"default": "Message*"
},
{
"type": "text",
"id": "contactform_btn",
"label": "Button name",
"default": "Send"
}
],
"blocks": [
{
"type": "info",
"name": "Info",
"settings": [
{
"type": "text",
"id": "block_title",
"label": "Title",
"default": " FREE SHIPPING & RETURN"
},
{
"type": "text",
"id": "block_content",
"label": "Content",
"default": " If your glasses aren't perfect, return them within 30 days<br> for a full refund. We'll even pay shipping."
}
]
}
],
"presets": [
{
"name": "Contact Us",
"blocks": [
]
}
]
}
{% endschema %}
{% stylesheet %}
{% endstylesheet %}
{% javascript %}
{% endjavascript %}
Hi @rpaulpen,
Please send the website link, I will check it for you
This is an accepted solution.
Hi @rpaulpen,
Please change all code:
<style>
.breadcrumb_collection2 {
position: relative;
}
.bg-breadcrumb--image:before {
content: '';
background: #00000059;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.bg-breadcrumb {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
</style>
<div class="wrap-bread-crumb breadcrumb_collection2">
<div class="bg-breadcrumb--image">
<img class="w-100" src="{% if section.settings.bg_breadcrumb != blank %} {{section.settings.bg_breadcrumb | img_url : 'master'}} {% else %}//placehold.it/1400x583 {% endif %}">
</div>
<div class="bg-breadcrumb">
<div class="container container-v2">
<div class="title-page">
<h2 class="">{{page.title}}</h2>
</div>
{% include 'breadcrumb' %}
</div>
</div>
</div>
<section id="content">
<div class="content-page contact-page">
<div class="container container-v2">
<h3 class="title_desc">{{section.settings.describe}}</h3>
{% if section.settings.enable_map %}
<a class="d-block" style="margin-bottom: 50px" target="_blank" href="{{section.settings.link_map}}">
<img src="{% if section.settings.image_map != blank %} {{section.settings.image_map | img_url : 'master'}} {% else %}//placehold.it/1400x583 {% endif %}">
</a>
{% endif %}
</div>
<div class="container">
<div class="contact-form">
<div class="row">
{% if section.settings.enable_info %}
<div class="col-md-6">
<div class="address-shop">
<h3 class="shop-name">
{{section.settings.shop_name}}
</h3>
<p class="shop-address">{{section.settings.shop_address}}</p>
</div>
{% for block in section.blocks %}
{% if block.type == 'info' %}
<div class=" info-sho p ">
<h3 class="title">
{{block.settings.block_title}}
</h3>
<p class="content">{{block.settings.block_content}}</p>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% if section.settings.enable_s_contactform %}
<div class="col-md-6 col-sm-6 col-12">
<div class="contact-form-page">
{% form 'contact' %}
{% if form.posted_successfully? %}
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<p style="margin-bottom: 5px;">
{{ 'contact.form.post_success' | t }}
</p>
</div>
{% endif %}
{% if form.errors %}
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<!-- {{ form.errors.size }} or {{ form.errors | size }} -->
<p style="margin-bottom: 5px;">Your contact form has {{ form.errors | size | pluralize: "an error", "a few errors" }}. To submit your form, make the following changes and try again:</p>
{% for field in form.errors %}
<p style="margin-bottom: 5px;">The {{ field | capitalize | replace: 'Body', 'Message' }} field {{ form.errors.messages[field] }}.</p>
{% endfor %}
</div>
{% endif %}
<div class="contact-form">
<p class="contact-name">
<input class="" placeholder="{{section.settings.contactform_name}}" type="text" id="contactFormName" name="contact[name]" required>
</p>
<p class="contact-email">
<input class="" placeholder="{{section.settings.contactform_email}}" type="email" id="contactFormEmail" name="contact[email]" required>
</p>
<p class="contact-subject">
<input class="dark border" placeholder="{{section.settings.contactform_subject}}" type="text" id="contactFormSubject" name="contact[subject]" required>
</p>
<p class="contact-message">
<textarea class="" placeholder="{{section.settings.contactform_content}}" cols="30" rows="10" id="contactFormMessage" name="contact[body]" required></textarea>
</p>
<p class="contact-submit">
<input class="shop-button" type="submit" value="{{section.settings.contactform_btn}}">
</p>
</div>
{% endform %}
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</section>
{% schema %}
{
"name": "Contact Us",
"settings": [
{
"type" : "image_picker",
"id": "bg_breadcrumb",
"label" : "Background Image Breadcrumb",
"info" : "1920x510px recommended"
},
{
"type" : "header",
"content" : "Config Map"
},
{
"type": "checkbox",
"id": "enable_map",
"label": "Enable?",
"default": true
},
{
"type" : "image_picker",
"id": "image_map",
"label" : "Image Map",
"info" : "1400x580px recommended"
},
{
"type" : "url",
"id" : "link_map",
"label" : "link map"
},
{
"type": "text",
"id": "describe",
"label": "Describe",
"default": "Contact us to find out more or how we can help you better."
},
{
"type": "header",
"content": "Shop Info & Address"
},
{
"type" : "paragraph",
"content" : "Please scroll to bottom and click Add Content to add info for your Shop"
},
{
"type": "checkbox",
"id": "enable_info",
"label": "Enable?",
"default": true
},
{
"type": "text",
"id": "shop_name",
"label": "Shop Name"
},
{
"type": "text",
"id": "shop_address",
"label": "Shop Name"
},
{
"type": "header",
"content": "Section Contact Form"
},
{
"type": "checkbox",
"id": "enable_s_contactform",
"label": "Enable?",
"default": true
},
{
"type": "text",
"id": "contactform_name",
"label": "Placeholder name",
"default": "User name*"
},
{
"type": "text",
"id": "contactform_email",
"label": "Placeholder email",
"default": "Email*"
},
{
"type": "text",
"id": "contactform_subject",
"label": "Placeholder Subject",
"default": "Subject"
},
{
"type": "text",
"id": "contactform_content",
"label": "Placeholder Message",
"default": "Message*"
},
{
"type": "text",
"id": "contactform_btn",
"label": "Button name",
"default": "Send"
}
],
"blocks": [
{
"type": "info",
"name": "Info",
"settings": [
{
"type": "text",
"id": "block_title",
"label": "Title",
"default": " FREE SHIPPING & RETURN"
},
{
"type": "text",
"id": "block_content",
"label": "Content",
"default": " If your glasses aren't perfect, return them within 30 days<br> for a full refund. We'll even pay shipping."
}
]
}
],
"presets": [
{
"name": "Contact Us",
"blocks": [
]
}
]
}
{% endschema %}
{% stylesheet %}
{% endstylesheet %}
{% javascript %}
{% endjavascript %}
Hi @rpaulpen
Can you share with me the website link to check further for you?
Thank you
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024