• Resolved matta524

    (@matta524)


    Hi,

    I previously posted in this topic:

    http://wordpress.org/support/topic/customise-css-for-widget?replies=6

    I later answered my own question on how to add a little calendar button (a link attached to a small calendar icon) before the title on the widget. When I ran the latest update, it took this out (I forgot that I made the modification). At any rate, I went to add it back in, but now the code in em-events.php has changed. Previously the section to apply the modification was:

    /** @see WP_Widget::widget */
    function widget($args, $instance) {
    $instance = array_merge($this->defaults, $instance);
    $instance = $this->fix_scope($instance); // depcreciate
    echo $args['before_widget'];
    echo $args['before_title'];
    echo "a"; /** test **/
    echo $instance['title'];
    echo $args['after_title'];
    $instance['owner'] = false;

    Can you tell me where this has shifted to? echo “a” was a test that i performed to ensure it would appear before the event title.

    Thanks so much.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Events Manager] Adding calendar button to widget’ is closed to new replies.