Forums

[Plugin: Event Calendar 3] EC3 Widget locates too close to menu (1 post)

  1. Dr C
    Member
    Posted 4 months ago #

    There's something weird about how the EC3 widget displays in the sidebar - it locates itself right underneath the previous widget. In the right sidebar this is not a problem as I can insert a text widget with <br /> in it. I'd like to try it in my left sidebar though, but it locates directly under the menu, unlike the standard WP calendar widget.

    Using firebug to see the differences between EC3 and WP calendar widgets, EC3 does not echo a blank "<h2> </h2>" tag before the calendar. The default WP calendar widget does. Looking at the PHP for the default one:

    echo $before_widget;
    if ( $title )
        echo $before_title . $title . $after_title;
    echo '<div id="calendar_wrap">';
    get_calendar();
    echo '</div>';
    echo $after_widget;

    And the code for EC3:

    echo $before_widget . $before_title;
    echo ec3_widget_title($options['title'],'Event Calendar');
    echo $after_title;
    ec3_get_calendar();
    echo $after_widget;

    I can't see the (substantive) difference - unless EC3 isn't picking up the $before_widget variable??

    Thanks for a cool plugin and any help you can offer!

Reply

You must log in to post.

About this Topic