Plugin / Atom Builder

vincentdubroeucq

Description

Description

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 :
* 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.

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.
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.

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 theme support for the Atom builder in your child theme’s functions.php file by simply adding this snippet.

    `
    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’ );
      }
      `
  • Duplicate the page.php template from your theme in your child theme’s folder.

  • Replace the get_template_part() function call with atom_builder_get_template_part(), with the same parameters. (Basically all you need to do is prefix it.)
  • Now everything should work fine. Your whole template is replaced with widgets now, not just your content.

Ratings

0
0 reviews

Rating breakdown

Details Information

Version

1.0.1

First Released

08 Aug, 2017

Total Downloads

483

Wordpress Version

4.7 or higher

Tested up to:

5.0.7

Require PHP Version:

-

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.