WidgetCoreWidgetCore Documentation

Price Table widget

The complete guide to the WidgetCore Price Table widget — plan name, featured plan and badge text, currency symbol, amount and period, the features list, the button and every style control.

The Price Table widget builds a complete plan card: the plan name, a price with a currency symbol and a period, a feature list with included/excluded marks and a call-to-action button. Great for course plans, subscriptions or service packages. The output is pure CSS with no JavaScript.

ItemValue
Widget namewgcr-pricetable
Panel titlePrice Table
CategoryWidgetCore Widgets (wgcr)
Style / scriptwgcr-pricetable / —
Root class.wgcr-pricetable

The “Header” section

ControlIDTypeDefaultNotes
Plan nameheadingText“Pro plan”The card heading
Title tagheading_tagSelectH3H2 to H6 or DIV
Featured planfeaturedSwitcherOffAdds the wgcr-pricetable-featured class and enables the badge
Badge textbadge_textText“Special offer”Printed only when “Featured plan” is on and the text is not empty

The “Price” section

ControlIDTypeDefaultNotes
Currency symbol or unitcurrencyText“USD”Printed next to the amount
AmountpriceText49The price number itself
PeriodperiodText“monthly”Printed after the amount with a / prefix

The “Features” section

The Features list (features) is a repeater with two fields:

FieldIDTypeDefaultNotes
Feature textfeature_textText“Plan feature”Rows with an empty text are dropped
Included in this planincludedSwitcherOnOff → the row gets the wgcr-pt-no class and a cross icon

Three sample rows are filled in from the start: two included features and one excluded feature.

The “Button” section

ControlIDTypeDefaultNotes
Button textbutton_textText“Enroll in the course”Empty means no button
Button linkbutton_linkURL#Invalid URLs are ignored; new tab and nofollow come from the URL control's own options

HTML output

html
<div class="wgcr-pricetable wgcr-pricetable-featured">
  <span class="wgcr-pt-badge">Special offer</span>
  <h3 class="wgcr-pt-name">Pro plan</h3>
  <div class="wgcr-pt-price">
    <span class="wgcr-pt-cur">USD</span>
    <span class="wgcr-pt-amount">49</span>
    <span class="wgcr-pt-period">/ monthly</span>
  </div>
  <ul class="wgcr-pt-features">
    <li class="wgcr-pt-feat"><span class="wgcr-pt-ic">…check svg…</span><span>Access to every session</span></li>
    <li class="wgcr-pt-feat wgcr-pt-no"><span class="wgcr-pt-ic">…cross svg…</span><span>Certificate</span></li>
  </ul>
  <a class="wgcr-pt-btn" href="#">Enroll in the course</a>
</div>
ClassPurpose
.wgcr-pricetable-featuredThe featured plan state (visual emphasis of the card)
.wgcr-pt-badgeThe badge on top of the card
.wgcr-pt-name / .wgcr-pt-price / .wgcr-pt-cur / .wgcr-pt-amount / .wgcr-pt-periodPlan name and the price parts
.wgcr-pt-features / .wgcr-pt-feat / .wgcr-pt-noThe feature list and a not-included row
.wgcr-pt-icThe check or cross icon (inline SVG)
.wgcr-pt-btnThe call-to-action button

If the plan name, the amount, every feature and the button text are all empty, the widget prints nothing at all.

Style sections

  • Card: a ready-made box group (background, border, shadow, padding, radius) plus “Accent color” (button, badge and the featured outline).
  • Header and price: “Plan name color”, “Amount color”, “Currency and period color”, “Badge background”, “Badge text color” and the name/amount typographies.
  • Features list: “Feature text color”, “Included icon color”, “Not-included icon and text color” and “Gap between features”.
  • Button: “Button background” and “Button text color” in the Normal tab, “Button background on hover” and “Button text color on hover” in the Hover tab, the button typography, “Button padding” and “Button corner radius”. By default hover slightly brightens the normal color; setting “Button background on hover” turns that brightness effect off and applies your exact color.

Custom style example

css
/* Make the featured plan a little bigger */
.wgcr-pricetable-featured { transform: scale(1.03); box-shadow: 0 18px 40px rgba(15, 23, 42, .12); }