PLUGIN · ON REQUEST · WordPress / HTML / CSS / JavaScript
MRC Fragments
Reusable WordPress and Elementor HTML blocks with language-specific or universal content. One fragment ID and the same shortcode on every page; edit files via FTP/SFTP or WordPress.
How it works
- Each fragment uses one unique ID and one folder under
wp-content/uploads/mrc-fragments/ID/. - Each HTML uses a suffix:
ID.it.htmlandID.en.htmlfor language-specific content, orID.all.htmlfor every language.ID.htmlwithout a suffix is invalid. - The shortcode remains
[mrc_fragment id="studio-colore"]on translated pages. WPML or Polylang can provide the current page language; otherwise WordPress's language is used. - The matching language variant overrides
ID.all.html. Otherwise the universal file is used; without it, multiple language-specific files do not silently fall back to a different language. A singleID.en.htmlcan still display on an Italian-language website. - CSS, JavaScript, images and fonts are shared. Update them via FTP/SFTP or in the WordPress editor without reopening Elementor.
- The plugin can attach an existing FTP folder, includes Find and Replace, and bundles a guide and ChatGPT prompt for preparing file packages.
Where to use it
Pages, posts, custom post types and Elementor Single templates. Keep markup, style, scripts and layout separate and reuse the same block across content and languages without translating the shortcode.
Requirements and limits
WordPress 6.3+, PHP 7.4+. Elementor and WPML are optional. Each fragment may appear only once per rendered HTML page: do not use it as a repeated element in a Loop Grid or Loop Carousel. It does not automatically generate post-specific content for each loop item.
HTML without a suffix (ID.html) and configurable fallback among localized files are not supported. The universal all suffix never becomes an HTML lang attribute. Existing misnamed files must be renamed; there is no automatic conversion. Page or CDN caching may delay FTP updates.
There is no built-in full ZIP importer: extract and upload the folder via FTP/SFTP. The public uploads directory must not contain secrets.
Availability
Available on request; no public plugin ZIP download is provided yet. Actual operation on different WordPress/Elementor/WPML setups should be checked before use.