Title: Create Custom Boxes
Last modified: May 28, 2017

---

# Create Custom Boxes

 *  Resolved [dariobaumberger](https://wordpress.org/support/users/dariobaumberger/)
 * (@dariobaumberger)
 * [9 years ago](https://wordpress.org/support/topic/create-custom-boxes/)
 * I tried to create a custom grid box. I used the instructions from the [german tutorial page](http://doc.the-grid.ws/dokumentation/entwickler/eigene-grid-boxen/).
   I created a folder in the plugin directory named _grid-boxen_ in this folder 
   i have two files: _grid\_boxes.php_ and _grid\_meine\_box\_box.inc_
 * I removed the dots (“…”) and also the empty arrays in _grid\_boxes.php_.
    I changed
   the variable1 to text like the [description](http://doc.the-grid.ws/dokumentation/entwickler/editor-widgets/).
 * When I activate the plugin there is an fatal error:
    _Fatal error: Class ‘grid\
   _static\_base\_box’ not found in_
 * I also had a look into the [git repo](https://github.com/palasthotel/grid). There
   is written in usage:
    Whatever you want to do, require grid.php and instantiate
   a new grid_library object. The grid_library object will provide you with everything
   you need to.
 * So i added in the plugin these lines:
 *     ```
       require_once plugin_dir_path(__FILE__).'../grid/lib/grid.php';
       global $grid_lib;
       $grid_lib = new grid_library();
       ```
   
 * No there is a new fatal error:
    _Fatal error: Cannot redeclare class grid\_library
   in_
 * What should I do that it works?
 * By the way, in the german documentation is an writing error:
    **__contruct()**
   Im Konstruktor muss…
 * it should be:
    **__construct()** Im Konstruktor muss…
    -  This topic was modified 9 years ago by [dariobaumberger](https://wordpress.org/support/users/dariobaumberger/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [EdwardBock](https://wordpress.org/support/users/edwardbock/)
 * (@edwardbock)
 * [9 years ago](https://wordpress.org/support/topic/create-custom-boxes/#post-9175491)
 * Hi [@dariobaumberger](https://wordpress.org/support/users/dariobaumberger/),
 * first of all thanks for the tip. I fixed the typo! 🙂
 * Now to your technical problem:
 * Did you install Grid with plugin installation to your WordPress or did you download
   the Grid WordPress Repo version of Github?
 * Grid consists of two parts. The library part that is CMS independent and the 
   CMS implementation. On WordPress.Org the Grid plugin is build with the library
   and should work just fine after installation. With the github version need a 
   view extra steps.
 * If you have the wordpress.org plugin version activated you should never have 
   to manually include and initialize grid_library. There is an action for adding
   custom boxen named “grid_load_classes” that you should use in your plugin and
   include your custom_box.inc in the callback function. At this point all base 
   box classes should be already loaded.
 * You can find an example custom grid box plugin here: [https://github.com/palasthotel/wp-grid-box-rss/](https://github.com/palasthotel/wp-grid-box-rss/)
 * I hope I could help. If not feel free to ask for more information.
 *  Thread Starter [dariobaumberger](https://wordpress.org/support/users/dariobaumberger/)
 * (@dariobaumberger)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/create-custom-boxes/#post-9180210)
 * Now it works.
 * Thank you for your support!
 * Also i think the new [description](http://doc.the-grid.ws/dokumentation/entwickler/eigene-grid-boxen/)
   is better.
 * Great plugin, thank you for sharing with us!
 *  Plugin Author [EdwardBock](https://wordpress.org/support/users/edwardbock/)
 * (@edwardbock)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/create-custom-boxes/#post-9180496)
 * Happy to help. Have fun with it 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Create Custom Boxes’ is closed to new replies.

 * ![](https://ps.w.org/grid/assets/icon-256x256.png?rev=1084015)
 * [Grid](https://wordpress.org/plugins/grid/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/grid/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/grid/)
 * [Active Topics](https://wordpress.org/support/plugin/grid/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/grid/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/grid/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [EdwardBock](https://wordpress.org/support/users/edwardbock/)
 * Last activity: [8 years, 12 months ago](https://wordpress.org/support/topic/create-custom-boxes/#post-9180496)
 * Status: resolved