问题描述
我有一个幽灵博客,当用户滚动到每篇文章的一半时,我想弹出一个包含内容的 div 元素。
我会怎么做?我可以将代码粘贴到代码注入区域,它说:
Site Header
Code here will be injected into the {{ghost_head}} tag on every page of the site
解决方法
如果您想将代码注入到幽灵博客的正文中,您可能可以在 ghost_foot
选项中使用 code injection
。
如果您想在 <head>...</head>
之间添加代码,请在 ghost_head
内使用 code injection
。