From 7bcff3bab65af02e418d837ee7e60d70b5cbf8e7 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 28 Oct 2015 16:42:14 -0400 Subject: [PATCH] Update for dropdown without children --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index ac6fec0..4124e8e 100644 --- a/functions.php +++ b/functions.php @@ -144,7 +144,7 @@ class Feature_Top_Bar_Walker extends Walker_Nav_Menu { if ($item_style) { $output .= $item_style; } - if ($depth == 0 && has_post_thumbnail((int)$object->object_id) && $object->has_children) { + if ($depth == 0 && has_post_thumbnail((int)$object->object_id)) { $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id((int)$object->object_id), 'bpla-drop-down'); $item_html .= ''; //$item_html .= '
' . print_r($object, true) . '
'; @@ -225,7 +225,7 @@ function glm_site_scripts() 'modernizr', get_template_directory_uri() . '/js/modernizr/modernizr.min.js' ); - + if(is_front_page()) { } -- 2.17.1