Code Monkey home page Code Monkey logo

es6-sass-hotreloading-docker-wordpress-theme's People

Contributors

anthify avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

es6-sass-hotreloading-docker-wordpress-theme's Issues

Capital P please.

A small change but will increase your credibility. As an experienced WordPress developer I can tell you that all true WordPress Devs cringe when they see WordPress spelled with a lower case "p" and not a capital "P". There is even a function in the documentation written to correct "Wordpress" to "WordPress"

https://codex.wordpress.org/Function_Reference/capital_P_dangit

So... Small change but you will have a big effect.

Comments on code Xpertbot

Some comments on the repo code from reddit user Xpertbot

I find it awkward to have the theme files inside a src folder. wouldn't it be better to have it more like wp-content/theme/your-name/* that way is obvious where the docker and other config files should live? Also, is this based on underscores theme builder? it kinda seems like it.

I personally would not build into style.css, because style.css file can be modified through the WP admin and it be deleted if client decides to edit through WP-Admin. I would have an empty styles.css file with the theme headers and enqueue it as last style so any changes in it take precedence over other stylesheets.

try to minimize the number of actions you use such as, combining JS and Stylesheets on wp_enqueue_scripts to 1 function.

PHP files that have no HTML in them should not have a closing ?>

I couldn't find where the sidebars where being registered so I am unsure if sidebar.php actually displays anything.

I personally like having a partials folder where any files such as loop.php live that way anything that's outside of it at the theme root level are Wordpress high level templates. It's a good way to have a good structure on it.

Automatically detect new sub folder in src

Bug

New subfolder in src requires an explicit mention in the gulpfile.babel.js paths in order to be compiled.

Solution

Instead of adding paths to be included, add a path match for stuff that needs excluded as it's purpose to not copy over pre-compiled assets (sass).

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.