
When managing a brand across many sites, it is often necessary to ship changes to the look and feel with the certainty that they will be applied immediately.
In its current iteration, the WordPress site editor allows individual site administrators to make changes to a theme’s templates and template parts. Once a template or a template part has been edited on an individual site, it no longer receives updates from the theme automatically, which may in turn cause unintended consequences.
This plugin provides a way for site administrators to edit parts of the site without accidentally overwriting pieces that should remain consistent.
Network Template Parts works in tandem with Restrict Network Templates, which restricts the editing of templates on individual sites.
A theme’s core structure is defined by templates. (e.g. templates/home.html)
It should be possible to set a structure in these templates and assume that they will not be overridden on individual sites.
Parts of a theme’s structure rely on data from the main site on a network. (e.g. global navigation)
It should be possible for a template to specify that a section of a page is rendered in the context of the main site.
Parts of a theme’s structure rely on data from individual sites on a network. (e.g. site navigation, content)
It should be possible to override site-level template parts from an individual site.
The Network Template Part block renders a selected template part in either a “site” or “network” context.
Attributes:
Often, a network will provide common header and footer areas while leaving the site content between to site administrators. With Network Template Parts, this can be accomplished as so:
A templates/index.html file may contain:
<!-- wp:ntp/network-template-part {"slug":"header","context":"network"} /--> <!-- wp:ntp/network-template-part {"slug":"main-index","context":"site"} /--> <!-- wp:ntp/network-template-part {"slug":"footer","context":"network"} /--> >
This loads parts/header.html from the main site on the network, parts/main-index.html from the current site, and parts/footer.html from the main site on the network.
The parts/header.html file main contain:
<!-- wp:ntp/network-template-part {"slug":"header-top","context":"network"} /--> <!-- wp:ntp/network-template-part {"slug":"header-main","context":"network"} /--> >
This defines two areas in the header to be managed at the network level. The parts/header-main.html may contain something like:
<!-- wp:group --> <div class="wp-block-group"> <!-- wp:group {"tagName":"header"} --> <header class="wp-block-group"> <!-- wp:ntp/network-template-part {"slug":"header-main-network-logo","context":"network"} /--> <!-- wp:ntp/network-template-part {"slug":"header-main-site-navigation","context":"site"} /--> </header> <!-- /wp:group --> </div> <!-- /wp:group --> >
This provides some common HTML structure, loads a network-level logo, and also provides a site-level navigation in parts/header-main-site-navigation.html.
Now, an individual site administrator can make changes to a navigation menu while also receiving updates from the theme and the network if the look and feel of the broader network changes.
Starting from $0 per month.
Rating
Reviewers
No reviews
Tags
Developed By
Happy Prime
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Contact Form plugins for Wordpress
Maps plugins for Wordpress
Translation plugins for Wordpress
Chat plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Contact plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Forms plugins for Wordpress
Comments plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Comments plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Portfolio plugins for Wordpress
Video Player plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Inventory plugins for Wordpress
Testimonials plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Analytics plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Security plugins for Wordpress
Ads plugins for Wordpress
Music Player plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Membership plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Video Player plugins for Wordpress
Tabs plugins for Wordpress
Social Feeds plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Show Glassdoor reviews to highlight employee feedback, strengthen employer brand, and help candidates trust your company.
Display a cookies consent bar that explains usage and supports GDPR compliance, enhancing user trust and legal clarity.
Use team members blobs to present your staff in a clear, creative format that builds trust, supports transparency, and strengthens brand credibility.
Display and manage customer reviews from multiple platforms in one place to build trust and highlight brand credibility.
Add pricing tables to your site to present plans clearly, help visitors compare features, and guide them toward faster and more confident conversions.
Add a countdown timer to your site to highlight upcoming events or launches and encourage timely user action.
Show Capterra reviews to build trust, strengthen credibility, and help visitors make confident software buying decisions that support higher sales.
Create event listings with an events board widget that displays upcoming activities clearly, helps visitors discover events, and supports easy management.
Show a GDPR-ready cookie notice that clearly explains how cookies are used, helping you stay compliant while creating a more transparent experience for your visitors.
Gather supporter signatures with a petition form that collects entries, saves submissions, sends notifications, and helps you drive meaningful change efficiently.
Display ratings from multiple platforms in a reviews trust box that builds credibility, social proof, and boosts conversions.
Add customizable popups to your site to capture attention, deliver messages, and drive actions like signups or conversions.
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!
