The register-sidebar tag has no wiki summary.
-3
votes
0answers
15 views
.textwidget div has ridiculous width for some reason [closed]
I have custom made sidebars, and tried testing them, however main sidebar (on the right) doesn't look like it should do, I assume this is because .textwidget div generated by wordpres has width of ...
0
votes
0answers
31 views
Where/how does optimizepress declare the sidebars? [closed]
I am trying to produce a customised front page for a site using the Optimizepress theme. I want to add some widgetised areas to a page to be used as the home page. I picked one of their templates so ...
1
vote
1answer
35 views
How to increase maximum number of sidebars support?
How can i use more than 20 sidebars in wordpress. I'm working on a big information portal, and I need big amaunt of sidebars (about 40, I guess).
So I have 20 sidebars now and when I add one more it ...
0
votes
2answers
43 views
Add #sidebar-2 to a custom page template
I registered a few custom sidebars, and the corresponding code in my version of TwentyTwelve theme now looks like this:
register_sidebar( array(
'name' => __( 'Sidebar #1', 'twentytwelve' ...
0
votes
2answers
35 views
Hooking Into Widget Output Loop
When wordpress sidebar outputs any particular registered sidebar it loop through all widgets that assigned through it and outputs it (i guess). Is is possible to hook into the loop and add some ...
0
votes
1answer
26 views
Custom sidebar not showing in the dashboard
I am trying to create a new sidebar. For that I have used the following code:
In functions.php
if ( function_exists('register_sidebar') )
register_sidebar();
if ( function_exists ...
0
votes
0answers
23 views
Copy Widget Settings because of changed IDs
I want to update a customers blog to a child theme that is based on a newer version of the actual deployed theme. My problem is, the developers of the theme changed the IDs of sidebars. In the old ...
2
votes
0answers
82 views
Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
I am registering sidebars and sidebar widgets.
The theme currently supports two sidebars. Primary and Secondary.
add_action('widgets_init', array($this, 'add_sidebars'), 10, 2);
public function ...
0
votes
1answer
38 views
How to troubleshoot Sidebar not being generated
I'm building a custom theme. My sidebar is not being generated at all.
In functions.php, I have:
if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'name' => ...
0
votes
3answers
118 views
Showing sidebar-2 on custom template page
Environment: WP 3.5, Twenty Twelve child theme. I created a custom template.
Now, I'd like to display the built-in sidebar-2 in this custom template page (instead of the default sidebar-1).
sidebar-2 ...
1
vote
1answer
81 views
Custom page sidebar using Template dropdown box
i am wondering how i go about making a Template for some of my pages to use a different sidebar? I have created the widget like this:
register_sidebar(array(
'id' => 'ourPat-sidebar',
...
2
votes
1answer
41 views
duplicate sidebar
I have a problem with a sidebar. I have 4 sidebars: "Essential", "Essential+", "Premier" and "Premier+".
register_sidebar(
array(
'name' => __('Essential Plan'),
...
0
votes
2answers
34 views
finding sidebar content in wordpress
Hey all i have been trying to find the content that loads up for a page for a few days now and can not seem to find where its located.
This is the WP code that seems to populate the content:
if ( ...
1
vote
3answers
261 views
Wordpress widget/sidebar dividers?
I have a widget sidebar, but I'd like dividers between them. I can achieve this in CSS using boring borders, but I have a png image I'd rather use instead.
Is there a way to insert a divider after ...
0
votes
1answer
158 views
Register/Get sidebar?
I can't quite seem to figure out how it works.
By default i have a sidebar in sidebar.php that i load using get_sidebar();. That works great (no need to register it), but i have a custom page ...
5
votes
2answers
2k views
what is allowed as an id argument in register_sidebar( $args )
I am want to register a sidebar but i am a little confused about the uses of the id argument in register_sidebar function.
Codex says: id - Sidebar id - Must be all in lowercase, with no spaces
...
0
votes
2answers
193 views
What are ideal hooks to call register_sidebars?
Where should a plugin ideally hook to call register_sidebar();?
Will init do just fine?
function my_plugin_register_sidebars() {
$args = array(
'name' => 'foo'
'description' ...
0
votes
1answer
310 views
register_sidebar ignores 'id' and 'class'
I am using the following to register a widget area:
if ( function_exists('register_sidebar') )
register_sidebar( array(
'name' => __( 'Footer Widgets', 'hex'),
'id' => ...
0
votes
1answer
57 views
An issue with register_sidebar and the admin interface
Okay, I'm sure there is an simple explanation for this problem... it's just that I can't see it right now.
Here is my code adding widget sidebars:
add_action('widgets_init', ...
0
votes
2answers
166 views
Creating a different side bar for single posts than for main page.
How can I create a different side bar for single posts than for main page?
At the moment I have 2 working one for pages and one for the blog
thanks
this is how it looks in funtions.php
// Register ...
4
votes
2answers
533 views
Get sidebar parameters (before_widget, before_title, etc.) from within a widget
Is it possible to dynamically get sidebar parameters from within a widget? That is, I am trying to access the before_widget/after_widget/before_title/after_title/name parameters of the containing ...
0
votes
1answer
168 views
Widget not saving to sidebar area [closed]
I am still learning WordPress while in the process of creating a new theme for myself. On the homepage, I want to display two widgets in the main content area. I have set up two sidebars (Homepage A ...
2
votes
1answer
336 views
Best practices: Custom theme sidebar menu - hardcode or widget?
Is it best to hardcode a sidebar menu using functions.php or sidebar.php OR use the custom menu widget? Are there times when each is appropriate?
0
votes
2answers
62 views
Registering Sidebar. Additional banners got displayed
I need to register a test sidebar and have to include it on a specific page. On registering sidebar as
register_sidebar(array('name' => 'ABC'));
Additional banners get displayed on all pages. ...
1
vote
2answers
1k views
How to wrap the widget content with a div or get the widget title outside?
Is there a way to get the widget title outside of the widget area like this:
<ul>
<li>
<h2 class="widgettitle">The title here</h2>
<div class=""widget>
...
0
votes
1answer
142 views
Move wordpress sidebar on homepage up to new position
This should be a simple task, however I am having no such luck. I am using a theme that has a homepage slider which spans across the entire content area. I have been asked to reduce the size of the ...
0
votes
2answers
291 views
Toggle option in sidebar widgets
I would like to use toggle option in my sidebar widgets. But my sidebar widgets not generating unique id.
This is my register sidebar code.
register_sidebar(array(
'name' => 'Main ...
0
votes
1answer
237 views
Unique widget id in sidebar
This is my sidebar code
register_sidebar(array(
'name' => 'Post Sidebar',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => ...
0
votes
1answer
197 views
Sidebar widget not displaying after simple code update.
I registered a sidebar widget, then modified the registration which included changing the registered name of the widget. Now the widget does not show at all. Below are the steps I took.
I registered ...
0
votes
1answer
353 views
Register sidebar 'before' and 'after' html as div rather than li tags
I am making sidebars for my theme using the register sidebar function. The codex does it something like this
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Right ...
0
votes
1answer
146 views
How to customize wordpress sidebar widget
This is how i registered my sidebar:
register_sidebar(array(
'name' => 'Post Sidebar',
'before_widget' => '<div class="widgetdiv"><div id="%1$s" class="widget ...
2
votes
2answers
388 views
Widgets not expanding on wordpress 3.3 widget dashbord
I updated to WordPress 3.3 (manual update) and cleaned browser cache.
Widgets dashbord stop working when tring to expand dynamic sidebars for custom theme when it works for previous wordpress 3.2 ...
0
votes
1answer
131 views
Why is registering a sidebar for each page causing my sidebars to reset?
I have the following code in my functions.php
if ( function_exists('register_sidebars') ){
$pages=get_pages();
foreach($pages as $page){
...
0
votes
1answer
174 views
activate custom sidebar widgets
Hey guys I'm trying to activate a sidebar for wp widgets.
So my HTML looks like this:
<aside id="leftSidebar">
<section>
<h3></h3>
<div ...
1
vote
2answers
393 views
how do I get a sidebar's id or number for use with is_active_sidebar()
From the codex
is_active_sidebar( $index ); ?>
Parameters
$index
(mixed) (required) Sidebar name, id or number.
When i try any of my sidebar names it doesnt work; yet when I put in random ...
1
vote
1answer
610 views
dynamic_sidebar not rendering sidebar
I have the following code
// in functions.php
register_sidebar(array(
'before_widget' => '<section>',
'after_widget' => '</section>',
'before_title' => '<h3>',
...
1
vote
2answers
159 views
adding multiple sidebars on pages
I am using twentyten theme and I want there to be two sidebars on my page - one on the left and the second on the right.
Can any one tell me how to do that?
0
votes
1answer
112 views
Why is my custom sidebar always open on the widgets screen in Admin?
I've created a custom sidebar with this code in my theme's functions.php:
register_sidebar(array(
'name' => __('Article - Below Content'),
'id' => 'zg-article-footer',
...
2
votes
1answer
441 views
More flexible sidebar and widget management
I’d like to have a plugin for a flexible sidebar/widget management. In fact, I want to give a user the possibility to choose which sidebar should be displayed per page/post.
I know there are many ...
0
votes
1answer
281 views
Custom sidebars - get_sidebar() problems
I want to have different sidebars on different pages.
So firstly I registered a few basic sidebars in functions.php. So they will be always there no matter where I move my theme. Let's name them ...
6
votes
2answers
2k views
List all sidebar names?
I'm listing all sidebars like that:
global $wp_registered_sidebars;
echo '<pre>';
print_r($wp_registered_sidebars);
echo '</pre>'
So I'm getting something like:
Array
(
...
0
votes
1answer
721 views
Sidebar Generator? :)
I'm tired of editing functions.php every time I want to add/remove a sidebar.
I know there is Sidebar Generator plugin, but I wanted to develop something on my own that will work out of the box ...
0
votes
1answer
421 views
Add SideBar/Widgets Just Below the Post
I have created and registered side bar in function.php and using it another place. It's working fine. Now I like to use it just below the post. I have installed some plugins -Bookmarks, related ...
0
votes
1answer
965 views
Content not showing up when using custom template + sidebar
I am working on a user dashboard for my site using wp user front end and Mingle. I decided the best way to integrate this is by creating a custom sidebar and using that in a new template, which I did. ...
3
votes
1answer
1k views
Get list of all registered sidebars
I am registering sidebars automatically for each category (a separate widget space per category). The technique I'm using is here.
In the admin side I have an options page where I need to display a ...
0
votes
1answer
762 views
How to register_sidebar() without messing up the order?
How do you register a sidebar in a plugin without screwing up the pre-existing registered sidebars? (The ordering of the sidebar registrations, rather than the assigned ID, determines the sidebar ...
