-
Notifications
You must be signed in to change notification settings - Fork 44
Michael edited this page Dec 30, 2016
·
19 revisions
If you want to use only the course or the publication system of the plugin, so write the following in the wp-config.php file of your WordPress installation:
// For deactivating the course system:
define ('TEACHPRESS_COURSE_MODULE','disable');
// For deactivating the publication system:
define ('TEACHPRESS_PUBLICATION_MODULE','disable');If you want to change the directory of teachPress templates, so write the following at the beginning of the "constants" part in the wp-content/plugins/teachpress/teachpress.php file:
// For changing the teachPress template directory (moving it to wp-content/uploads/)
$tp_upload_dir = wp_upload_dir();
define ('TEACHPRESS_TEMPLATE_PATH', $tp_upload_dir['basedir'] . '/teachpress/templates/');
define ('TEACHPRESS_TEMPLATE_URL', $tp_upload_dir['baseurl'] . '/teachpress/templates/');Don't forget to copy all files from the default directory to the new one!
The Altmetric support needs external sources from third party servers. I don't want that teachPress loads this by default. You can activate the altmetric support if you write the following in the wp-config.php file of your WordPress installation:
// For activate loading of external sources for Altmetric support:
define ('TEACHPRESS_ALTMETRIC_SUPPORT',true);After that, you can use the shortcode parameters to activate the altmetric support:
[tpcloud show_altmetric_entry="1" show_altmetric_donut="1" ]
[tplist show_altmetric_entry="1" show_altmetric_donut="1" ]