Plugin that provides functionality and templates for bringing DRS data into WP for the DRS Toolkit.
Should be cloned into wp-content/plugins with
git clone https://github.com/NEU-Libraries/drs-toolkit-wp-plugin.git drs-tk
Relies on Javascript being enabled and AJAX - Should work in IE10 and up, Chrome, Firefox, and Safari
-
Ask Karl for clean install of WP on correct server (will need to provide a directory name)
-
Log in to new Wordpress site as admin user
-
Install Quest theme (go to /wp-admin/theme-install.php and search for quest then click install)
-
SSH into correct directory on server and git clone this repo into wp-content/plugins
git clone https://github.com/NEU-Libraries/drs-toolkit-wp-plugin.git drs-tk
- Also clone the theme into wp-content/themes
git clone https://github.com/NEU-Libraries/drs-toolkit-wp-theme.git quest-child
- Register your site on google analytics and add your code to a git-ignored file called analytics.php
cd /wp-content/themes/quest-child
vi analytics.php
Example file contents:
<?php
echo "<script>[YOUR GOOGLE ANALYTICS CODE]
function add_google_tracking(){
jQuery('.button').on('click', function() {
ga('send', 'event', jQuery(this).data('label'), 'click', jQuery(this).data('pid'));
console.log('send', 'event', jQuery(this).data('label'), 'click', jQuery(this).data('pid'));
});
}
</script>
";
- If the project is going to need to override styles, add a overrides.css file (which is gitignored so changes won't be overwritten)
cd /wp-content/themes/quest-child
touch overrides.css
- Delete extra themes to avoid user confusion
cd wp-content/themes
rm -rf twentyfifteen
rm -rf twentyfourteen
rm -rf twentythirteen
-
Go to /wp-admin/plugins.php in your browser. Install dependent plugins: Relevanssi, Page Builder by SiteOrigin, Black Studio TinyMCE Widget, and Widget Context and activate them.
-
Go to /wp-admin/plugins.php in your browser. Activate DRS Toolkit Plugin
-
Go to Settings > Reading and set Front Page Displays to a static page then choose a static page.
-
Go to Settings > Discussion and uncheck the box that says 'Allow people to post comments on new articles' to disable comments by default
-
Go to Settings > DRS Toolkit and enter collection URL and click Update
-
Go to Appearance > Themes and activate DRS Toolkit (Quest Child Theme)
-
Go to Appearance > Customize > Layout > Search Results. Change sidebar to none.
-
Go to Appearance > Customize > Colors > Global. Change Accent Color and Accent Shade Color to #c00
-
Click the '<' arrow then Header. Change Secondary Header > Background Color to #494949, Text Color and Social Icon Color to #AFAFAF, Top Border Color to #3C3C3C and Social Icon Hover Color to #EFEFEF
-
Click the '<' arrow then Main Menu. Change Menu Items > Text Hover/Focus Color and SubMenu Items Hover/Focus Text Color to #c00.
-
Click the '<' arrow then Footer. Change Social Icon Hover Color and Social Icon Hover background color to #c00. Change Secondary Footer Background Color to #3C3C3C.
-
Go to Pages > Delete the 'Sample Page'. Go to Posts > Delete the 'Hello World'.