Git Product home page Git Product logo

wp-theme-init's Introduction

wp-theme-init

Version: 2.0.1

A common baseline of repeated functions, filters and actions used across our WordPress themes.

Some of what's included:

  • Webpack dependency manifest asset loading
    Uses the Dependency Manifest Plugin from ideasonpurpose/docker-build.

  • Miscellaneous Fixes and Cleanup

    • Add a design credit to the WordPress dashboard.
    • "Howdy" is removed from the admin menu bar.
    • Lots of junk is removed from wp_head. Many optimizations come from the Soil plugin.
    • WordPress will attempt to trigger a Browsersync reload from the save_post hook.
  • ShowIncludes A div showing all included theme files will be appended to the page when WP_DEBUG is true. To disable it, initialize the class with an array containing: ['showIncludes' => false]

  • Global Comments Disable Comments and Trackbacks are completely disabled. To re-enable comments, initialize the ThemeInit class with an array containing: ['enableComments' => true]

  • Admin\Separators Quickly add separators to the WordPress admin dashboard's left sidebar. Initialize the class with a list of numbers representing the index locations where separators should appear in the menu. Arguments can be an array or multiple arguments.

// Add separators
new Admin\Separators(5, 7);

// or use an array
new Admin\Separators([5, 7]);
  • SEO Framework Tweaks We apply several tweaks to the excellent The SEO Framework plugin:
    • Hide the author's name
    • Move the metabox to the bottom of admin pages
    • Show the default image from the first post in archives

wp-theme-init's People

Contributors

joemaller avatar

Watchers

James Cloos 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.