UltraKit · Widget #110
Code Snippet Block
8 Languages × 5 Themes × Multiple Tabs × Line Numbers × Highlighted Lines × Copy Button × Window Chrome × Max-height Scroll
5 Theme5 Toggles
Section 01
Theme
5 options for theme — all shown live below.
1
Night (dark blue)theme = night
js
// Fetch products and render them
async function loadProducts(limit = 6) {
const res = await fetch(`/wp-json/wc/v3/products?per_page=${limit}`);
const items = await res.json();
return items.map(p => ({ id: p.id, name: p.name, price: Number(p.price) }));
}
loadProducts().then(list => console.log('Loaded', list.length, 'items'));
php
<?php
// Add a custom widget category
add_action( 'elementor/elements/categories_registered', function ( $manager ) {
$manager->add_category( 'my-category', [
'title' => __( 'My Widgets', 'textdomain' ),
'icon' => 'fa fa-plug',
] );
} );
css
.card {
display: grid;
gap: 16px;
padding: 24px;
border-radius: 20px;
background: linear-gradient(135deg, #6c5ce7, #a29bfe);
box-shadow: 0 20px 50px rgba(108, 92, 231, .35);
}
.card:hover { transform: translateY(-4px); }
2
Draculatheme = dracula
js
// Fetch products and render them
async function loadProducts(limit = 6) {
const res = await fetch(`/wp-json/wc/v3/products?per_page=${limit}`);
const items = await res.json();
return items.map(p => ({ id: p.id, name: p.name, price: Number(p.price) }));
}
loadProducts().then(list => console.log('Loaded', list.length, 'items'));
php
<?php
// Add a custom widget category
add_action( 'elementor/elements/categories_registered', function ( $manager ) {
$manager->add_category( 'my-category', [
'title' => __( 'My Widgets', 'textdomain' ),
'icon' => 'fa fa-plug',
] );
} );
css
.card {
display: grid;
gap: 16px;
padding: 24px;
border-radius: 20px;
background: linear-gradient(135deg, #6c5ce7, #a29bfe);
box-shadow: 0 20px 50px rgba(108, 92, 231, .35);
}
.card:hover { transform: translateY(-4px); }
3
Lighttheme = light
js
// Fetch products and render them
async function loadProducts(limit = 6) {
const res = await fetch(`/wp-json/wc/v3/products?per_page=${limit}`);
const items = await res.json();
return items.map(p => ({ id: p.id, name: p.name, price: Number(p.price) }));
}
loadProducts().then(list => console.log('Loaded', list.length, 'items'));
php
<?php
// Add a custom widget category
add_action( 'elementor/elements/categories_registered', function ( $manager ) {
$manager->add_category( 'my-category', [
'title' => __( 'My Widgets', 'textdomain' ),
'icon' => 'fa fa-plug',
] );
} );
css
.card {
display: grid;
gap: 16px;
padding: 24px;
border-radius: 20px;
background: linear-gradient(135deg, #6c5ce7, #a29bfe);
box-shadow: 0 20px 50px rgba(108, 92, 231, .35);
}
.card:hover { transform: translateY(-4px); }
4
Aurora gradienttheme = aurora
js
// Fetch products and render them
async function loadProducts(limit = 6) {
const res = await fetch(`/wp-json/wc/v3/products?per_page=${limit}`);
const items = await res.json();
return items.map(p => ({ id: p.id, name: p.name, price: Number(p.price) }));
}
loadProducts().then(list => console.log('Loaded', list.length, 'items'));
php
<?php
// Add a custom widget category
add_action( 'elementor/elements/categories_registered', function ( $manager ) {
$manager->add_category( 'my-category', [
'title' => __( 'My Widgets', 'textdomain' ),
'icon' => 'fa fa-plug',
] );
} );
css
.card {
display: grid;
gap: 16px;
padding: 24px;
border-radius: 20px;
background: linear-gradient(135deg, #6c5ce7, #a29bfe);
box-shadow: 0 20px 50px rgba(108, 92, 231, .35);
}
.card:hover { transform: translateY(-4px); }
5
Terminal greentheme = mono
js
// Fetch products and render them
async function loadProducts(limit = 6) {
const res = await fetch(`/wp-json/wc/v3/products?per_page=${limit}`);
const items = await res.json();
return items.map(p => ({ id: p.id, name: p.name, price: Number(p.price) }));
}
loadProducts().then(list => console.log('Loaded', list.length, 'items'));
php
<?php
// Add a custom widget category
add_action( 'elementor/elements/categories_registered', function ( $manager ) {
$manager->add_category( 'my-category', [
'title' => __( 'My Widgets', 'textdomain' ),
'icon' => 'fa fa-plug',
] );
} );
css
.card {
display: grid;
gap: 16px;
padding: 24px;
border-radius: 20px;
background: linear-gradient(135deg, #6c5ce7, #a29bfe);
box-shadow: 0 20px 50px rgba(108, 92, 231, .35);
}
.card:hover { transform: translateY(-4px); }
Section 02
Show & Hide Options
Switch parts of the widget on or off.
1
Line Numbers — Offline_numbers = off
js
// Fetch products and render them
async function loadProducts(limit = 6) {
const res = await fetch(`/wp-json/wc/v3/products?per_page=${limit}`);
const items = await res.json();
return items.map(p => ({ id: p.id, name: p.name, price: Number(p.price) }));
}
loadProducts().then(list => console.log('Loaded', list.length, 'items'));
php
<?php
// Add a custom widget category
add_action( 'elementor/elements/categories_registered', function ( $manager ) {
$manager->add_category( 'my-category', [
'title' => __( 'My Widgets', 'textdomain' ),
'icon' => 'fa fa-plug',
] );
} );
css
.card {
display: grid;
gap: 16px;
padding: 24px;
border-radius: 20px;
background: linear-gradient(135deg, #6c5ce7, #a29bfe);
box-shadow: 0 20px 50px rgba(108, 92, 231, .35);
}
.card:hover { transform: translateY(-4px); }
2
Copy Button — Offcopy = off
js
// Fetch products and render them
async function loadProducts(limit = 6) {
const res = await fetch(`/wp-json/wc/v3/products?per_page=${limit}`);
const items = await res.json();
return items.map(p => ({ id: p.id, name: p.name, price: Number(p.price) }));
}
loadProducts().then(list => console.log('Loaded', list.length, 'items'));
php
<?php
// Add a custom widget category
add_action( 'elementor/elements/categories_registered', function ( $manager ) {
$manager->add_category( 'my-category', [
'title' => __( 'My Widgets', 'textdomain' ),
'icon' => 'fa fa-plug',
] );
} );
css
.card {
display: grid;
gap: 16px;
padding: 24px;
border-radius: 20px;
background: linear-gradient(135deg, #6c5ce7, #a29bfe);
box-shadow: 0 20px 50px rgba(108, 92, 231, .35);
}
.card:hover { transform: translateY(-4px); }
3
Window Dots (Mac style) — Offchrome = off
js
// Fetch products and render them
async function loadProducts(limit = 6) {
const res = await fetch(`/wp-json/wc/v3/products?per_page=${limit}`);
const items = await res.json();
return items.map(p => ({ id: p.id, name: p.name, price: Number(p.price) }));
}
loadProducts().then(list => console.log('Loaded', list.length, 'items'));
php
<?php
// Add a custom widget category
add_action( 'elementor/elements/categories_registered', function ( $manager ) {
$manager->add_category( 'my-category', [
'title' => __( 'My Widgets', 'textdomain' ),
'icon' => 'fa fa-plug',
] );
} );
css
.card {
display: grid;
gap: 16px;
padding: 24px;
border-radius: 20px;
background: linear-gradient(135deg, #6c5ce7, #a29bfe);
box-shadow: 0 20px 50px rgba(108, 92, 231, .35);
}
.card:hover { transform: translateY(-4px); }
4
Wrap Long Lines — Onwrap = yes
js
// Fetch products and render them
async function loadProducts(limit = 6) {
const res = await fetch(`/wp-json/wc/v3/products?per_page=${limit}`);
const items = await res.json();
return items.map(p => ({ id: p.id, name: p.name, price: Number(p.price) }));
}
loadProducts().then(list => console.log('Loaded', list.length, 'items'));
php
<?php
// Add a custom widget category
add_action( 'elementor/elements/categories_registered', function ( $manager ) {
$manager->add_category( 'my-category', [
'title' => __( 'My Widgets', 'textdomain' ),
'icon' => 'fa fa-plug',
] );
} );
css
.card {
display: grid;
gap: 16px;
padding: 24px;
border-radius: 20px;
background: linear-gradient(135deg, #6c5ce7, #a29bfe);
box-shadow: 0 20px 50px rgba(108, 92, 231, .35);
}
.card:hover { transform: translateY(-4px); }
5
Hide On Desktop — Onhide_desktop = hidden-desktop
js
// Fetch products and render them
async function loadProducts(limit = 6) {
const res = await fetch(`/wp-json/wc/v3/products?per_page=${limit}`);
const items = await res.json();
return items.map(p => ({ id: p.id, name: p.name, price: Number(p.price) }));
}
loadProducts().then(list => console.log('Loaded', list.length, 'items'));
php
<?php
// Add a custom widget category
add_action( 'elementor/elements/categories_registered', function ( $manager ) {
$manager->add_category( 'my-category', [
'title' => __( 'My Widgets', 'textdomain' ),
'icon' => 'fa fa-plug',
] );
} );
css
.card {
display: grid;
gap: 16px;
padding: 24px;
border-radius: 20px;
background: linear-gradient(135deg, #6c5ce7, #a29bfe);
box-shadow: 0 20px 50px rgba(108, 92, 231, .35);
}
.card:hover { transform: translateY(-4px); }