Acid is a WordPress Customizer API wrapper, that takes the hassle out of creating WordPress theme options. With Acid, theme developers and designers can easily create and maintain their theme options, with way less, and easier to manage code, and save countless hours at the same time. Acid also comes with a theme options generator tool, where you can use a drag & drop interface to create all the theme options that you want!
Installing the Acid library is easy, follow the instructions below:
- Download the zip of latest release.
- Extract the folder and place it somewhere in your theme.
- In your theme’s
functions.phpfile, add a
require_onceto the library’s main php file.
Theme Options Generator Tool
The easiest way to create your theme options is to use the Acid Generator tool, which allows you to visually create panels, sections and options. The generator will generate a snippet of code that you can add to your theme.
Outputting Theme Options
So you created the customizer options, now you need to output them in your theme templates. You can use the WordPress function
get_theme_mod( 'option_id", __( 'Default value', 'text-domain') )
You can read more on this function on the WordPress Codex page.