Gatsby WP Themes Documentation

Overriding WordPress Theme Options

Overriding WordPress Theme Options

General settings

You can override some of the WordPress Theme Options set via WordPress Customizer (see WordPress Theme Options) in your Gatsby config.js file.

const config = {
// ...
addWordPressComments: false,
addWordPressSearch: true,
addColorModes: false,
socialFollowLinks: [
name: "codepen",
url: "",
module.exports = config

The options set in config.js will override your WordPress settings.

In the development mode, you will have to restart the development server to see any changes from the config file.

On this page