Wrap an item in a div
-
Hi,
When inspecting the generated code from the widget every Meetup item or event consists of 3 divs with the classes wpm-date-display, widget-meetup-event-list-day, and clear.Can you please wrap these in 1 div so it is easier to apply styling?
Something like this:
$output .= '<div class="wpm-item">'; $output .= '<div class="wpm-date-display group' . $event->group_id . '">'; $output .= date( 'M',$event->event_time); $output .= '<br />'; $output .= date( 'j',$event->event_time); $output .= '</div>'; $output .= '<div class="widget-meetup-event-list-day">'; $output .= '<a href="' . $url . '">'; $output .= '<div class="wpm-single">'; $output .= '<strong>' . $event_raw->group->name . '</strong> - ' . $event_raw->name; $output .= '</div></a></div>'; $output .= '<div class="clear"></div>'; $output .= '</div>';
- The topic ‘Wrap an item in a div’ is closed to new replies.