Skip to content

Quick Start Guide

This guide walks you through creating a simple “Feature Card” block from start to finish.

  1. In your WordPress admin, go to WPBits Block Studio

  2. Click Add New Block

  3. Fill in the block details:

    • Namespace: myplugin (your plugin/theme prefix)
    • Block Name: feature-card
    • Block Title: Feature Card
    • Description: A card component for displaying features
  4. Click Create Block

Attributes define the data your block stores. For a feature card:

  1. Click + Add Attribute
  2. Set Name: title
  3. Set Control: text
  1. Click + Add Attribute
  2. Set Name: description
  3. Set Control: textarea
  1. Click + Add Attribute
  2. Set Name: icon
  3. Set Control: image
  1. Click the Block Supports tab
  2. Enable options like:
    • align (wide align)
    • color (text and background)
  1. Click the Location Rules tab
  2. Set where your block should appear

WPBits Block Studio generates a default template file. You can customize it:

<div class="feature-card">
{% if attributes.icon %}
<img src="{{ attributes.icon }}" alt="">
{% endif %}
<h3>{{ attributes.title }}</h3>
<p>{{ attributes.description }}</p>
</div>
  1. Open any page/post in the WordPress editor
  2. Click the + block inserter
  3. Search for “Feature Card”
  4. Click to add the block
  5. Edit the title, description, and icon

WPBits Block Studio provides 20 control types:

CategoryControls
Texttext, textarea, rich-text
Numbernumber, range
Selectiontoggle, checkbox, select, multi-select, combobox, radio
Mediacolor, image
Date/Timedate, datetime, time
Advancedlink, unit
Prorepeater, post-selector