ItalyStrap
Contributors: overclokk
Donate link: https://italystrap.com
Tags: breadcrumbs, breadcrumb, seo, performance, schema.org, rich snippet, bootstrap, twitter bootstrap, css, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, post-formats, sticky-post, translation-ready, blog, design, journal, lifestream, tumblelog, bright, clean, colorful, geometric, modern, playful, simple, whimsical, vibrant
Requires at least: 5.8
Tested up to: 5.9
Stable tag: 4.0.0-beta.19
Requires PHP: 7.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
The Theme Framework for WordPress website.
Description
ItalyStrap is a classic WordPress theme framework. It now uses a modern @wordpress/scripts asset pipeline while keeping classic PHP templates, classic editor stylesheet loading, and the existing theme runtime structure.
This migration is intentionally not a full block-theme or Full Site Editing conversion.
Breaking change: older 4.x installs should be treated as migrations, not drop-in updates. Back up the site before replacing the theme.

Features include:
- WPO Friendly
- SEO Friendly
Installation
Install the Advanced Control Manager plugin to add more feature.
For Developers
Clone the git repo of the theme:
git clone git://github.com/ItalyStrap/italystrap.git
cd italystrap
Install JavaScript and Composer dependencies:
npm ci
composer install --no-dev -o
or download the zip file, unzip it, place it in your folder themes /wp-content/themes/ directory and activate it via Admin > Appearance > Themes
Then download the child cheme and use it for your customizations.
Asset build workflow
The canonical frontend build uses @wordpress/scripts.
npm run start runs the development watcher and writes theme assets into build/.
npm run build creates the production bundle in build/.
npm run lint checks the theme TypeScript and Sass sources with the modern wp-scripts ESLint and Stylelint tooling.
npm run format applies the modern formatter to the theme asset CSS, Sass, JavaScript, and TypeScript sources using spaces instead of tabs.
- Runtime PHP asset loading now points to
build/ outputs first, then reads sibling *.asset.php metadata files when they exist.
- The expected runtime outputs are
build/js/index.js, build/css/index.css, build/css/editor-style.css, and build/customizer/*.js.
build/css/editor-style.css is still loaded in the classic editor through add_editor_style(), while block and global design tokens come from theme.json.
Do not revive Grunt, Gulp, Bower, or legacy compiled assets/css/* and assets/js/* files as the active build contract.
Styles and scripts of a child theme
The styles and the scripts are value objects of italystrap/asset. config/assets/styles.php and config/assets/scripts.php return lists of Style and Script, the file of the child theme replaces the one of the parent. ThemeFile finds a file in the child theme, then in the parent, with its URL and the dependencies and the version of its .asset.php:
<?php
declare(strict_types=1);
use ItalyStrap\Asset\Handle;
use ItalyStrap\Asset\Script;
use ItalyStrap\Asset\ScriptLoading;
use ItalyStrap\Asset\When;
use ItalyStrap\Assets\Infrastructure\ThemeFile;
$script = new ThemeFile('build/js/highlight.js');
return [
new Script(
handle: new Handle('my-child-highlight'),
source: $script->url(),
dependencies: $script->dependencies(),
version: $script->version(),
loading: new ScriptLoading(inFooter: true),
condition: new When(is_singular(...)),
),
];
The filters italystrap_config_enqueue_style and italystrap_config_enqueue_script receive the lists and return them, a value that is not a Style or a Script is skipped.
Release and package workflow
Releases now follow the @wordpress/scripts build path and do not use Grunt, Gulp, or Bower tasks.
- Update release metadata (
style.css version header, readme.txt stable tag, and changelog entries).
- Build production assets with
npm ci --legacy-peer-deps && npm run build.
- Refresh PHP runtime dependencies with
composer install --no-dev -o.
- Verify the release tree contains the current
build/ outputs that runtime loading expects, plus the production vendor/ tree.
- Create the release commit and tag (
git tag <version>), then publish the tag on GitHub.
- Publishing the GitHub release runs
.github/workflows/release-package.yml, which rebuilds assets, installs production Composer dependencies, and uploads a custom zip release asset.
- The uploaded release asset zip is the canonical package. GitHub’s auto-generated source archive remains uncustomized, and
.distignore now defines the development-only files and directories excluded from the distributable package.
Legacy branch-switching, credential prompts, and local zip creation from the Grunt/Gulp flow are intentionally removed from maintainer instructions.
Theme JSON ownership
theme.json is the only canonical source of truth for block settings and block styles in this classic theme.
- WordPress reads
theme.json directly to register layout, typography, and block-level presets for the editor and front end.
- The legacy PHP generator in
src/Asset/ThemeJson.php now mirrors that checked-in file instead of defining a second schema in code.
- The Composer
theme:json generation path has been removed so releases no longer depend on a generated intermediary file.
- Editor CSS still loads through
add_editor_style() from src/Asset/Application/EditorSubscriber.php; theme.json augments editor presets and block styles, while build/css/editor-style.css provides the classic-theme stylesheet layer.
- Front-end rendering keeps using the classic theme templates and stylesheets, with
theme.json supplying the global block styles that WordPress prints alongside those assets.
Testing and QA
Use the dedicated theme Docker stack for Codeception and related QA work.
- Start the stack with
make up.
- Run theme tooling through the provided make targets such as
make unit, make integration, make functional, make acceptance, make qa, and make cs.
- If you need direct container tooling, use the wrappers inside
.docker/ from the running stack instead of assuming host or DDEV execution.
- Do not document DDEV or host-only Codeception commands as the primary path, they are misleading for this repository.
Migration notes for maintainers
Older maintainer assumptions changed during the migration.
- Bootstrap CSS is no longer part of the active runtime contract.
- Theme-owned jQuery and Bootstrap JavaScript dependencies were removed from the active frontend and customizer runtime paths.
- Runtime asset loading now expects built files in
build/, not legacy checked-in compiled assets under assets/.
theme.json owns block and global tokens for this classic theme, while template wrapper settings that still depend on classic theme mods remain outside that file.
- Navigation and frontend behavior should now be extended with theme-owned markup, CSS, and vanilla JavaScript patterns, not Bootstrap data APIs.
- This repository still contains historical Bootstrap, jQuery, Grunt, Gulp, and Bower references in changelog text. Treat those as archival history, not current maintainer guidance.
How to migrate from older version of 4.0.0
Treat this as a migration to a new runtime contract.
- Rebuild assets with
npm ci && npm run build after pulling theme changes.
- Expect runtime styles and scripts to come from
build/ outputs.
- Move block-editor and global design token changes into
theme.json.
- Keep using child themes or classic template overrides for PHP template customization.
- Do not assume a full block-theme conversion, template-html takeover, or full FSE support.
- The theme requires PHP 8.2. The child themes return
Style and Script objects from config/assets/*.php and from the italystrap_config_enqueue_* filters, the arrays with Asset::HANDLE and ConfigBuilder::FILE_NAME of italystrap/asset 0.x are no longer read, see Styles and scripts of a child theme.
Remember! This is a full refactoring of the theme, consider it like a new theme, if you have the old version you have to do a migration to the new version.
Always Do a backup first
Frequently Asked Questions
Screenshots
Changelog
4.0.0-beta.8
Release Date: Set 27th, 2021
(Dev time 12 months)
This is the latest version with PHP 7.2 support
- Updated Composer dependencies
- Custom Logo API
- Fixed some style issue on menu
- Some coding styles refactoring
- Initial support for GitHub actions
- Removed some bad code in User Info API
- Remove unused stuff never used
- Start moving to FSE support
4.0.0-beta.7
Release Date: Oct 2nd, 2020
(Dev time 19 months)
This is a complete rebuild of the theme, it is a breaking changes, always do a backup first
- Bump PHP version, now minimum supported is 7.2
- Improvements for the testing suite
- New API for building the page structure (Experimental)
- New API for parsing css attributes in hooks (Experimental)
- New API for Components
- New API for handling assets
- Extract some modules to packagist
- Refactored theme bootstrap
- Removed all template files in root directory, now there’s only the index.php, you can add others in a child theme.
- Removed deprecation directory for now
- Removed WooCommerce template (will be available in a child theme)
- Removed display_breadcrumbs() function, now breadcrumbs are loaded on the hook ‘do_breadcrumbs’
- Removed the Tag_Cloud class
- Fix: coding standard moved to psr-2
- Fix: cleanup views files
- Fix: removed dependency for Advanced Custom Manager
- Some minor fix
4.0.0-beta.6
Release Date: Mar 6th, 2019
(Dev time 30 days)
This is a complete rebuild of the theme, it is a breaking changes, always do a backup first
- Now the theme can be activated without the ACM plugin active first for better user experience.
- New API for templating finder and viewer
- New API for Components (still in alpha)
- New filter ‘italystrap_default_theme_config’
- New filter ‘italystrap_default_theme_constants’
- Navbar improvements
- Better bootstrapping for the framework
- API functions for config files
- Moving for upgrading Bootstrap CSS to v.4
- Some minor fix
- Some refactoring of the structure
4.0.0-beta.5
Release Date: Feb 5th, 2019
(Dev time 2 years)
This is a complete rebuild of the theme, it is a breaking changes, always do a backup first
- Better support for loading the framework with child theme
- Improvements of the botstrapping of the framework
- New API for MCE button
- New API for View in beta
- New filter for title tag
italystrap_entry_title_tag
- Now breadcrumbs are echoed with hook
do_breadcrumbs
- Refactoring of some classes
- Fixed some issue
- Added theme support for breadcrumbs
- Added theme support for Gutenberg
- Support for custom 404 page
- Improved assets structure
- Added navbar option for logo on mobile
- Almost compatible with theme check
- Autodefinitions of the theme constants
- CSS for editor is now loaded with the init class
- Added style for gutenberg editor
- Example for Injector
- Example in full-width.php for changing thumbnail size
- Maybe use the EDD to update the theme
4.0.0-beta.4
Release Date: July 1st, 2017
(Dev time 3 month)
This is a complete rebuild of the theme, it is a breaking changes, always do a backup first
- New template files structure
- Improved classes file structure
- Improved classes autoload
- Better theme_supports autoload
- Added new image size
- Removed Github Updater dependency
- Removed old template parts
- Removed vendor dir from repo
- Fixed image in 404.php
- Updated plugin requirements
4.0.0-beta.1|2|3
Release Date: April 18th, 2017
(Dev time 2 year)
This is a complete rebuild of the theme, it is a breaking changes, always do a backup first
- Deprecated class
ItalyStrapBreadcrumbs(). The breadcrumbs functionality is moved to the plugin.
- Added AnonymizeIP for cookie law
- Fixed regex in italystrap_embed_wrap cleanup.php
- Fixed Warning: Illegal string offset
- Fixed do_action hook name in comments.php
- Added new class for sidebars and made dynamic the footer’s sidebars
- Deprecated breadcrumbs.php and sidebar.php
- Deprecated file sitemap-html.php
- Deprecated file globals.php
- Deprecated file init.php
- Deprecated function get_html_tag_attr()
- Now the index.php is only a simple loop, more info
- Added Theme customizer (with: logo image, custom image, 404 image, custom css, analytics ID)
- Added support to custom-header
- Added support to custom-background
- Improved performance with new constant for home url
HOME_URL, blog name GET_BLOGINFO_NAME, and blog description GET_BLOGINFO_DESCRIPTION, use it with esc_attr() and echo
- Added new hooks in template files
- Moved breadcrumbs functions to hook
- Added new Author info file
- Page template HTML sitemaps and Blog moved to child theme
- Added namespace PHP 5.3 to all files
- wp_bootstrap_navwalker is deprecated, use Bootstrap_Navwalker instead
- PSR-4 ready
- New layout API
- Better selection of nabar brand image or name
- Added Upgrade Class API
- New Router API
- New Customizer API
- New files template structure
3.0.5
Release Date: May 8th, 2015
(Dev time 2h)
- Move image.php in core directory
- Add some file for future develope
- Update TGM to 2.4.2
- Fix some error
3.0.4
Release Date: April 30th, 2015
(Dev time 3h)
- Delete custom style example
- Add custom jQuery in home for table, select box
- Fix register_sidebar error
3.0.3
Release Date: April 22th, 2015
(Dev time 5h)
- Edit hr HTML tag in loop
- Add new function to echo 404 image
- Fix XSS vulnerability in Custom Walker nav menu
- Update TGM class due to XSS vulnerability
3.0.2
Release Date: April 12th, 2015
(Dev time 1h)
- Fix some issue
- Change class in reply button and edit button (comments.php)
3.0.1
Release Date: April 12th, 2015
(Dev time 1h)
3.0.0
Release Date: April 8th, 2015
(Dev time 200h)
- Update to Bootstrap 3.3.4
- Update to jQuery 2.3.1
- Add Mobile Detect Library
- Fix missing ul in comment template
- Fix gruntfile syntax
- Add grunt task for update bower dependency
- Update node modules
- Add grunt tasks for update bower packages
- Improved functions in comment_reply.php
- Add span clearfix to pagination function
- Fix comments paragraph break
- Improved italystrap_open_graph_desc() and italystrap_ttr_wc() in schema.php
- Add italystrap_get_words_count()
- Add class for adding glyphicon in new menu item
- Add markup for Sitelinks Search Box in searchform.php
- @see link below for more informations
- @link https://developers.google.com/structured-data/slsb-overview
- Add width:100% to table in sass files
- Add Bootstrap class to table calendar with jQuery
- Add flush_rewrite_rules(); for CPT
- Add new CPT description
- Update file structure
- Gallery deactivated for more future improvements
- Fix some issue
- Add new admin panel for Theme options
2.1.0
Release Date: 31-01-2015
(Dev time 50h)
- Add dev time
- Add ITALYSTRAP_THEME constant for internal use
- Fix for deprecated function WordPress SEO by Yoast
- Add external loop files for DRY don’t repeat yourself (single, page, full-width, archive.php. search.php and blog.php)
- Fix error Schema.org markup for wordcount in archive page
- Add lang attribute for HTML tag lang
- Fix navbar display
- Add new class for BreadCrumbs in case the ItalyStrap plugin is not active
- Deprecated old Breadcrumbs function “create_breadcrumbs”
- Improved script for debug
- Add init.php for after_setup_theme and $content_width
- Add content for readme.txt
- Some improvements
2.0.0
Release Date:
(Dev time 100h)
- Add fully translations in Italian, English, French, German
- Fix php error in search.php (the_ID() outside the loop)
- Add author name in breadcrumbs author page
- Add get_option(‘date_format’) in meta.php
- Add description in meta.php
- Add carousel-indicators in index.php
- Fix margin in gallery img class
- Modify Favicon function for child theme or partent theme
- Fix issue category icon viewed even if the content is not in category (meta.php)
- Add custom.js.bak file in js/src directory
- Move home.js in js/src
- Add CSS stile for dropdown category in custom.js.bak
- Fix $content_width issue
- Fix echo current page in CPT for Facebook open graph
- Add is_preview() in single.php, page,php and footer.php (for footer only for analytics) (@link http://www.hongkiat.com/blog/wordpress-preview-mode/)
- Update Bootstrap to 3.3.1
- Improve load JS and CSS on hierarchy of page
- Some fix and improvement
- Change license from MIT to GPLv2
1.9.2
Release Date:
(Dev time 10h)
- Add new function for reveal hidden tinymce buttons (styleselect) in new file custom_shortcode.php
- Add button for insert quicktag in the editor
- Retrieve number $posts_per_page from wp backend configuration for blog.php template
- Add rel canonical if SEO Yoast and AIOSP are not installed (cleanup.php)
- Add rel next and prev for paginations (cleanup.php)
1.9.1
Release Date:
(Dev time 7h)
- Fix issue in index.php for no content in CPT Prodotti
- Add rel=“nofollow” and button class to comment_reply_link() filter
- Add CSS style img-rounded for all author image
1.9.0
Release Date:
(Dev time 15h)
- Add TGM-Plugin-Activation for require plugin
- Fix object error in breadcrumbs.php
- Add function for adding custom CSS class in get_avatar (Added in comments.php, author.php and author-meta.php)
- Add function for retrieve avatar url
- Improve if statement in author.php
1.8.7
Release Date:
(Dev time 15h)
- Add commented line in custom-post-type.php
- Fix display description for CPT in Archive page archive.php line 34, now display description for all custom post without type slug
- Fix ID’s name for author.php (chage in author-page)
- Add to search.php
- Improve breacrumb.php, now show custom_post_type name
- Improve Read more link in excerpt function (custom_excerpt.php)
- Fix domain name in single.php
1.8.6
Release Date:
(Dev time 10h)
- Change loop in file blog.php, now pagination and excerpt works well
- Add CSS Style for css class in standard WordPress
- Fix category view in meta.php
- Fix display post in index.php when there is a sticky post
- Add img-responsive in wp-caption (cleanup.php)
- Removes img-rounded in add image class image.php
1.8.5
Release Date:
(Dev time 10h)
- Add my name in licence.md
- Add support array with all supports in custom-post-type.php
- Add daschicon in custom post icon
- Add ID to section tag on 404.php, archive.php, author.php, blog.php, ful-width.php, page.php, search.php, single.php, sitemap-html.php
- New file and code for Entry Meta
- Remove img-rounded class and add center-block instead
1.8.4
Release Date:
(Dev time 10h)
- New description README.md
- Fix issue in archive.php
- Add new function for post/page password protection
- Improve italystrap_add_style_and_script function
1.8.3
Release Date:
(Dev time 2h)
- Fix issue “Header already sent”
- Add description echo for custom post type inside a bootstrap’s alert
1.8.2
Release Date:
(Dev time 3h)
- Fix some issue in file comments.php (comment-reply.js)
1.8.1
Release Date:
(Dev time 15h)
- Add File readme.txt (Correct theme check issue)
- Renamed file social-button.php in social-button.bak (I will develope soon)
- Add wp standard class in style.css (Correct theme check issue)
- Add wp_link_pages() for pagineted post (Correct theme check issue)
- Replaced bloginfo(‘url’) with echo home_url() (Correct theme check issue)
- Add post_class in search.php file (Correct theme check issue)
- Fix variable issue in widget.php (Correct theme check issue)
- Replaced bloginfo( ‘wpurl’ ) with echo site_url() in facebook_opengraph (Correct theme check issue)
- Add textdomain in comment-replay.php (Correct theme check issue)
- Modified Root function for new bootstrap class for video
- Replaced get_option(‘home’) with home_url() in breadcrumbs.php (Correct theme check issue)
- Add has_post_format custom function in index.php (Correct theme check issue)
- Add $content_width in functions.php (Correct theme check issue)
- Fix theme check issue in footer.php
- Add pagination to comments.php
1.8.0
Release Date:
(Dev time 3h)
- Update Botstrap to 3.2.0
- Update Gruntfile for build bootstrap js and css after update
1.7.3
Release Date:
(Dev time 2h)
- Add conditional tag for view version only in parent theme
1.7.2
Release Date:
(Dev time 3h)
- Add post_type_archive_title() in archive.php
- Add changelog to file Readme.md
1.7.1
Release Date:
(Dev time 5h)
- Update navwalker to 2.0.4 and add itemprop= to menù
- Built with grunt the javascript task runner
1.6.3
Release Date:
(Dev time 5h)
- Add less file
- Add file with function in lib
- Fix some bug
1.6.2
Release Date:
(Dev time 2h)
1.6.1
Release Date:
(Dev time 2h)
1.6.0
Release Date:
(Dev time 3h)
- Update to Bootstrap 3.1.1
1.5.7
Release Date:
(Dev time 2h)
- Add css class to wrapper all html
1.5.6
Release Date:
(Dev time 3h)
- Fix Warning:Cannot modify header information
1.5.5
Release Date:
(Dev time 2h)
- Migliorata la gestione degli script e degli stili, aggunto CDN fallback
1.5.4
Release Date:
(Dev time 2h)
- Aggiunte funzionalità di roots
1.5.3
Release Date:
(Dev time 3h)
- Migliorata la gestione delle slide in home
1.5.1
Release Date:
(Dev time 2h)
- Corretto problema stile thumb quando non presenti
1.5.0
Release Date:
(Dev time 2h)
- Aggiunto layout per la Sitemap HTML
1.4.1
Release Date:
(Dev time 1h)
- Sostituita classe alle immagini (thumbnail * img-rounded)
1.4.0
Release Date:
(Dev time 2h)
1.3.3
Release Date:
(Dev time 2h)
- Separato gli script del file function in un file esterno e commentato riga menu_icon dei custom post type
1.3.2
Release Date:
(Dev time 2h)
1.3.1
Release Date:
(Dev time 2h)
- Aggiunto script per lo slider in home, ora parte in automatico
1.3.0
Release Date:
(Dev time 2h)
- Aggiunto htacces HTML5 Boilerplate
1.2.0
Release Date:
(Dev time 10h)
- Corretti bug e aggiunta classe css img-polaroid come classe default al caricamento di immagini
- Aggiunto codice per i post correlati
1.1.1
Release Date:
(Dev time 5h)
- Migliorata la gestione della description di open graph e twitter card
1.1.0
Release Date:
(Dev time 10h)
- Aggiunto le twitter cards
1.0.0
Release Date:
(Dev time 200h)
- Rilasciata la versione Beta 1.0.0
Translations
- English: default, always included.
- Italian: Italiano, sempre incluso.
- German: Deutsch - immer dabei!
- French: Français, toujours inclus.
Note: This plugins is localized/ translateable by default. This is very important for all users worldwide. So please contribute your language to the plugin to make it even more useful. For translating I recommend the awesome “Codestyling Localization” plugin and for validating the “Poedit Editor”.
Additional Info
Idea Behind / Philosophy: A theme for improve and add some powerful improvement to your site. I’ll try to add more feautures if it makes some sense. So stay tuned :).
Credits

评论