Customizing right sidebar
-
I started off writing my situation down in code, but I decided to keep it simple.
Is there a way to customize (adding widgets to) the right sidebar?
I can see the Category/Archives/Meta in the Sidebar.php file and I can add my own widgets in there by using code, which works as long as the widget is present in the customizable footer area. This means a widget wont work on it’s own in the right sidebar, you need to use the widget in the footer to make it show in the right sidebar.That’s the thing, I want to be able to add widgets to the right without being forced to use the footer. Is there a way to do this?
-
Is the right sidebar widget-ready? It would have to be registered in the functions.php of your theme.
I dont think it is, the only widget ready area is the footer area (I can drag and drop widgets to this area).
I have placed the code of the fucntions.php file in here:
I would like to do the same.
sidebar.php include this friendly note:
‘<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( ! dynamic_sidebar( ‘sidebar-widget-area’ ) ) : ?>’But I’m not sure which “plugin” to “install” or how.
I spotted this note too. In the end I was actually looking for a plugin called ´widgetized sidebar´, which doesnt exist… this plugin remains a mystery.
Widgetized sidebars haven’t required a Plugin for several major versions of WordPress.
What Theme are you using?
The theme is called Beauty Dots:
http://ww.wp.xz.cn/extend/themes/beauty-dotsI see the problem.
In sidebar.php:
if ( ! dynamic_sidebar( 'sidebar-widget-area' ) ) :But the Theme doesn’t register this dynamic sidebar in functions.php; rather, it only registers the footer widget area:
register_sidebar( array( 'name' => __( 'Footer Widget Area' ), 'id' => 'footer-widget-area', 'description' => __( 'The footer widget area' ), 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '', ) );This is a bug. I would contact the developer, and request that he fix it.
Has anyone figured this out yet?
Has anyone figured this out yet?
Ummmm……..
Yes? I has anyone contact the developer for the fix?
Negative. Would be a great feature, but I needed it immediately.
The quick fix is to add the needed code. Locate the file functions.php and search for the register_sidebar, which is registering the widget for the footer area. Now underneath of this function just add:
register_sidebar( array( 'name' => __( 'Right Widget Area' ), 'id' => 'sidebar-widget-area', 'description' => __( 'The right widget area' ), 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '', ) );For more info: http://www.rufunka.com/blog/2011/04/18/add-right-side-widget-to-beauty-dots-theme-for-wordpress/
The topic ‘Customizing right sidebar’ is closed to new replies.