Skip to content

How to customize WordPress embeds to match your theme #306

@bph

Description

@bph

Discussed in #297

Originally posted by justintadlock August 28, 2024
WordPress embeds let any WP site's posts be embed anywhere.

image

But did you know that you can create a custom embed.php template to customize it? There's no block template equivalent, but there are many hooks that you can filter and even load custom CSS to to make it match your theme.

image

You can even customize the embed code panel:

image

This tutorial would explore all the various tips, tricks, and techniques to completely customizing a site's embedded posts so that they match their brand/theme when shared on third-party sites.

A lot of the techniques that would be covered (particularly PHP) are covered in this file:

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Published (Done)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions