Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Bootstrap Plugin Not Starting from Child Theme

Started by Muut Archive 10 years ago · 1 replies · 344 views
10 years ago

I created a Child theme for the Bootstrap theme which has a dependency on the Bootstrapper plugin.

TXT
dependencies:
  - bootstrapper

In the child theme .php I also added the call found int bootstrap/bootstrap.php

PHP
public $load_bootstrapper_plugin = true;

But that did not resolve the issue. I'm not that familiar with PHP Streaming so I'm not sure how to debug it any further.

The files missing on the render html page is

--- HTML
<link href="/user/plugins/bootstrapper/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
<link href="/user/plugins/bootstrapper/css/bootstrap-theme.min.css" type="text/css" rel="stylesheet" />

HTML
and
--- HTML
<script src="/user/plugins/bootstrapper/js/bootstrap.min.js" type="text/javascript" ></script>

So I assume the $load_bootstrapper_plugin = true; isn't being seen or honored somewhere along the way. And adding that line to the child theme .php file doesn't fix it.

Any ideas on what else to try or look for?

10 years ago

FIXED - not even 5m after I posted this I found the problem and it was how I named the child theme class in the php. I had added "Theme" to the class name.

Once I fixed the child theme class name to match the child theme name AND added the

PHP
public $load_bootstrapper_plugin = true;

Everything started working as expected :-)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1368 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1125 9 years ago