background-position: center bottom;
</style>";
- }else if( $depth !== 0 && ! has_post_thumbnail( (int)$object->object_id ) ){
+ } else if( $depth !== 0 && ! has_post_thumbnail( (int)$object->object_id ) ){
$thumbnail = get_template_directory_uri() . '/assets/is43-1401554613-28521.jpg';
$item_style .= "<style>
#menu-main #menu-item-".$object->ID.":before {
background-image: url('".$thumbnail."');
background-size: cover;
</style>";
+
+ } else if( $depth !== 0 && 1410 == $object->object_id ){
+ $thumbnail = get_template_directory_uri() . '/assets/run-mackinac.jpg';
+ $item_style .= "<style>
+ #menu-main #menu-item-".$object->ID.":before {
+ display: inline-block;
+ width: 200px;
+ height: 100px;
+ content: ' ';
+ background-image: url('".$thumbnail."');
+ background-size: cover;
+ </style>";
+
+ } else if( $depth !== 0 && 1433 == $object->object_id ){
+ $thumbnail = get_template_directory_uri() . '/assets/chicago-yacht-race.jpg';
+ $item_style .= "<style>
+ #menu-main #menu-item-".$object->ID.":before {
+ display: inline-block;
+ width: 200px;
+ height: 100px;
+ content: ' ';
+ background-image: url('".$thumbnail."');
+ background-size: cover;
+ </style>";
}
//$output .= ( 0 == $depth ) ? '<li class="divider"></li>' : '';
$classes = empty( $object->classes ) ? array() : (array) $object->classes;