add_image_size('glm_block1_2', 511, 338, false);
add_image_size('glm_block3_4', 346, 338, false);
+add_image_size('dropdown', 434, 136, false);
/**
// Insert style to display page's thumbnail
$item_style = '';
if ($depth == 0 && has_post_thumbnail((int)$object->object_id)) {
- $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id((int)$object->object_id), 'large');
+ $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id((int)$object->object_id), 'dropdown');
$item_style .= "<style>#menu-item-".$object->ID." > .dropdown:before { background-image: url('".$thumbnail[0]."');max-width:434px;</style>";
}
//$output .= ( 0 == $depth ) ? '<li class="divider"></li>' : '';