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.

config.js
const config = {
// ...
addWordPressComments: false,
addWordPressSearch: true,
addColorModes: false,
socialFollowLinks: [
{
name: "codepen",
url: "https://codepen.io/pehaa",
},
],
}
module.exports = config

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

If you want to override color settings please check the Colors Configuration section.

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

On this page