Best Element Creator – 8 Steps to make Bricks Elements

Application for Bricks Builder

 

A unique and easy-to-use framework, Piotnet Bricks Element Creator (Widget Creator) helps you produce custom Bricks elements in minutes with just basic coding knowledge, instead of setting up third platforms or customizing your function file in Themes.

  1. Easy Element Creation: Create custom elements using our unique element creator framework, giving you the freedom to make anything.
  2. Flexible application and boost your workflow: Just need to create a one-time and easy import/export between your websites.
  3. Professional Workflow: Use the graphic interface to add attributes and make professionally customized elements precisely for your website’s needs.
  4. Enhancing Bricks: Eliminate the need for multiple plugins and build professional elements that elevate your website in minutes.

A demonstration for Bricks Element Creator - 3D Flip Card

3D Flip Card

An Element made by Piotnet Bricks Element Creator

3D Flip Card

An Element made by Piotnet Bricks Element Creator

Button Text
Download Demo

Step by Step to configure Element Creator

Step 1: Element Creator Panel

Firstly, make sure that you already updated the Piotnet Bricks version 1.0.6

Go to your Dashboard > Piotnet Bricks Panel > All Elements Creator > All Elements Tab.

how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 1
Piotnet Bricks Panel

All your self-created elements and demos will be stored here.

Click on “Create Blank Element” to create your first element.

how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 2how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 3

On Bricks Editor Panel, search the Element Creator, then drag & drop to the editor area.

how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 4

Edit this element > Content Tab.

There are 6 remarkable categories to configure: Settings, Controls, Render, CSS, JS, and Enqueue CSS, JS.

how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 5

For a visual example, we will demonstrate how to create an element, called 3D Flip Card

Step 2: General Settings

how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 6
  • Title*: Displayed editor name for your element (mandatory field)
  • Name*: Similar to a slug name, this name has to be unique, with Latin characters and no space, no number. Separated by dashes, like Slug’s format. E.g. your_element (mandatory field)
  • Icon: Thumbnail Icon of your element.
  • Categories: Separated by commas

Step 3: Controls

A place to configure your main elements. By default, there are two available demonstration controls,

Click on “Add New Control” to show the third control.

how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 7

*Controls must start with “Group” Type.

  • Tab: To locate a specific Tab, there are two Tab options: Content, and Style.
  • Type: There are various types such as Group, Text, Text Area, Number, etc.
how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 8
how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 9

Back to the illustration setup of the button Controls example:

Detailed controls

how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 11how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 12
how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 14how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 15
how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 16how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 17

Step 4: Render

One of the most important parts of building your element is Render. You can use PHP or Twig. Twig Document

Control Values:

  • PHP: $control_name
  • Twig: {{control_name}}
how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 18
<?php
$background_image_url = !empty($background_image) ? $background_image['full'] : '';
?>
<div class="box-container">
	<div class="box-item">
    <div class="flip-box">
      <div class="flip-box-front text-center" style="background-image: url('<?php echo $background_image_url; ?>');">
        <div class="inner color-white">
          <h3 class="flip-box-header"><?php echo $title; ?></h3>
          <p><?php echo $desc; ?></p>
          <img src="https://s25.postimg.cc/65hsttv9b/cta-arrow.png" alt="" class="flip-box-img">
        </div>
      </div>
      <div class="flip-box-back text-center" style="background-image: url('<?php echo $background_image_url; ?>');">
        <div class="inner color-white">
          <h3 class="flip-box-header"><?php echo $title; ?></h3>
          <p><?php echo $desc; ?></p>
          <?php
          $this->set_link_attributes( 'a', $button_link );
          ?>
          <a <?php echo $this->render_attributes( 'a' ); ?> class="flip-box-button"><?php echo $button_text; ?></a>
        </div>
      </div>
    </div>
	</div>
</div>

Step 5: CSS

A place to configure the custom CSS

Step 6: JS

You can customize your JavaScript here.

Step 7: Enqueue CSS, JS

  • For CSS: Enter the name of the stylesheet separated by a comma. You need to register a CSS stylesheet before using it. E.g: prefix-test-script, prefix-test-element
  • For JS: Enter the name of the script separated by a comma. You need to register a script before using it. E.g: prefix-test-script, prefix-test-element
how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 21

Step 8: Publish, Export or Import your Bricks Element

how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 22

After completing your first element, you can use this one in anywhere Bricks Page Builder environment.

Results in Bricks Editor:

 
how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 23

Export or Import to anywhere of Bricks Builder

You can easily export an element to a JSON file:

Dashboard > Piotnet Bricks Panel > All Elements Creator> Choose one and click on “Export”

After that, a JSON file will be downloaded.

how to use piotnet bricks element creator (widget creator) 3D Flip Box illustration 24

To reuse that element on other Websites:

Dashboard > Piotnet Bricks Panel > Add Elements Creator > Import Element > Choose file (JSON file) > Import Now.

 

There are a few available Bricks Elements made by Piotnet Community:

  • Flex Slider
  • Marquee Logo Wall
  • Button Animation
  • Glowing Button
  • Flip Button
The Element Creator requires a PHP version 7.2.5 and above.
Recommendation:

To diversify query or apply filters, you can refer to Piotnet Grid. It possibly fulfills your advanced Grid Layout or combine Facets to filter Bricks Query Loop.