论文主题添加div
如何在论文主题的标题区域和内容区域之间添加 div。我需要在 custom_functions.php
文件中编写什么代码来执行此操作?如果那不是这个地方,我需要在哪里进行更改才能完成此操作?
How do I add a div between the header area and content area of a thesis theme. What is the code I need to write in custom_functions.php
file to do this? If that's not the place, where do I need to make changes to get this done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在您的 custom_functions.php 文件中添加以下代码:
您可能想引用 Thesis Hooks 和 DIYThemes 网站提供更具体的论文帮助。
In your custom_functions.php file add the following code:
You my want to reference Thesis Hooks and the DIYThemes site for more specific Thesis help.
您需要编辑主题文件。可能是
header.php
和包含正文的那个。在提出此类问题之前,请通读 http://codex.wordpress.org/Theme_Development 。You'll need to edit the theme files. Probably the
header.php
and the one where the one which contains the body. Before you fire off questions like this, please read through http://codex.wordpress.org/Theme_Development.一种非常简单的方法是使用 Thesis Openhooks。选择标题和内容区域之间的区域。我一直使用这种方法,尤其是对于图像。在钩子内,您所要做的就是键入 DIV 的 HTML 代码(我尝试在此处键入它,但在我发布评论后该代码消失了),然后我可以在 custom.css 中向其添加 CSS 代码。希望这有帮助:)
One really easy way, is to use Thesis Openhooks. Select the one that's between the header and the content area. I use that method all the time, especially for images. Inside the hook, all you have to do is type the HTML code for the DIV (I tried to type it here, but the code disappeared after I posted the comment) and then I can add CSS code to it in custom.css. Hope this helps :)