# mybooktable/trunk/includes/extras/themes.php

MyBookTable Bookstore by Stormhill Media, version trunk. 16 lines.

- Page: https://pluginprobe.com/plugins/mybooktable/trunk/code/includes/extras/themes.php
- Raw: https://pluginprobe.com/plugins/mybooktable/trunk/raw/includes/extras/themes.php
- Modified: 2026-01-22T23:26:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/mybooktable/trunk/code/includes/extras/themes.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

function mbt_themes_init() {
	add_filter('body_class', 'mbt_override_twentyseventeen_body_classes', 20);
}
add_action('mbt_init', 'mbt_themes_init', 11);

function mbt_override_twentyseventeen_body_classes($classes) {
	if(get_template() === 'twentyseventeen' && mbt_is_mbt_page()) {
		$index = array_search('has-sidebar', $classes);
		if($index) { array_splice($classes, $index, 1); }
	}
	return $classes;
}

```
