WP Manifestindependent plugin directory
manifest / integrations / kochmodus-wordpress-plugin

Kochmodus

by Flowd GmbH · github.com/flowd/kochmodus-wordpress-plugin · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/flowd/kochmodus-wordpress-plugin/archive/refs/heads/main.zip

WordPress plugin to embed the Kochmodus cooking mode widget on recipe pages. Allows visitors to enter a gesture-controlled cooking mode for any recipe on your site.

Requirements

  • WordPress >= 6.0
  • PHP >= 7.4
  • A Kochmodus account with an Access Token — sign up at kochmodus.de
  • Recipe pages must contain valid schema.org/Recipe JSON-LD data, otherwise the cooking mode cannot load the recipe

Installation

Option 1: Install via Composer

For WordPress projects managed with Composer, require the plugin:

composer require flowd/kochmodus-wordpress-plugin

Then activate the plugin in the WordPress admin under Plugins.

Option 2: Upload ZIP via WordPress Admin

  1. Download the latest kochmodus.zip from the GitHub Releases page (attached as a release artifact)
  2. In the WordPress admin, go to Plugins > Add New > Upload Plugin
  3. Select the ZIP file and click Install Now
  4. Activate the plugin

Option 3: WordPress Plugin Directory

  1. In the WordPress admin, go to Plugins > Add New
  2. Search for Kochmodus
  3. Click Install Now, then Activate

Configuration

Access Token

Go to Settings > Kochmodus in the WordPress admin and enter your Access Token. You find the token in your Kochmodus dashboard under Token.

Button Defaults

On the same settings page you can optionally set global defaults for all Kochmodus buttons:

  • Button Label
  • Background Color
  • Hover Background Color
  • Label Color

The color fields use the native WordPress color picker; hex (#rrggbb) and rgb()/rgba() values are accepted. Leave a field empty to use the widget's built-in default. Values set on an individual post or page (via block sidebar or shortcode attributes) always take precedence over these defaults.

The default colors are also printed as CSS custom properties on :root in wp_head, so they even apply to <kochmodus-button> elements hand-coded in theme templates. Note that for hand-coded buttons the default label does not apply (it is an HTML attribute, not CSS), and you have to set the data-kochmodus-access-token attribute and load the widget script yourself.

Widget Script URL (Development Override)

By default, the plugin loads the widget script from https://kochmodus.de/build/assets/kochmodus-widget.js.

For local development, you can override this by adding the following to your wp-config.php:

define('KOCHMODUS_WIDGET_SCRIPT_URL', 'https://app.kochmodus.localdev/build/assets/kochmodus-widget.js');

Usage

Gutenberg Block

Search for Kochmodus Button in the block inserter. The block provides settings in the sidebar for:

  • Button Label - defaults to "Kochmodus starten"
  • Recipe URI - leave empty to use the current page URL
  • Background Color - custom button background color
  • Hover Background Color - custom button hover background color
  • Text Color - custom button text color

Shortcode

[kochmodus_button]

With all available attributes:

[kochmodus_button label="Start Cooking" recipe_uri="https://example.com/recipe/" background_color="#ff0000" hover_background_color="#cc0000" color="#ffffff"]

All attributes are optional. When no recipe_uri is provided, the widget falls back to the current browser URL.

Output

The plugin renders a <kochmodus-button> web component:

<kochmodus-button
    label="Kochmodus starten"
    data-kochmodus-access-token="YOUR_TOKEN"
></kochmodus-button>

With colors and recipe URI set:

<kochmodus-button
    label="Kochmodus starten"
    data-kochmodus-recipe-uri="https://example.com/recipe/"
    style="--kochmodus-button-background: #ff0000; --kochmodus-button-hover-background: #cc0000; --kochmodus-button-color: #ffffff"
    data-kochmodus-access-token="YOUR_TOKEN"
></kochmodus-button>

The widget script (`