Support

Home Forums Event Espresso Premium Changing the output of the Upcoming Events widget

Changing the output of the Upcoming Events widget

Posted: November 2, 2013 at 5:03 pm

Viewing 2 reply threads


Angela Haddon

    November 2, 2013 at 5:03 pm

    Hi, I’d like to wrap 3 recent events (in the Upcoming Events widget) in a div for styling purposes; I don’t want the event title to be included. I’ve been playing around with the widget.php file and can only wrap each individual event; is there a way to do what I’m after? Thanks for your help!


    Dean

    • Support Staff

    November 4, 2013 at 1:59 am

    Hi Angela,

    In the widgets.php look for the $before_widget and $after_widget variables. These are set by the theme, but output before and after the widget, unsurprisingly enough.

    You could set these variables in the template to modify the output. E.g.

    /* Before widget (defined by themes). */
    $before_widget = "<div>";
    echo $before_widget;


    Angela Haddon

      November 4, 2013 at 2:23 pm

      Funnily enough, that worked perfectly ;) I just had to shift a few things around and it did the trick…thanks Dean!

      Viewing 2 reply threads

      The support post ‘Changing the output of the Upcoming Events widget’ is closed to new replies.

      Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

      Event Espresso - Staging Server