Coder Social home page Coder Social logo

log-oscon / wp-construct Goto Github PK

View Code? Open in Web Editor NEW
6.0 10.0 0.0 855 KB

Boilerplate for a new WordPress project with a Genesis Framework based theme.

License: GNU General Public License v2.0

Shell 35.21% PHP 13.66% JavaScript 17.27% SCSS 33.86%
wordpress boilerplate genesis-framework vagrant

wp-construct's People

Contributors

csrui avatar dependabot[bot] avatar goblindegook avatar marisaroque avatar mmcarvalho avatar riccastelhano avatar s3rgiosan avatar serrazina avatar xipasduarte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wp-construct's Issues

Remove premium plugins

It does not make sense to have the premium plugins in this public repository. Should be added a note saying that this boilerplate is dependent on Genesis theme.

PHP Warning

There a "missing" file when the WP_DEBUG option is set to true.
When this setting is present the file wp-settings.php forces the inclusion on a file named advanced-cache.php in the wp-content directory.

// For an advanced caching plugin to use. Uses a static drop-in because you would only wa
nt one.
if ( WP_CACHE )
        WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTE
NT_DIR . '/advanced-cache.php' );

Inject SVG sprite

We need to inject the SVG sprite in the theme, because it is missing.

I suggest you to use the code below in functions.php. That’s how I’ve done it.

//* Inject inline sprite file.
\add_action( 'genesis_before', function() {
    echo file_get_contents( \get_stylesheet_directory() . '/public/images/sprite.svg' );
}, 1 );

What do you think?

Find a proper name

Find a proper name for your WordPress boilerplate. A name that could be marketed and recognized.
And independent of development environments and theme frameworks, I guess.

Avoid words like:

  • Boilerplate
  • VVV
  • Starter
  • Bootstrap
  • Foundation
  • Genesis

Current options and votes:

name πŸ‘ πŸ‘Ž
WP Construct 5 0
WP BootBox 2 0
Step One 1 0
WP Inception 0 0
WP Base 0 0
WPartida 0 1

Note: Vote o the respective comments where the names were suggested.
PS: WP Seed is already taken by another starter.

Add proper placeholders

Add proper placeholders across all files for immediate search and replace.

Or, better yet, convert this to a yeoman generator.

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.