Wordpress content-only custom templates (with plugin javascript (etc) still being loaded)

Today I spent a fair while on a quest to display only page content on a Wordpress site of mine. The situation is that I’m trying to make a very easily updated marketing website for an online-learning project of mine. I like using a proprietary page slider for Wordpress (and other platforms, excluding my Moodle e-learning platform). So, hacky as it is, I opted to spin up a dedicated Wordpress site that’d just host the sliders in content-only custom theme template files. Of course, this mandated rolling up the sleeves.

The central problem ended up being that my proprietary wordpress plugin installs some Javascript stuff it needs. I could have tried to figure out how to manually install that stuff, but I wanted something that’d inherit updates of Wordpress and the plugin. I’ve found a few examples of doing custom theme templates that show only content, but they lacked the necessary guts to get plugin junk loaded. I’ve adapted those bare-bones templates I’ve seen, along with code selectively cut from my theme’s other files (theme is TwentyFourteen).

Here’s my custom theme page:

/*

Template Name: Bare Content

*/

?>

><?php wp_title( '|', true, 'right' ); ?> "; wp_footer(); echo "
"; echo ""; ?>

This code could probably be a bit more concise. Whatever. Hope that helps someone. If not, it’ll probably end up helping me a few years down the road.