- Convert MDX CodeBlock components to standard markdown code fences - Add rehype-mdx-code-props to pass filename meta to code components - Custom pre/code MDX components map fences to CodeBlock - Add brand color badges (product + category) matching /learn layout - Match prose styling: orange inline code, orange links, white strong - Remove brand color background glow (not in /learn)
30 lines
954 B
Plaintext
30 lines
954 B
Plaintext
---
|
|
title: "WordPress"
|
|
description: "Add Pulse analytics to your WordPress site via a plugin or theme header code."
|
|
category: "cms"
|
|
brandColor: "#21759B"
|
|
officialUrl: "https://wordpress.org/documentation"
|
|
relatedIds: ["ghost", "drupal", "woocommerce"]
|
|
date: "2026-03-28"
|
|
---
|
|
|
|
Add the Pulse script via a plugin or by editing your theme's header file directly.
|
|
|
|
---
|
|
|
|
## Method 1: Using a plugin (Recommended)
|
|
|
|
The easiest way is to use the [WPCode (Insert Headers and Footers)](https://wordpress.org/plugins/insert-headers-and-footers/) plugin. Install it, then go to **Code Snippets -> Header & Footer** and paste the Pulse script into the Header section.
|
|
|
|
```html filename="Header Script"
|
|
<script
|
|
defer
|
|
data-domain="your-site.com"
|
|
src="https://pulse.ciphera.net/script.js"
|
|
></script>
|
|
```
|
|
|
|
## Method 2: Edit header.php directly
|
|
|
|
Go to **Appearance -> Theme File Editor** and edit `header.php`. Add the Pulse script before the closing `</head>` tag.
|