Linux 软件免费装
Banner图

Atom Builder

开发者 vincentdubroeucq
更新时间 2019年12月19日 23:09
PHP版本: 4.7 及以上
WordPress版本: 5.3.2
版权: GPLv2 or later
版权网址: 版权信息

标签

widget sidebar content widgets page builder layout widget area custom widgets widgets area

下载

1.0.0 1.0.1 1.0.2

详情介绍:

This plugin simply allows you to build your page content with widgets instead of using the default page layout for your theme. Using the Atom Builder 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 : Adding theme support for the Atom Builder By default, the Atom Builder replaces your page content using 'the_content' filter. 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. If you want to replace the whole content for your page, you'll have to tweak your theme's code a little bit. add_action( 'after_setup_theme', 'mythemeprefix_add_atom_builder_support' ); /** * Add theme support for the Atom Builder * This deactivate the basic filter on the_content. * Just replace your get_template_part() call in page.php with atom_builder_get_template_part() to replace your whole page content template with registered widgets. **/ function mythemeprefix_add_atom_builder_support(){ add_theme_support( 'atom-builder' ); }

安装:

  1. Upload the plugin files to the /wp-content/plugins/atom-builder directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. That's it ! Edit your pages in the customizer and add widgets to your page to see it in action !

屏幕截图:

  • Once the plugin is activated, you'll get three new widgets. Registered widget areas for your pages won't appear.
  • Visit a basic page on the front end of your site, and open up the customizer to see a new widget area registered for your page.
  • Use the provided widgets or any other widget to build your page layout and content !

升级注意事项:

1.0.0
  • Tested with WordPress 5.0.1
1.0 Initial release

常见问题:

Does the Atom Builder supports custom post types ?

Not yet. By default, it only works with basic pages. But there's a hook for that ! Developper documentation is in writing, don't worry. Have a look in the init-functions.php file in the inc/ folder to see how it works.

Do you plan on releasing other widgets ?

Of course ! The three widgets included are just a start.

更新日志:

1.0.0 1.0