Hi,
I figured out how to add the logo to the footer column, however it isn’t displaying how I want it to on mobile, see below desktop vs mobile view:
Is there a way to force the logo to be centred on mobile? I want it to remain left aligned on desktop and only be centred on mobile.
I’ve added my footer.liquid code below for your reference.
Thanks!
{%- liquid
assign navigation_t = 'layout.footer.navigation' | t
assign bg_color = section.settings.background-color
assign block_count = section.blocks.size
assign heading_type = section.settings.heading-type
assign top_border = section.settings.top-border
assign white_text = section.settings.white-text
assign region_enabled = false
if section.settings.show-region-selector and localization.available_countries.size > 1
assign region_enabled = true
endif
assign locale_enabled = false
if section.settings.show-locale-selector and localization.available_languages.size > 1
assign locale_enabled = true
endif
-%}
{%- for block in section.blocks limit: block_count -%}
{%- case block.type -%}
{%- when 'about' -%}
{%- assign show_social = block.settings.subscribe--show-social-icons -%}
{%- if block.settings.about-title != blank -%}
{{- block.settings.about-title | escape -}}
{%- endif -%}
{%- if block.settings.text != blank -%}
{%- assign current_year = 'now' | date: '%Y' -%}
{{- block.settings.text | replace: '[current_year]', current_year -}}
{%- endif -%}
{%- liquid
if show_social
render 'social-icons', type: 'follow', align: 'left', mobile_align: 'center'
endif
if section.settings.enable-follow-on-shop
echo shop | login_button: action: 'follow'
endif
-%}

{%- when 'menu' -%}
{%- if block.settings.menu-title != blank -%}
{{- block.settings.menu-title | escape -}}
{%- endif -%}
{%- if linklists[block.settings.menu].links.size > 0 -%}
{%- assign footer_nav = block.settings.menu -%}
{%- for link in linklists[footer_nav].links -%}
- {%- if link.url == routes.search_url -%}
{{- link.title -}}
{%- else -%}
{{- link.title -}}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- if block.settings.show-policy-links -%}
{%- for policy in shop.policies -%}
{%- if policy != blank -%}
- {{- policy.title -}}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- when 'subscribe' -%}
{%- if block.settings.subscribe--show-newsletter or show_social -%}
{%- if block.settings.newsletter--heading != blank -%}
{{ block.settings.newsletter--heading }}
{%- endif -%}
{%- endif -%}
{%- if block.settings.subscribe--show-newsletter -%}
{%- if block.settings.newsletter--info != blank -%}
{{- block.settings.newsletter--info -}}
{%- endif -%}
{%- render 'subscribe-form', id: 'footer_form' -%}
{%- endif -%}
{%- when 'liquid' -%}
{{- block.settings.custom-liquid -}}
{%- endcase -%}
{%- endfor -%}
{%- liquid
if section.blocks.size == 0
render 'no-blocks'
endif
-%}
{%- if locale_enabled or region_enabled -%}
{%-
render 'localization',
locale_enabled: locale_enabled,
region_enabled: region_enabled,
loading: 'lazy',
id: 'footer'
-%}
{%- endif -%}
{%- assign powered_check = powered_by_link | split: '>' -%}
{%- if powered_check[1] != '
{{- powered_by_link -}}
{%- endif -%}
{%- liquid
if shop.enabled_payment_types != empty and section.settings.show-payment-icons
echo ''
for type in shop.enabled_payment_types
echo type | payment_type_svg_tag
endfor
echo '
'
endif
-%}
{% schema %}
{
"name": "Footer",
"class": "section--footer",
"tag": "footer",
"max_blocks": 4,
"settings": [
{
"type": "header",
"content": "Style and layout"
},
{
"id": "top-border",
"label": "Top border",
"type": "checkbox",
"default": false
},
{
"id": "background-color",
"label": "Background color",
"type": "select",
"options": [
{
"label": "None",
"value": "none"
},
{
"label": "Light",
"value": "light"
},
{
"label": "Dark",
"value": "dark"
},
{
"label": "Accent 1",
"value": "accent-1"
},
{
"label": "Accent 2",
"value": "accent-2"
}
],
"default": "accent-1"
},
{
"id": "heading-type",
"label": "Heading type",
"type": "select",
"options": [
{ "label": "Medium", "value": "block-heading" },
{ "label": "Small", "value": "nav-text" }
],
"default": "block-heading"
},
{
"id": "white-text",
"label": "Use white text color",
"type": "checkbox",
"default": false
},
{
"type": "header",
"content": "Follow on Shop",
"info": "To allow customers to follow your store on the Shop app from your storefront, Shop Pay must be enabled. [Learn more](https:\/\/help.shopify.com\/manual\/online-store\/themes\/customizing-themes\/follow-on-shop)."
},
{
"type": "checkbox",
"id": "enable-follow-on-shop",
"label": "Enable Follow on Shop",
"default": true
},
{
"type": "header",
"content": "Country/region Selector",
"info": "To add a country/region, go to your [payment settings](/admin/settings/payments)."
},
{
"type": "checkbox",
"id": "show-region-selector",
"label": "Show country/region selector",
"default": true
},
{
"type": "header",
"content": "Language Selector",
"info": "To add a language, go to your [language settings](/admin/settings/languages)."
},
{
"type": "checkbox",
"id": "show-locale-selector",
"label": "Show language selector",
"default": true
},
{
"type": "header",
"content": "Payment methods"
},
{
"type": "checkbox",
"id": "show-payment-icons",
"label": "Show payment icons",
"default": true
}
],
"blocks": [
{
"type": "about",
"name": "About and copyright",
"settings": [
{
"type": "text",
"id": "about-title",
"label": "Title",
"default": "About the store"
},
{
"type": "richtext",
"id": "text",
"label": "Description and copyright",
"default": "
[current_year] © Your brand name here.
A brief store summary, tagline, or vision statement.
",
"info": "Inserting the text '[current_year]' will automatically insert the current year."
},
{
"type": "checkbox",
"id": "subscribe--show-social-icons",
"label": "Show social icons",
"default": true
}
]
},
{
"type": "menu",
"name": "Menu",
"settings": [
{
"type": "text",
"id": "menu-title",
"label": "Title",
"default": "Quick links"
},
{
"type": "link_list",
"id": "menu",
"label": "Menu",
"default": "footer",
"info": "This menu won't show submenu items."
},
{
"type": "header",
"content": "Policy links",
"info": "To add store policies, go to your [policy settings](\/admin\/settings\/legal)."
},
{
"type": "checkbox",
"id": "show-policy-links",
"label": "Show policy links",
"default": true
}
]
},
{
"type": "subscribe",
"name": "Subscribe",
"limit": 1,
"settings": [
{
"id": "newsletter--heading",
"label": "Newsletter heading",
"type": "text",
"default": "Newsletter"
},
{
"id": "newsletter--info",
"label": "Newsletter information",
"type": "richtext",
"default": "
Be the first to receive updates on new arrivals, special promos and sales.
"
},
{
"type": "checkbox",
"id": "subscribe--show-newsletter",
"label": "Show newsletter",
"default": true
}
]
},
{
"type": "liquid",
"name": "Custom liquid",
"settings": [
{
"type": "liquid",
"id": "custom-liquid",
"label": "Custom Liquid",
"info": "Add app snippets or other Liquid code to create advanced customizations."
}
]
}
],
"enabled_on": {
"groups": ["footer"]
}
}
{% endschema %}