content-layout-control icon indicating copy to clipboard operation
content-layout-control copied to clipboard

Documentation and tutorials

Open VladNov opened this issue 7 years ago • 8 comments

Hi Nate,

I had the same idea but to do it with widgets, then i found you plugin. Awesome work with components, this feature is really needed in WP instead of all the heavy and bloated builders. This much cleaner and easier approach for content creation.

Do you have some sort of docs about how to work with CLC? How to create new components and add more fields like selects, Iris color picker, etc.?

VladNov avatar Mar 31 '17 11:03 VladNov

HI @VladNov,

Unfortunately, I don't really have any docs in place. You can see how to integrate it into a theme with this demo theme. And if you want to see how custom components are created, take a look at this plugin that I wrote. It adds a number of components that I use in my own themes.

NateWr avatar Mar 31 '17 12:03 NateWr

Thank you for your reply.

Do i need to add the contents to "github-updater-lite" directory? Once activated it returned two errors about non existing file or directory.

VladNov avatar Mar 31 '17 13:03 VladNov

You can download the latest release package for TOTC Layout Control. If you want to check out the repository, you'll need to initialize the submodules:

git submodule update --init --recursive

NateWr avatar Mar 31 '17 13:03 NateWr

Thank you.

I've installed the plugin, but now i do not see the Content Layout Control panel in the Customizer. Do i need add something into the theme to make it appear?

Sorry about all these questions...

VladNov avatar Mar 31 '17 13:03 VladNov

Yeah, here's an example from my base theme:

https://github.com/NateWr/totcbase/blob/master/functions.php#L36-L50

NateWr avatar Mar 31 '17 14:03 NateWr

Working great!

Really appreciate all your help.

One last question, do you have an example of color field? I mean the default WP Iris picker.

VladNov avatar Mar 31 '17 14:03 VladNov

No, I generally use it for content construction rather than theme-wide styles.

NateWr avatar Mar 31 '17 14:03 NateWr

I thought to add a background color option to section.

You should suggest this library to Automattic to make it part of the core. Thank you very much for all your help and your time, really appreciate it.

VladNov avatar Mar 31 '17 14:03 VladNov