Giter Site home page Giter Site logo

clc-demo-theme's Introduction

Content Layout Control Demo Theme

This theme demonstrates how to integrate the content-layout-control framework in your theme.

So far it only demonstrates a very basic integration, using the two components provided by default.

Install

The simple way is to download the latest release package and install it as you would any other theme. Once activated, open any Page in the Customizer and look for the Content Layout Control section.

If you want to build from source:

git clone --recursive https://github.com/NateWr/clc-demo-theme.git
cd clc-demo-theme/lib/content-layout-control
npm install
grunt build

Plans

  • Add a custom component
  • Extend a component
  • Using the secondary panel in a custom component
  • More complex active_callback logic
  • Disable the post editor to prevent data bleed
  • Maybe write a tutorial or something that explains better what the code is doing
  • Doing crazier things, like extending the control itself, not saving to post_content, running two controls at once, etc.

Example

Here's a user-facing demo video showing a fleshed out implementation in the Luigi theme.

clc-demo-theme's People

Contributors

natewr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

clc-demo-theme's Issues

How to create a new component?

Hey @NateWr - I use your luigi theme in one of my projects.

I am a bit confused with all the files and folders and I thought maybe you could give me a short introduction to the necessary structure. Could you just briefly tell me

  • where to place the files of a new component and
  • how to register those so I could e.g. use them in the "Homepage Editor"
  • or how to add a specific shortcode to the "Mix'n Match' dropdown selection

Thanks for your support!

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.