适用于普通内容
将游戏放置在帖子、页面、落地页或可重复使用的模块模式中。

WordPress 游戏小部件
WordPress 网站所有者可以使用自定义 HTML 代码块添加可玩的浏览器游戏。粘贴 Games I Know iframe 代码,发布页面,即可在文章或落地页中为读者提供一个无需下载的快速游戏。
自定义 HTML 块
无需插件
响应式 iframe
帖子和页面中的作品
简答
在 WordPress 中,添加一个自定义 HTML 代码块,粘贴 Games I Know iframe 代码,然后发布页面。在 iframe 代码块内,请使用框架路由,而不是公共预览路由。
同样的 iframe 模式可以粘贴到 WordPress 自定义 HTML 代码块中。
WordPress 发布者和网站所有者
大多数 WordPress 发布者只需要复制粘贴 embed,而无需主题开发或自定义插件。
将游戏放置在帖子、页面、落地页或可重复使用的模块模式中。
对于 iframe 来说,自定义 HTML 代码块就足够了。您无需安装游戏插件。
一个小游戏可以让资源页面、博客和社区页面感觉更具互动性。
设置流程
使用 WordPress 区块编辑器或支持自定义 HTML 的主题模板区域。
步骤 1
编辑帖子、页面或模板区域,以便显示游戏。
步骤 2
粘贴为您已批准的网站域名生成的 Games I Know iframe 代码片段。
步骤 3
安装 Embed 浏览器游戏(由 Games I Know 开发),登录以从合作伙伴控制面板的“安装”选项卡复制您的合作伙伴 ID,将其粘贴到 Games I Know > 设置(必需)中,然后添加代码块或短代码。
步骤 4
检查手机宽度下的页面,确保 iframe 有足够的垂直空间。
步骤 5
发布页面并使用 Games I Know 仪表板数据或事件来了解使用情况。
执行
WordPress 页面因主题而异,因此请测试内容列宽度,避免将 iframe 挤入狭窄的小工具区域。
iframe 属于允许 iframe 标记的自定义 HTML 块、短代码输出或模板区域。
大多数游戏需要的是一个主要内容栏,而不是一个狭窄的侧边栏或页脚小部件。
为读者和搜索引擎添加关于 embed 的简短说明、游戏标题和常见问题解答内容。
可玩游戏
Tic Tac Toe
Embed for same-screen play on your site, or send players to Games I Know to challenge a friend remotely with a room link.
Embed 设置
Four in a Row
Embed for local two-player drops on one screen, or link friends to play Four in a Row online from anywhere.
Embed 设置
Bingo
Same-screen Bingo in your embed, or host a remote room so players can join from their own devices.
Embed 设置
I Know
Quick trivia in your embed on one screen, or run a live room so friends can answer from anywhere.
Embed 设置
Sudoku
Embed a solo Sudoku puzzle for calm brain breaks on blogs, school pages, and waiting-room screens.
Embed 设置
Word Search
Embed a solo Word Search puzzle for quick brain breaks on blogs, school pages, and waiting-room screens.
Embed 设置
常问问题
使用 /embed/{gameSlug}/frame/ 作为 iframe 的 src。该路由是为网站 embed 和 postMessage 事件构建的轻量级游戏框架。/embed/{gameSlug}/ 路由是面向用户的公开预览和 SEO 页面,不应放置在 iframe 内。
不。访客可以在手机、平板电脑、笔记本电脑或台式机上的浏览器iframe内进行游戏。只有安装embed的网站所有者才需要合作伙伴帐户。
是的。Games I Know 和 embed 是围绕注册网站和域名受限的租户设置设计的,因此复制的 iframe 代码不能在未经授权的网站上随意重复使用。
Tic Tac Toe、Four in a Row、Bingo 和 I Know 可作为 embed 浏览器游戏使用。embed 文档在所有受支持的游戏中使用相同的事件模型。
不。自定义 HTML 代码块可以包含 iframe 代码片段。只有当您的 WordPress 设置策略阻止了 iframe HTML 代码时,才需要插件。