使用Atom Builder strong> p>By default, only basic pages are supported.
默认情况下,仅支持基本页面。
It basically registers a widget area for all of your pages.
它基本上为您所有页面注册了一个小部件区域。
To avoir cluttering the admin area, the newly registered widget areas do not appear alongside your theme’s standard ones, and you have to access them directly in the customizer.
为了避免混乱的管理区域,新注册的窗口小部件区域不会出现在主题的标准区域的旁边,因此您必须直接在定制器中访问它们。
To see it in action :
观看实际效果:
* Just visit any page on your site while logged in, and click the ‘Customize’ link.
*登录后只需访问您网站上的任何页面,然后单击“自定义”链接。
* In the Customizer panel, click on ‘Widgets’ and you should see a widget area registered for your page.
*在“定制程序”面板中,单击“窗口小部件”,您应该会看到为页面注册的窗口小部件区域。
* Just use the widgets you need to build your page content.
*只需使用构建页面内容所需的小部件即可。 p>
This plugin provides you with 3 additional widgets to help you build your page with interesting content and layout: Atom Builder Page, Atom Builder Post, and Atom Builder Posts widgets.
此插件为您提供了3个其他小部件,以帮助您构建具有有趣内容和布局的页面:Atom Builder页面,Atom Builder Post和Atom Builder Posts小部件。
These basic widgets will probably get a bit more complex and have more options in the future, and a few more custom widgets will be added later, but that’s a start.
这些基本的小部件将来可能会变得更加复杂并有更多选择,并且稍后还会添加一些自定义小部件,但这只是一个开始。 p>
Adding theme support for the Atom Builder
为Atom Builder添加主题支持 strong> p>By default, the Atom Builder replaces your page content using ‘the_content’ filter.
默认情况下,Atom Builder使用“ the_content”过滤器替换页面内容。
That means any markup you have before, such as the title for example, will be kept.
这意味着您之前拥有的任何标记(例如标题)都将保留。
Only your content as it appears in the editor in the admin area is replaced.
仅会替换您在管理区域的编辑器中显示的内容。 p>
If you want to replace the whole content for your page, you’ll have to tweak your theme’s code a little bit.
如果要替换页面的全部内容,则必须稍微调整主题代码。 p>