Shortcodes & widgets

Show a product's tabs, or a single tab's content, on any page, in a sidebar, in Elementor or from your theme, with your settings and rules applied.

Pro

[siteryn_product_tabs]

Shows a product's tabs as keyboard-accessible tabs or an accordion. On a product page it uses the current product; anywhere else, give it an id.

[siteryn_product_tabs id="123"]
[siteryn_product_tabs id="123" layout="accordion" open="none"]
[siteryn_product_tabs id="123" tabs="description,ptm_pro_specifications" heading="Product details"]
AttributeDefaultWhat it does
idCurrent productThe product ID.
layouttabstabs or accordion.
tabsAllOnly these tab keys, comma-separated, in this order.
excludeNoneTab keys to leave out, comma-separated.
openfirstAccordion only: first opens the first item, none starts with all closed.
headingNoneA heading above the tabs.
  • [siteryn_product_tabs id="…" layout="accordion" exclude="reviews" heading="Belted Shirt Dress: details"] on a regular page
  • The heading, then Description (open, the first item) and Specifications (opened by clicking) with the specifications table; Size & Details, Fit Notes, Care Guide and Shipping & Returns closed
  • Rendered from the shortcode's own output placed into the page for this screenshot
  • The same shortcode with the default tabs layout: a row of six tabs with Specifications selected and its table below
  • Rendered from the shortcode's own output placed into the page for this screenshot

[siteryn_product_tab]

Shows one tab's content only, without the tab title, for example inside a page builder column.

[siteryn_product_tab id="123" tab="ptm_pro_care_guide"]

tab is required. Tab keys: description, additional_information, reviews, siteryn_custom_tab and each Pro tab's key, shown on its Tab Builder card.

What they show

Siteryn Product Tabs widget

Appearance → Widgets → Siteryn Product Tabs: "A product's tabs, with your Product Tab Manager settings and rules applied."

Title
Default Empty

The widget title.

Product ID (empty = current product)
Default Empty

Leave empty in a product page sidebar.

Only these tabs (keys, comma-separated)
Default Empty

Like tabs.

Hide these tabs (keys, comma-separated)
Default Empty

Like exclude.

Layout
Default Accordion

Accordion or Tabs.

Elementor widget

When Elementor is active, search for Siteryn Product Tabs in the WooCommerce or General widget category. Controls: Product ID ("Leave empty to use the current product."), Layout (Tabs or Accordion), Only these tabs ("Tab keys, comma-separated. Empty = all.") and Hide these tabs.

In your theme

// Print the current product's tabs as an accordion.
siteryn_ptm_pro_product_tabs( array( 'layout' => 'accordion' ) );

// Get the HTML instead of printing it.
$html = siteryn_ptm_pro_product_tabs( array( 'id' => 123, 'tabs' => 'description,reviews' ), false );
do_action( 'siteryn_ptm_pro_render_tabs', array( 'id' => 123, 'layout' => 'tabs' ) );

Both take the same arguments as the shortcode. The markup comes from pro-product-tabs.php, which you can override in your theme; see Templates.