Demo URL: Seo Main http://seomainsite.wpengine.com/
Seo Career http://seocareer.seomainsite.wpengine.com
Seo Law http://seolaw.seomainsite.wpengine.com
Seo Scholars http://seoscholars.seomainsite.wpengine.com
Seo Alternative Investments http://seoalternativeinvestments.seomainsite.wpengine.com
Local URL: If you have BrowserSync or any test scripts configured to look for a specific local URL, note it here
[Confluence Documentation] https://bluestatedigital.atlassian.net/secure/RapidBoard.jspa?rapidView=76&projectKey=SEOC&view=detail&selectedIssue=SEOC-2
[Style Guide] Seo Main http://seomainsite.wpengine.com/wp-content/themes/seo-main/assets/styleguide/index.html#
Seo Law http://seolaw.seomainsite.wpengine.com/wp-content/themes/seo-law/assets/styleguide/index.html#/
Seo Scholars http://seoscholars.seomainsite.wpengine.com/wp-content/themes/seo-scholars/assets/styleguide/index.html#/
Seo Alternative Investments http://seoalternativeinvestments.seomainsite.wpengine.com/wp-content/themes/seo-alt_investments/assets/styleguide/index.html#
Replace with details about your project's CSS setup This project uses BEM-style classes with namespaces. Source files are in wp-content/themes/bsdstarter/src/scss and are divided into subfolders by namespace. Namespaces follow the general convention laid out in CSS Wizardry.
Remove if you do not have regression tests in place The project uses BackstopJS for CSS regression testing. Tests are run as part of the gulp build
task. Code should pass the regression tests before being committed and pushed, but this is not yet enforced via a pre-commit hook. If after reviewing the test results, you see that the test "failed" for an irrelevant reason (content updated, a deliberate style change, etc.), update the reference screenshots and recommit.
If you make an intentional style change, first run the regression tests as normal and verify that the only differences are your intentional changes. Once you've confirmed that, generate new reference screenshots:
gulp backstopjs:reference
Commit your code changes and the new screenshots.
After creating a new template, update wp-content/themes/bsdstarter/backstop.json so that the template will be tested going forward.
Remove if you are not using a styleguide. This project uses SC5 Styleguide Generator to generate a living styleguide. Style guide files are updated as part of the gulp watch and build tasks. You can view the styleguide at /wp-content/themes/bsdstarter/assets/styleguide. In order for components to be parsed correctly, all CSS components should be commented using KSS.
Replace with details about your project's JavaScript setup This project uses Browserify to manage JavaScript modules. The main main.js file declares project requirements and acts as the main controller. Individual pieces of functionality should be placed in src/js/modules and third-party plugins should be placed in src/js/vendor/.
When building JavaScript or SCSS files, a linter will run that evaluates code against our recommended standards. Additionally, while the default gulp task is watching the project, a PHP linter will run whenever changes to *.php files occur. For you convenience, you can run gulp phpcbf
to attempt to automatically fix simple style linting violations.
/wp-admin: Wordpress core files. Do not make changes here. They will be overwritten when Wordpress updates.
/wp-content: The directory for Wordpress themes, plugins, and uploads.
-
/mu-plugins: Must-use plugins. These plugins are loaded automatically and cannot be deactivated by the client. Custom post types should be defined here.
-
/plugins: Wordpress plugins. Any third-party and custom-plugins (other than the must-use plugins) will go in this directory.
-
/themes: Wordpress themes
-
/bsdstarter: Theme files for the Wordpress starter kit theme. Templates are located in this directory.
-
/assets: Contains static assets for the site. Most of these are compiled from the src directory
-
/includes: Theme functions, including custom shortcodes and modifications to the WYSWIYG editor
-
/src: Contains SCSS, JavaScript, and image source files
-
/img: Image sources. There is a Gulp task set up to minify images and copy them to the assets folder automaticallty
-
/js: JavaScript source files
-
/modules: Browserify modules. These can be required by other modules that depend on them or by
main.js
-
/vendor: Third-party plugins. Only those files prepended with
_
will be included in the concatenate task. Other plugins can be required by a module ormain.js
where appropriate. -
/main.js: The main JavaScript file for the project.
-
-
/scss: SCSS Stylesheets
-
/vendor: Stylesheets for third-party plugins
-
/components: Stylesheets for CSS components
-
/style.scss: The main stylesheet for the project. It must compile to a file named style.css that is in the root of the theme directory (not within /assets) and include a comment at the top giving the theme name
-
-
-
/views: Twig templates used to generate the front-end markup
-
-
/wp-includes: More Wordpress core files. Do not make changes here. They will be overwritten when Wordpress updates.
Custom shortcodes are located in /wp-content/themes/bsdstarter/includes/bsdstarter_shortcodes.php.
[quote]Quote text[/quote]
,[quote author="Author Name"]Quote text[/quote]
: Inserts a pullquote with optional author[stat value="100" label="Stat text"]
: Inserts a callout stat[iframe type="youtube" id="2jE59c9ncio"]
,[iframe type="vimeo" id="142354343"]
,[iframe src="http://yoururlhere.com"]
: Inserts a video iframe, wrapped in Foundation's flex-video class
--
To get a current snapshot of the database, log in to WP Engine and use the phpMyAdmin tool to download an SQL export.
After cloning the repo and downloading the database, save a copy of wp-config-sample.php
as wp-config.php
. (Don't delete the original!) Add the following lines to your wp-config file:
define('WP_DEBUG', true);
define('WP_HOME', 'http://yourlocalurl');
define('WP_SITEURL', 'http://yourlocalurl');
Add the database credentials to that file as well.
- Node
- Gulp
- Browsersync
- Sass
- Browserify
- PhantomJS (
sudo npm install -g phantomjs
) - CasperJS (
sudo npm install -g casperjs
)
Project-level development dependences can be found in the theme's package.json
file.
To deploy, you will need to log into WP Engine and add your SSH public key under "Git Push". Once your key has been added, follow the instructions at https://wpengine.com/git/ to set up 'git remote' endpoints for production. After your end points have been set up, you will deploy new code by pushing to the production
remote, i.e. git push production master
.
To deploy:
- Run
gulp build
to minify CSS and JS for production - Commit the compiled files
- Push to the local repo
git push origin master
- Push to the WP Engine
git push production master