GithubHelp home page GithubHelp logo

seo's Introduction

Project Name

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 Career http://seocareer.seomainsite.wpengine.com/wp-content/themes/seo-career/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#


Technical Details

CSS

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.

CSS Regression Testing

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.

Styleguide

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.

JavaScript

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/.

Code Linting

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.

Structure

/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 or main.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.

Shortcodes

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

--

Local Environment Configuration

Database

To get a current snapshot of the database, log in to WP Engine and use the phpMyAdmin tool to download an SQL export.

wp-config

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.

Development Dependencies

  • 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.

Deploying

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:

  1. Run gulp build to minify CSS and JS for production
  2. Commit the compiled files
  3. Push to the local repo git push origin master
  4. Push to the WP Engine git push production master

seo's People

Contributors

aaqil-r avatar nishan-mills avatar noahamalan avatar paulcham avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.