Footer is a store component that shows information about the store such as address, social networks and payment methods. Furthermore, it is possible to add hyperlinks for privacy policy, FAQ, benefits and attendance. This app is used by store theme.
Configuration
- Import the
vtex.store-footer
's app to your theme's dependencies in themanifest.json
, for example:
_10 dependencies: {_10 "vtex.store-footer: 2.x"_10 }
- Define the
footer
block. For example:
_42{_42 "footer": {_42 "blocks": ["footer-layout.desktop", "footer-layout.mobile"]_42 },_42 "footer-layout.desktop": {_42 "children": [_42 "flex-layout.row#footer-desktop"_42 ]_42 },_42 "footer-layout.mobile": {_42 "children": [_42 "flex-layout.row#footer-mobile"_42 ]_42 },_42 "flex-layout.row#footer-desktop": {_42 "children": [_42 "social-networks",_42 "accepted-payment-methods",_42 "powered-by"_42 ]_42 },_42 "flex-layout.row#footer-mobile": {_42 "children": [_42 "social-networks",_42 "accepted-payment-methods",_42 "powered-by"_42 ]_42 },_42 "social-networks": {_42 "props": {_42 "socialNetworks": [_42 { "url": "https://facebook.com/foo", "name": "Facebook" },_42 { "url": "https://twitter.com/foo", "name": "Twitter" }_42 ]_42 }_42 },_42 "accepted-payment-methods": {_42 "props": {_42 "paymentMethods": ["mastercard", "visa", "diners club"]_42 }_42 }_42}
social-networks
:
Prop name | Type | Description |
---|---|---|
title | string | Text to show above of list of links |
socialNetworks | Array(SocialNetwork) | Array of social networks |
showInColor | boolean | Whether the icons are colored or not |
SocialNetwork
Prop name | Type | Description |
---|---|---|
url | string | Link to the social network profile |
name | enum | Possible values: facebook , twitter , linkedin , youtube , pinterest |
accepted-payment-methods
:
Prop name | Type | Description |
---|---|---|
paymentMethods | Array | Possible values: mastercard , visa , diners club |
showInColor | boolean | Whether the icons are colored or not |
powered-by
:
Prop name | Type | Description |
---|---|---|
showInColor | boolean | Whether the icons are colored or not |
Customization
In order to apply CSS customizations in this and other blocks, follow the instructions given in the recipe on Using CSS Handles for store customization.
footer-layout
:
CSS Handles |
---|
footerLayout |
footerLayoutSpacer |
social-networks
:
CSS Handles |
---|
socialNetworksTitle |
socialNetworksContainer |
socialNetworkWrapper |
socialNetworkLink |
socialNetworkImage |
accepted-payment-methods
:
CSS Handles |
---|
acceptedPaymentMethodContainer |
paymentMethodIcon |
paymentMethodIconImage |
powered-by
:
CSS Handles |
---|
poweredBy |
poweredByImage |
poweredByLink |