How to specify a page template for a plugin (wiki lite)
-
Hi all,
I’m trying to add the wiki lite plugin to a webpage but when I try, it only uses 1/2 the page. See here
I’ve figured out that this is the page template that is doing this and managed to create a new page template that takes up the whole page. See here.
My thought is that I have to somehow make the wiki lite plugin load my full page template and not the default column template. I don’t know how to do this. Can anybody help me so that I can direct the plugin to load that page template. Maybe through the wiki.php or style.css plugin files? I just started on wordpress so I’m not the best at it yet.
I’ve found out this in the wiki.php file but don’t really know what it means and think I may have to change something around from here:
$templates[] = “incsub_wiki.php”;
if ($this->wiki_template = locate_template($templates)) {
add_filter(‘template_include’, array(&$this, ‘custom_template’) );
} else {
//otherwise load the page template and use our own theme
$wp_query->is_single = null;
$wp_query->is_page = 1;
add_filter(‘the_content’, array(&$this, ‘theme’), 99 );
}
$this->is_wiki_page = true;
}
}Thanks for any help!
Bryan
- The topic ‘How to specify a page template for a plugin (wiki lite)’ is closed to new replies.