Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/talentedaamer/oop-sidebar-generator
Generate sidebars very easily.
https://github.com/talentedaamer/oop-sidebar-generator
Last synced: about 24 hours ago
JSON representation
Generate sidebars very easily.
- Host: GitHub
- URL: https://github.com/talentedaamer/oop-sidebar-generator
- Owner: talentedaamer
- Created: 2015-09-04T21:17:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-04T21:33:01.000Z (about 9 years ago)
- Last Synced: 2024-04-18T14:12:14.135Z (7 months ago)
- Language: PHP
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### OOP-sidebar-generator
-----------------------------
Generate unlimited sidebars with a single array. List number of sidebars in an array and you are done.### Usage.
----------------
Drop the file in your theme inc folder and add it in functions.php
```
require get_template_directory() . '/inc/oop-sidebar-generator.php';```
Now put create a new function with an array of sidebar and pass it into the function to register sidebars.```
/**
* Number of sidebars to register. place each sidebar in a new line.
* @type array
*/
$sidebars = array(
'Primary Sidebar',
'Secondary Sidebar',
'footer 1',
'footer 2',
'footer 3',
'footer 4'
);
cft_register_sidebar( $sidebars );
```### Authors and Contributors
----------------------------
OOP Post Type Generator is written by Aamer Shahzad @talentedamer a WordPress theme developer on WordPress.org and OOPthemes.com### Support or Contact
----------------------
Please visit [OOPThemes](http://oopthemes.com) support forum if you have any issue regarding the use of OOP Post Type Genertator.