Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the rocket domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/practical-tips.com/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the mailchimp-for-wp domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/practical-tips.com/wp-includes/functions.php on line 6114

Notice: 函数 _load_textdomain_just_in_time 的调用方法不正确soledad 域的翻译加载触发过早。这通常表示插件或主题中的某些代码运行过早。翻译应在 init 操作或之后加载。 请查阅调试 WordPress来获取更多信息。 (这个消息是在 6.7.0 版本添加的。) in /var/www/practical-tips.com/wp-includes/functions.php on line 6114
Wordpress: Embedding a PDF file - this is how it works - Practical Tips

Wordpress: Embedding a PDF file – this is how it works

by Pramith

With just a few clicks, you can embedding a PDF file on your WordPress website. 根据不同的编辑器,步骤可能略有不同,但当涉及到练习文件时,它们是非常相似的。

在WordPress中用Gutenberg编辑器包含一个PDF文件

使用Gutenberg编辑器将WordPress文件嵌入你的网站很容易。你也可以按照我们章节下的图片库中的步骤进行操作。

  • 首先登录你的博客的管理员区,选择你想嵌入文件的页面。例如,在顶部菜单栏的 “新建 “旁边的加号,选择你想创建一个帖子或一个页面。
  • 将光标放在你的网站上你想嵌入PDF的地方。然后可以直接从你的电脑或Wordpress库中选择PDF文件。如果你愿意,你可以事先将文件上传到媒体库。
  • 然后选择顶部的 “添加文件 “项目。现在你可以把PDF文件拖入窗口,或用 “选择文件 “上传。
  •  你可以为该文件定义一个描述,并通过 “插入到文章中 “将其整合到你的博客。

 

用经典编辑器收录PDF

如果你使用经典编辑器,PDF可以以类似的方式整合到WordPress中。

  • 打开你想嵌入PDF的页面或帖子。你也可以创建一个新的页面。
  • 转到 “添加文件”。就像在Gutenberg编辑器中一样,你现在可以选择直接从你的电脑或从WordPress媒体库中上传PDF。
    • WordPress将创建一个自动链接到文件。
    • 提示:为了在WordPress中更快地整合PDF文件,请使用一个适当的插件。例如,”PDF嵌入器 “就适用于此。安装后,你会在编辑器中发现一个相应的功能,使你更容易嵌入PDF文件。

Related Articles

Leave a Comment