Dark Mode
Utilities
Registry Architecture
Jolocky items are React components. There is no Jolocky WordPress plugin, theme, or block pattern, but you can still use the footers on a site whose content is managed in WordPress.
Recommended: Headless WordPress with Next.js#
Use WordPress as a headless CMS and build the front end in Next.js:
- Keep editing content in WordPress and expose it through the REST API or a GraphQL plugin such as WPGraphQL.
- Build the front end with Next.js and fetch your content from WordPress.
- Install Jolocky footers into the Next.js app with the shadcn CLI, as described in the Next.js guide.
Editors keep the WordPress admin they know, and the footer runs as a normal React component in your Next.js app.
Classic Themes#
A classic WordPress theme renders PHP templates, not React, so a footer has to be bundled with React and mounted into the page yourself. In outline:
- Set up a small React build (for example with Vite) in your theme, and install the footer into it with the shadcn CLI or by copying its files (see Manual Installation).
- Mount the footer into an element in your theme's footer template:
import { createRoot } from "react-dom/client"
import { AuroraDriftFooter } from "./components/footers/aurora-drift"
const container = document.getElementById("site-footer")
if (container) {
createRoot(container).render(<AuroraDriftFooter />)
}- Add
<div id="site-footer"></div>tofooter.php, and load the built script withwp_enqueue_scriptinfunctions.php.
Each footer carries its own CSS, so you do not need to add a stylesheet for it.