Comments (10)
OK. This is not exactly how it works.
The main idea was to have a function which will return all sidebars in an array(that you can use anywhere) and from this array to create an option which will be used to asign one or more sidebar(s) to a page, post etc. So, first of all you must ensure that you have a default sidebar. You must create one in functions.php
:
if (function_exists('register_sidebar')) :
register_sidebar(array(
'name' => 'Default Sidebar',
'id' => 'defaultside',
'before_widget' => '<aside class="widget %2$s">',
'after_widget' => '</aside><div class="clear"></div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
));
endif;
to display this sidebar you have to write this where you want to display it:
smk_custom_dynamic_sidebar('Sidebar Name')
Sidebar Name
is the name of sidebar you want to display, for example to show this which we created in functions.php the code will be like this:
smk_custom_dynamic_sidebar('Default Sidebar')
As many developers have their own metaboxes/theme options frameworks, I haven't created a such option and removed the previous one from original plugin because I thought that it is inutile, but maybe I should create one for flexibity. Let me know if this is what you need...
from smk-sidebar-generator.
I will create a sample as soon as I will have free time. :)
from smk-sidebar-generator.
Hello,
Yes, it would be nice if you could create some examples. It will be easier to undersand.
Thanks.
from smk-sidebar-generator.
I haven't created a such option and removed the previous one from original plugin because I thought that it is inutile, but maybe I should create one for flexibity. Let me know if this is what you need...
Please create one... Thanks.
from smk-sidebar-generator.
@danielzilli , @elikem Hello all. Working to a new version(2.0) which will include more features and let the developer to define the sidebars for individual page very easy. Also this will allow you to add support for your theme to use default sidebar or a custom one(generated). The plugin is almost done(~80%) and should be ready soon. If you have any ideas or want to see a feature included I would like to hear it here[ https://github.com//issues/7 ] and I will see if I can add it. Thanks.
from smk-sidebar-generator.
Thanks. Looking forward to the update.
Regards, Eli
On Tue, Aug 6, 2013 at 4:50 PM, Andrei Surdu [email protected]:
@danielzilli https://github.com/danielzilli , @elikemhttps://github.com/elikemHello all. Working to a new version(2.0) which will include more features
and let the developer to define the sidebars for individual page very easy.
Also this will allow you to add support for your theme to use default
sidebar or a custom one(generated). The plugin is almost done(~80%) and
should be ready soon. If you have any ideas or want to see a feature
included I would like to hear it here[ #7https://github.com//issues/7] and I will see if I can add it. Thanks.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-22210224
.
from smk-sidebar-generator.
Nice to hear from you.
from smk-sidebar-generator.
https://github.com/Smartik89/Wordpress-Sidebar-Generator/tree/2.0b 2.0 Beta is available. Working to the demo theme.
@danielzilli @elikem let me know if you test it. Thank you.
from smk-sidebar-generator.
It's working nicely for me.
Thanks!
Regards, Eli
On Tue, Aug 13, 2013 at 1:37 PM, Andrei Surdu [email protected]:
https://github.com/Smartik89/Wordpress-Sidebar-Generator/tree/2.0b 2.0
Beta is available. Working to the demo theme.@danielzilli https://github.com/danielzilli @elikemhttps://github.com/elikemlet me know if you test it. Thank you.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-22583048
.
from smk-sidebar-generator.
from smk-sidebar-generator.
Related Issues (20)
- metabox on posts page
- How to get the sidebar to display when page is published HOT 3
- $page parameter in SMK_Sidebar_Metabox class
- change wp_enqueue source HOT 1
- Cannot add new sidebar after deleting all existing sidebars HOT 3
- Customizing widget output HOT 1
- Updated to 3.0 today and now sidebars don't work HOT 1
- Issue after installation HOT 1
- Fatal Error After Activating Plugin HOT 1
- Custom Post Type not work HOT 1
- Blank page when using on the latest version of wordpress HOT 7
- Sidebars disappear when clicking this combo
- Auto Generate Sidebar
- Categories
- Where are the docs? HOT 2
- Warning: Illegal string after a sidebar creed
- PHP 7.3 Error HOT 1
- [Bug] Single Post Conditions will always fail HOT 2
- [BUG] Term-Archive Sidebars not showing HOT 2
- PHP v8.x HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smk-sidebar-generator.