The logo block displays a logo in the store header.

logologo

Configuration

  1. Import the vtex.store-components app to your theme's dependencies in the manifest.json file as in the following example:
 "dependencies": {
    "vtex.store-components": "3.x"
  }
  1. Add the logo block into the header component. For example:
  "header.full": {
    "blocks": [
      "login",
      "minicart",
+     "logo",
      "search-bar",
      "menu-link",
      "telemarketing",
      "category-menu"
    ]
  },
  1. Then, declare the logo block using the props stated in the Props table. For example:
 "logo": {
    "props": {
      "width": 132,
      "height": 32,
      "mobileWidth": 90,
      "mobileHeight": 32
    }
  }
}

Props

Prop nameTypeDescriptionDefault value
classesCustomCSSClassesOverrides default CSS handles. To better understand how this prop works, check this document. Note that this is only helpful if you're using this block as a React component.undefined
colorStringThe image fill color.#F71963
heightNumberThe logo image height.177
hrefStringThe image hyperlink.undefined
showLabelBooleanThe label visibility.true
titleString!The image alt description.VTEX logo
urlStringThe image soure URL.undefined
widthNumberThe logo image width.493

Customization

To apply CSS customizations in this and other blocks, follow the Using CSS handles for store customization guide.

CSS Handles
logoContainer
logoImage
logoLink
sizeDesktop
sizeMobile

Did this page help you?