Title: Include in a theme
Last modified: August 31, 2016

---

# Include in a theme

 *  Resolved [pravdamien](https://wordpress.org/support/users/pravdamien/)
 * (@pravdamien)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/include-in-a-theme/)
 * Hi.
 * I’m using a child theme of twentyfourteen and I would like to include the plugin
   within the theme itself so that the function is automatically activated when 
   the theme is activated (I’m providing several blogs with a half a dozen themes
   on a multisite network).
 * The plugin itself works fine when activated through plugins, but for several 
   reasons I don’t give users access to plugin activation, so I’ve been trying to
   include it through my functions.php file. I either can’t get it to load, or can”
   t get it to work, I’m not sure which.
 * I know this isn’t related to the plugin itself not working, but I would greatly
   appreciate a hand with this.
 * cheers.
 * [https://wordpress.org/plugins/auto-load-next-post/](https://wordpress.org/plugins/auto-load-next-post/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Sébastien Dumont](https://wordpress.org/support/users/sebd86/)
 * (@sebd86)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/include-in-a-theme/#post-7229658)
 * For the TwentyFourteen theme, you don’t need to add anything to the _functions.
   php_ file or override the template file.
 * Simply set the **Content Container** to `div.site-content`
 * That is all. Hope that helps.
 *  Thread Starter [pravdamien](https://wordpress.org/support/users/pravdamien/)
 * (@pravdamien)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/include-in-a-theme/#post-7229659)
 * but i still need to activate the plugin right ?
 * thanks for the quick answer, but I think there’s a bit of a misunderstanding
 *  Plugin Author [Sébastien Dumont](https://wordpress.org/support/users/sebd86/)
 * (@sebd86)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/include-in-a-theme/#post-7229663)
 * Yes, the plugin needs to be activated. Oh I understand what you mean now. Sorry.
 * Try using [https://codex.wordpress.org/Function_Reference/activate_plugin](https://codex.wordpress.org/Function_Reference/activate_plugin)
 *  Plugin Author [Sébastien Dumont](https://wordpress.org/support/users/sebd86/)
 * (@sebd86)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/include-in-a-theme/#post-7229725)
 * Did it work?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Include in a theme’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/auto-load-next-post_ccaf26.svg)
 * [WordPress Infinite Scroll by Auto Load Next Post](https://wordpress.org/plugins/auto-load-next-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auto-load-next-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auto-load-next-post/)
 * [Active Topics](https://wordpress.org/support/plugin/auto-load-next-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auto-load-next-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auto-load-next-post/reviews/)

## Tags

 * [autoload](https://wordpress.org/support/topic-tag/autoload/)

 * 4 replies
 * 2 participants
 * Last reply from: [Sébastien Dumont](https://wordpress.org/support/users/sebd86/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/include-in-a-theme/#post-7229725)
 * Status: resolved