From 957b3a47168f052dc8f8a57d0da49fe73fff0e36 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 13 Nov 2015 16:56:21 -0500 Subject: [PATCH] removed hover effect from front page products --- inc/structure/structure.php | 2 +- js/galleria.min.js | 4 +++- style.css | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/inc/structure/structure.php b/inc/structure/structure.php index 76968d1..d86dd33 100644 --- a/inc/structure/structure.php +++ b/inc/structure/structure.php @@ -50,7 +50,7 @@ function g_layout_adjustments() { * @return void */ function g_product_loop_title_price_wrap() { - echo '
'; + echo '
'; } /** diff --git a/js/galleria.min.js b/js/galleria.min.js index 8a9378b..8199ff5 100644 --- a/js/galleria.min.js +++ b/js/galleria.min.js @@ -1 +1,3 @@ -!function(){jQuery(window).load(function(){jQuery("body").addClass("loaded"),jQuery(".site").addClass("animated fadeIn"),jQuery(".single_add_to_cart_button, .checkout-button").addClass("animated bounce");var t=jQuery(".star-rating > span").width();jQuery(".woocommerce-product-rating .star-rating > span").css("width",0),jQuery(".woocommerce-product-rating .star-rating > span").animate({width:t},1500,function(){}),jQuery(".woocommerce-tabs ul.tabs li a").click(function(){var t=jQuery(this).attr("href");jQuery(".woocommerce-tabs").find(t).addClass("animated bounceInUp")}),jQuery(window).width()>767&&(jQuery("body").hasClass("page-template-template-homepage")||jQuery("body").hasClass("storefront-full-width-content")||jQuery("body").hasClass("page-template-template-fullwidth-php")||jQuery("body").hasClass("single-product")||jQuery("ul.products").masonry({columnWidth:"li.product",itemSelector:"li.product",percentPosition:!0}),jQuery("ul.products li.product:not(.product-category)").hover(function(){jQuery(this).find(".g-product-title").addClass("animated fadeIn"),jQuery(this).find(".button").addClass("animated bounceIn")},function(){jQuery(this).find(".g-product-title").removeClass("fadeIn"),jQuery(this).find(".button").removeClass("bounceIn")}),jQuery("ul.products li.product .button").each(function(){var t=jQuery(this),e=t.outerHeight(),r=t.outerWidth();t.css("margin-top",-e/2).css("margin-left",-r/2)}),jQuery("ul.products li.product-category .g-product-title").each(function(){var t=jQuery(this),e=t.outerHeight(),r=t.outerWidth();t.css("margin-top",-e/2).css("margin-left",-r/2)}))})}(); \ No newline at end of file +!function(){jQuery(window).load(function(){ + jQuery('.page_item.page-item-16').append("
  • test
  • test
  • test
  • test
"); + jQuery("body").addClass("loaded"),jQuery(".site").addClass("animated fadeIn"),jQuery(".single_add_to_cart_button, .checkout-button").addClass("animated bounce");var t=jQuery(".star-rating > span").width();jQuery(".woocommerce-product-rating .star-rating > span").css("width",0),jQuery(".woocommerce-product-rating .star-rating > span").animate({width:t},1500,function(){}),jQuery(".woocommerce-tabs ul.tabs li a").click(function(){var t=jQuery(this).attr("href");jQuery(".woocommerce-tabs").find(t).addClass("animated bounceInUp")}),jQuery(window).width()>767&&(jQuery("body").hasClass("page-template-template-homepage")||jQuery("body").hasClass("storefront-full-width-content")||jQuery("body").hasClass("page-template-template-fullwidth-php")||jQuery("body").hasClass("single-product")||jQuery("ul.products").masonry({columnWidth:"li.product",itemSelector:"li.product",percentPosition:!0})/*,jQuery("ul.products li.product:not(.product-category)").hover(function(){jQuery(this).find(".g-product-title").addClass("animated fadeIn"),jQuery(this).find(".button").addClass("animated bounceIn")},function(){jQuery(this).find(".g-product-title").removeClass("fadeIn"),jQuery(this).find(".button").removeClass("bounceIn")})*/,jQuery("ul.products li.product .button").each(function(){var t=jQuery(this),e=t.outerHeight(),r=t.outerWidth();t.css("margin-top",-e/2).css("margin-left",-r/2)}),jQuery("ul.products li.product-category .g-product-title").each(function(){var t=jQuery(this),e=t.outerHeight(),r=t.outerWidth();t.css("margin-top",-e/2).css("margin-left",-r/2)}))})}(); \ No newline at end of file diff --git a/style.css b/style.css index 8805fdd..b572bbb 100644 --- a/style.css +++ b/style.css @@ -1122,6 +1122,10 @@ p.stars a { .storefront-full-width-content.single-product .upsells ul.products li.product { width: 25%; } + .page_item.page-item-16:hover, .page_item.page-item-16 a:hover{ + background: black; + color: white; + } .main-navigation { position: relative; } .main-navigation ul.menu > li:first-child:before, -- 2.17.1