Zero jQuery
Il tema de-registra jQuery sul frontend. Vanilla JS puro per logiche UI minimali. Nessun blocco al rendering.
v1.0.0 — WP 5.8–6.9.1 — PHP 7.4–8.4 — Gratuito
Un tema WordPress leggero, veloce e completamente open-source. Costruito senza jQuery, con font self-hosted, JSON-LD Schema.org nativo e piena compatibilità con Elementor e Gutenberg.
Tushi nasce come risposta alle esigenze di chi sviluppa siti WordPress ad alte prestazioni: un tema framework essenziale, privo di dipendenze superflue, che non interferisce con le scelte dell’utente ma fornisce una base tecnica solida e conforme agli standard ufficiali di WordPress.org.
Il codice è scritto in PHP vanilla, con un CSS modulare sotto i 50 KB e un solo script
JavaScript (navigation.js) per la gestione del menu mobile. Nessun jQuery,
nessuna richiesta a server esterni, nessun font caricato da Google Fonts — tutto self-hosted
per massima performance e conformità GDPR.
La demo di riferimento Tushi Health mostra il tema applicato al settore
medicale/clinico, con markup Schema.org di tipo MedicalOrganization e
WebSite iniettato automaticamente nell’<head> tramite JSON-LD.
Il tema de-registra jQuery sul frontend. Vanilla JS puro per logiche UI minimali. Nessun blocco al rendering.
Plus Jakarta Sans (woff2, OFL 1.1) è bundled nella cartella /fonts. Preload
HTTP/2 attivo per i subset latin critici. Zero richieste Google.
Iniezione automatica di WebSite, SearchAction e
Article in ogni pagina. MedicalOrganization per la demo Health.
Supporto align-wide, responsive-embeds, editor-styles.
Blocchi standard senza CSS ridondante deregistrato sul frontend.
Registrazione completa di header, footer, archive e
single tramite register_all_core_location().
Uso sistematico di esc_html__(), esc_url(),
wp_json_encode() e wp_kses_post() in tutto il codice PHP.
Skip link, heading gerarchici, ARIA roles, contrasto WCAG AA su tutti i colori, navigazione tastiera su menu e widget sidebar.
Text domain tushi con load_theme_textdomain(). Tutte le stringhe
PHP wrapped in esc_html_e() / esc_html__().
| Voce | Valore / Stato |
|---|---|
| Versione WordPress minima | 5.8 |
| Versione WordPress testata | 6.9.1 |
| PHP minimo | 7.4 — testato fino a 8.3 / 8.4 |
| Licenza | GNU General Public License v2 o superiore |
| Font incluso | Plus Jakarta Sans — SIL Open Font License 1.1 |
| Peso core (PHP + CSS + JS) | < 50 KB (senza font) |
| jQuery sul frontend | ✓ Rimosso |
| Richieste a server esterni | ✓ Nessuna |
| Custom Post Types inclusi | ✓ Nessuno |
| Elementor Theme Builder | ✓ Supportato |
| Blocchi Gutenberg | ✓ Supportati |
| WooCommerce | Compatibile (dequeue wc-blocks-style incluso) |
Il tema segue la gerarchia di template WordPress standard. La logica di performance e SEO è
separata in inc/performance.php per mantenere functions.php leggero.
Di seguito tre estratti chiave che mostrano il pattern tecnico del tema.
inc/performance.php
Inietta <link rel="preload"> per i subset latin critici prima di qualsiasi altro
asset,
sfruttando la priorità HTTP/2 del browser per azzerare il FOIT (Flash of Invisible Text).
function tushi_preload_resources() {
$fonts_dir = get_template_directory_uri() . '/fonts';
$critical_fonts = array(
$fonts_dir . '/plus-jakarta-sans-v4.woff2', // latin 400
$fonts_dir . '/plus-jakarta-sans-v12.woff2', // latin 700
);
foreach ( $critical_fonts as $font_url ) {
echo '<link rel="preload" href="'
. esc_url( $font_url )
. '" as="font" type="font/woff2" crossorigin="anonymous">'
. "\n";
}
}
add_action( 'wp_head', 'tushi_preload_resources', 1 );
inc/performance.php
Schema WebSite + SearchAction in homepage per i Sitelinks Search Box di
Google.
Schema Article automatico su tutti i singoli post.
if ( is_front_page() ) {
$schema = array(
'@context' => 'https://schema.org',
'@type' => 'WebSite',
'name' => get_bloginfo( 'name' ),
'url' => home_url( '/' ),
'potentialAction' => array(
'@type' => 'SearchAction',
'target' => home_url( '/?s={search_term_string}' ),
'query-input' => 'required name=search_term_string',
),
);
echo '<script type="application/ld+json">'
. wp_json_encode( $schema )
. '</script>';
}
functions.php
Rimozione sistematica di emoji, wp-embed, RSD link, versione WP e CSS di Gutenberg sul frontend.
Riduce il peso dell’<head> e i round-trip HTTP.
function tushi_cleanup() {
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
wp_deregister_script( 'jquery' );
wp_deregister_script( 'wp-embed' );
remove_action( 'wp_head', 'wp_generator' );
remove_action( 'wp_head', 'wlwmanifest_link' );
remove_action( 'wp_head', 'rsd_link' );
}
add_action( 'init', 'tushi_cleanup' );
function tushi_remove_block_css() {
wp_dequeue_style( 'wp-block-library' );
wp_dequeue_style( 'global-styles' );
}
add_action( 'wp_enqueue_scripts', 'tushi_remove_block_css', 100 );
Il tema supera tutti i requisiti obbligatori delle WP Theme Review Guidelines prima dell’invio alla directory ufficiale.
style.css con header completo: Theme Name, License, Text Domain, Version,
Author URI
readme.txt con sezione Third Party Resources e licenza OFL 1.1 del
font dichiarata
screenshot.png 1200×900 px presente nella root del tema
esc_html__(), esc_url(),
wp_kses_post(), wp_json_encode()
register_sidebar, widget,
etc.)
tushi usato in tutte le stringhe traducibili con
load_theme_textdomain()
font-display: swap su tutti i @font-face per prevenire
FOIT
header.php e stilato in
style.css
add_theme_support('title-tag'), post-thumbnails,
html5, align-wide
tushi.zip, oppure cercalo
direttamente per nome nella directoryScarica Tushi gratuitamente dalla directory ufficiale di WordPress.org e inizia a costruire siti ultra-veloci.
Scarica Tushi — Gratis