Theme Settings Configurations

Last updatedView as Markdown

This page lists configurations available for Themes websites. You set them as properties in your blocks.json file.

Brand Settings

These settings apply to features across the website, and allow Themes administrators to control the look-and-feel to suit their brand.

NameProperty name (blocks.json)Data typeDescription
Website Display NamewebsiteNamestringThe reader-friendly name of this website, to be used in meta tags and social links. Example: websiteName: The Daily Planet
Website Domain NamewebsiteDomainURLURL for the base domain for this site. Should NOT have a trailing slash. Example: websiteDomain: https://www.dailyplanet.com
Primary Font
(removed in Themes 2.0)
For guidance on setting fonts in v2, see Local development process for Custom Blocks.
primary-font-familystringFont family for the primary font of the website, as shown in Theme website design specs. This should be the primary branding font, and will be used on headlines. Should be in the same format as a CSS font family string. Example: primary-font-family: Arial, sans-serif
Secondary Font
(removed in Themes 2.0)
For guidance on setting fonts in v2, see Local development process for Custom Blocks.
secondary-font-familystringFont family for the secondary font of the website, as shown in Theme website design specs. This is used for body copy. Should be in the same format as a CSS font family string. Example: secondary-font-family: Georgia, serif
Primary Color
(removed in Themes 2.0)
For guidance on setting colors through tokens, see Tokens.
primary-colorstringPrimary accent color to use across website (on some buttons, some labels, etc.). Anything that could be used as a CSS color (hex code, rgb value, color name) is OK here. Example: primary-color: #2980B9
Light Logo
Light Logo Alt Text
(replaced with one primary logo in Themes 2.0)
primaryLogo primaryLogoAltURL stringPrimary logo to use across website, primarily on the dark background of the navigation. Alt text to display with this logo
Dark Logo
Dark Logo Alt Text
(replaced with one primary logo in Themes 2.0)
lightBackgroundLogo lightBackgroundLogoAltURL stringLogo to use on light background. Alt text to display with this logo
Fallback ImagefallbackImageURLImage that can be used as a fallback promo image if no other promo image is set on the story.
Copyright TextcopyrightTextstringCopyright text that appears in the footer.
LocalelocalestringLanguage that Theme website UI elements should be presented in.
Text DirectiontextDirectionstringHorizontal text direction of the site. Set to ltr (left to right) by default. Rtl is accepted to handle right to left languages.
Text FlowtextFlowstringText flow of the site. The default is horizontal. The other options are for vertical text flow.

Note: Vertical text flow handling is not fully supported on all blocks.
Date localizationdateLocalizationobjectObject containing 4 values that control the appearance of display dates on the website.
language: Language code for what days of the week, months, etc. should use. (For example, Wednesday in en, vs miércoles in es). Same supported set as locale.
timeZone: Time zone that dates will be presented in. Must be a tz database name. (For example, America/Chicago).
dateTimeFormat: Format that display dates will appear in. Uses FORMAT control characters supported by POSIX UNIX Dates. (For example, January 14, 2020 at 1:49 pm EST).
dateFormat: Format for dates (as displayed in the Masthead Block). (For example, August 21, 2020).

Social Settings

These settings apply to any features that reference an organization’s social presence, like links in the footer, mentions when sharing through social, or metadata in the head of the page.

Pay close attention to whether the username or full page URL should be used for each one.

These do not have a default value, because if they are not present (if the organization doesn’t have a presence on a given social platform), the associated functionality should not be added to the website.

NameProperty name (blocks.json)Data typeDescription
Facebook Page URLfacebookPageURLFacebook page for the website. It should include the full URL to the Facebook page. Example: https://www.facebook.com/washingtonpost
Twitter UsernametwitterUsernamestringTwitter username for the website. It should include anything following https://twitter.com/ for example, washingtonpost
RSS Feed URLrssUrlURLRSS page for the website. This should be an absolute URL. Example: https://www.washingtonpost.com/discussions/2018/10/12/washington-post-rss-feeds/
Facebook adminsfacebookAdminsstringFacebook Admins ID for this website. Used in the metadata property fb:admins

Integration Settings

These settings are for ads and analytics integrations. If a value is present, the given script will be present on every page on the website. If a value is not present, the associated script will not be included on the website. (For this reason, they do not have a default value).

NameProperty name (blocks.json)Data typeDescription
Google Ads---------
DFP IDdfpIdstringThe DFP (aka Google Ads) Publisher ID for the website.
Website Ad PathwebsiteAdPathstringPath for the given website’s ad unit structure in Google Ads. Will be prepended to all ad calls on the given website. Should match the folder name(s) for each website you’ve set up ads for in your Google Ads account. Example value for The Globe website: the-globe
Example value for The Mercury News website: mercury-news
Advertisement LabeladvertisementLabelstringIf this setting is present for a given website, then the string is used in place of the default label (ADVERTISEMENT) above ads in the Google Ad Block
Gallery cube clicksgalleryCubeClicksnumberIf this setting is present, cube ads will render in the gallery every X clicks. For example, if galleryCubeClicks is set to 5, then a reader will see a gallery cube ad every 5 clicks forward (or backward) through images in a gallery.
Google Analytics---------
Google Tag Manager IDgtmIDstringThe Google Tag Manager ID for the website. If an ID value is present, the basic GTM script will be included on all pages on the website.
Google Analytics IDgaIDstringThe Google Analytics ID for the website. If an ID value is present, the basic GA script will be included on all pages on the website.
Chartbeat
Chartbeat Account IDchartBeatAccountIdstringCorresponds to _sf_async_config.uid in Chartbeat’s Script. If this and chartBeatDomain are present for a given Theme website, the basic Chartbeat script will be loaded on all pages on the website.
Chartbeat DomainchartBeatDomainstringCorresponds to _sf_async_config.domain in Chartbeat’s script. If this and chartBeatAccountId are present for a given Theme website, the basic Chartbeat script will be loaded on all pages on the website.
Comscore---------
Comscore IDcomscoreIDstringThe Comscore ID for the website. If an ID value is present, the basic Comscore script will be added to all pages on the website.

Note: Comscore’s Unified Digital Measurement (UDM) 2.0 is not supported.
Queryly---------
Queryly IDquerylyIdstringThis is an alphanumeric ID assigned by Querlyly
Queryly OrgquerylyOrgstringThis typically the same as your Arc XP org ID. It is assigned by Queryly.
Taboola---------
Taboola Publisher IDtaboolaPublisherIdstringYour Taboola Publisher ID is supplied by Taboola. See Taboola’s documentation for more details:Implementing Taboola JavaScript Placement Code.
Nativo---------
Nativo IntegrationnativoIntegrationbooleanIf true, then the Nativo script will be placed on all pages on the website, per the Nativo JavaScript Integration Guide. If false, then the Nativo script will not be placed on the website.

Block Settings

These settings affect only certain Arc XP blocks on your Themes website. (More general branding configurations are handled in Brand Settings).

NameProperty name (blocks.json)Data typeDescription
Navigation Bar Color SchemenavColorstringIf not present, defaults to dark
Can optionally be set to light
Navigation Bar Background ColornavBarBackgroundstringCan optionally be set to primary-color, in which case the website primary color is used as the background color for the navigation bar. If this value is set, the Navigation Color Scheme is still used to determine the color of the UI elements (search icon, sections button, etc.)

Arc XP Settings

These settings are necessary for setup with other Arc XP services. Some additional Arc XP integrations are in the Set In The Environment File article.

NameProperty name (blocks.json)Data typeDescription
Resizer DomainresizerURLURLURL to the Thumbor resizer for this site. Example: resizerURL: https://daily-planet.cdn.arcpublishing.com/resizer

Non-configurable values

These settings must have the exact value specified below – they cannot be configured at this time. Changing them will break functionality on the Themes website.

NameProperty nameData typeDescriptionDefault value
Aspect RatiosaspectRatiosarrayRepresents an array of aspect ratio strings that will be used by our image resizer to create resized image versions. Must be in the format Number:Number. Each image that goes through the resizer will have an image version available in each of the aspect ratios specified. Must be set as the value specified in the Default value column.[3:2, 4:3, 1:0, 16:9, 1:1]
BreakpointsbreakpointsobjectAn object representing the various breakpoints the site uses to shift layout for responsive design purposes. It’s up to each component how it uses the breakpoints. The keys it expects are small, medium, and large, and the values are pixel numbers for each breakpoint. Must be set as the value specified in the Default value column.{ small: 0, medium: 768, large: 992 }
Image widthsimageWidthsarrayMust be set as the value specified in the Default value column.[84,105,158,274,377,400,600,768,800,1024,1440,1600]