Coder Social home page Coder Social logo

ghepes / trt-customizer-pro Goto Github PK

View Code? Open in Web Editor NEW

This project forked from justintadlock/trt-customizer-pro

0.0 0.0 0.0 25 KB

Repository with examples of using the Customize API to make pro sections, controls, etc.

License: GNU General Public License v2.0

PHP 83.19% CSS 9.50% JavaScript 7.31%

trt-customizer-pro's Introduction

"Pro" theme section examples for the customizer

This repository is some examples of using the Customize API for adding a "pro" link to the customizer.

The goal is to provide examples so that theme authors are not bypassing the core API and doing weird things like injecting links into the DOM via JavaScript, which can and will most likely break in future iterations of the customizer in core WordPress.

Testing

To test the output, simply drop the trt-customize-pro folder into the root of your theme like so:

/themes
        /your-theme
                /trt-customize-pro

Then, load an example with this code in your theme's functions.php:

require_once( trailingslashit( get_template_directory() ) . 'trt-customize-pro/example-1/class-customize.php' );

Usage

If you decide to use in your theme, make sure to change up all the prefixes, textdomains, and paths. Everything should be relatively straightforward if you've worked with the customizer.

Copyright and License

All code, unless otherwise noted, is licensed under the GNU GPL, version 2 or later.

2016 © Justin Tadlock.

trt-customizer-pro's People

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.