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.
[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"]
| Attribute | Default | What it does |
|---|---|---|
id | Current product | The product ID. |
layout | tabs | tabs or accordion. |
tabs | All | Only these tab keys, comma-separated, in this order. |
exclude | None | Tab keys to leave out, comma-separated. |
open | first | Accordion only: first opens the first item, none starts with all closed. |
heading | None | A 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
- The same tabs as the product page: your Product Tabs order and titles, per-product changes, Pro tabs and rules (rules see the product shown, not the page it's on).
- Tabs with no content are left out. The output is empty when there are no tabs.
- On the product's own page, and anywhere the comment form has already been printed, the Reviews tab is left out so the review form isn't printed twice.
- Only products the visitor may see: unpublished products (unless the visitor may read them) and password-protected products show nothing.
- With the Siteryn tab style on, the shortcode tabs use it too. Pro's small stylesheet (and, for the tabs layout, a small script) loads only where the output is used.
- Nothing shows while the Pro license isn't active.
Siteryn Product Tabs widget
Appearance → Widgets → Siteryn Product Tabs: "A product's tabs, with your Product Tab Manager settings and rules applied."
The widget title.
Leave empty in a product page sidebar.
Like tabs.
Like exclude.
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.