Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Nova Extension: CodeIgniter Route Body Class

This extension makes it possible to write styles targeting a specific Nova page. This is important as Nova pages sometimes use generic styles yet a theme may desire to style a certain page.


This extension requires:

  • Nova 2.6+


Copy the entire directory into applications/extensions/ci_route_body_class.

Add the following to application/config/extensions.php:

$config['extensions']['enabled'][] = 'ci_route_body_class';


To enable targeting styles to a specific page, this extension appends a class to the <body> of all Nova pages of the form ci-route--personnel--index, where personnel is the controller name specified by the route and index is the controller method specified by the route.

As an example, consider the sim/departments page. If a theme wanted to hide the manifest a department is assigned to (such as if there is only one manifest), when this extension is running, one could simply add the following CSS to the theme:

.ci-route--sim--departments #body ul li .fontTiny.gray {
    display: none;

Without this plugin, one would not want to display:none on #body ul li .fontTiny.gray because that would inadvertently affect tiny gray text on other pages.


If you encounter a bug or have a feature request, please report it on GitHub in the issue tracker here:


Copyright (c) 2019 Jon Matterson.

This module is open-source software licensed under the MIT License. The full text of the license may be found in the LICENSE file.

You can’t perform that action at this time.