WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Event Organiser] Widget Size Question

[Resolved] [Plugin: Event Organiser] Widget Size Question

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,
    Glad you like the plug-in :). This is just a theme-styling problem. Try adding

    .eo-calendar table{
           width:100%;
         }

    to your theme’s style.css file.

    If the widget wasn’t navigating properly this is probably due to the theme not allowing the plug-in to add its own classes to the widget. (These classes are needed for the javascript to listen for the next/prev clicks and change the calendar accordingly).

    Somewhere in your functions.php your theme will make use of register_sidebar. It should look something like:

    register_sidebar(array(
      'name' => __( 'Side bar name' ),
      'id' => 'sidebar-id',
      'description' => __( 'Widget area description' ),
      'before_title' => '<h1>',
      'after_title' => '</h1>',
      'before_widget' => '<div id="%1$s" class="widget %2$s">',
      'after_widget' => '</div>',
    ));

    The %1$s and %2$s in the before_widget argumentBallow the widget to add their own ID and classes to the widget. Your theme probably does not use class=”widget %2$s”. If you add this in – that should fix the problem.

    All the best,
    Stephen

    Hi Stephen,

    Thanks for the style code – worked like a charm. And, for whatever reason, the script works now too. The theme I use (U-Design) already did have the proper coding.

    Thanks much for the quick response. Best I’ve ever had from any plugin developer!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Event Organiser] Widget Size Question’ is closed to new replies.