Skip to content

site

Queryin Content

The store's settings: its header and footer menus, the selling points in the header bar and the SEO templates. Null where the store has no site entry.

Arguments

ArgumentTypeDescription
versionContentVersionType
previewIdString

Returns

Site

FieldTypeDescription
idID!Unique identifier for the settings.
headerNavigationNavigationThe header's menu; null where the editor picked none or it is not published.
secondaryNavigationNavigationThe header's secondary menu, such as service or business; null where the editor picked none or it is not published.
footerNavigationNavigationThe footer's menu; null where the editor picked none or it is not published.
usps[Usp!]!The selling points in the header bar, at most four.
socials[SocialLink!]!The store's social profiles, in the editor's order.
paymentMethods[PaymentBrandType!]!The ways to pay the store shows, in the editor's order.
trustRatingTrustRatingThe store's review rating; null unless the editor set its score, best score and count.
catalogSeoTitleStringThe SEO title of a catalog page that sets none, such as {category} | {count} products.
catalogSeoDescriptionStringThe SEO description of a catalog page that sets none.
articleSeoTitleStringThe SEO title of an article that sets none, such as {title} | {section}.
contentSeoTitleStringThe SEO title of a content page that sets none, such as {heading} | Evolve.
topicPathSegmentStringThe path segment between a section and a topic, in the current locale, as in /blog/topic/tennis; null where the editor set none.

Example

query Site($version: ContentVersionType, $previewId: String) {
site(version: $version, previewId: $previewId) {
id
headerNavigation {
id
}
secondaryNavigation {
id
}
footerNavigation {
id
}
usps {
id
title
description
icon
}
socials {
platform
url
}
paymentMethods
trustRating {
score
maxScore
count
url
}
catalogSeoTitle
catalogSeoDescription
articleSeoTitle
contentSeoTitle
topicPathSegment
}
}

The query selects the return type's fields two levels deep; pick the ones you need. The response shows its shape with placeholder values.

Used by

The storefront packages that send it, in these GraphQL documents: