$item_style = '';
// echo "<pre>", print_r($object), "</pre>";
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 ), 'medium' );
$item_style .= "<style>
#menu-item-".$object->ID.":before {
} else if( $depth !== 0 && $object->type == "taxonomy") {
- $thumbnail = z_taxonomy_image_url( (int)$object->object_id );
+ $thumbnail = z_taxonomy_image_url( (int)$object->object_id, 'medium' );
$item_style .= "<style>
#menu-item-".$object->ID.":before {