Woocommerce update - a problem with thumbnails

eCommerce WordPress theme to create online shop with WooCommerce support
GK User
Sat Apr 08, 2017 8:41 am
Hello, after updating the WoMCommerce stopped showing thumbnail images on the product pages where to find the problem? I do not know if it has any relation but the status of the system goes to outdated template files.
Image
Image
User avatar
Senior Boarder

Joshua M
Sun Apr 09, 2017 8:22 pm
Hi,
The lightbox gallery was removed in WooCommerce 3.0. We know about the issue and we'll update our themes as soon as possible.
User avatar
Moderator

GK User
Tue Apr 11, 2017 8:44 am
I understand, so long to abstain from the woocommerce update? When do you expect an update?
User avatar
Senior Boarder

Joshua M
Tue Apr 11, 2017 8:53 am
It depends on other issues, but as a temporary solution - you can add the following code into your gavern/base.php file:
Code: Select all
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );

after this line:
Code: Select all
add_theme_support( 'woocommerce' );

Then, please add the following custom css code:
Code: Select all
.woocommerce-product-gallery {
position: relative;
margin-bottom: 3em
}

.woocommerce-product-gallery figure {
margin: 0
}

.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2) {
width: 25%;
display: inline-block
}

.woocommerce-product-gallery .flex-control-thumbs li {
list-style: none;
float: left;
cursor: pointer
}

.woocommerce-product-gallery .flex-control-thumbs img {
opacity: .5
}

.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover {
opacity: 1
}

.woocommerce-product-gallery img {
display: block
}

.woocommerce-product-gallery--columns-3 .flex-control-thumbs li {
width: 33.3333%
}

.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
width: 25%
}

.woocommerce-product-gallery--columns-5 .flex-control-thumbs li {
width: 20%
}

.woocommerce-product-gallery__trigger {
position: absolute;
top: 1em;
right: 1em;
z-index: 99;
}

a.woocommerce-product-gallery__trigger {
text-decoration: none;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
position: absolute;
top: .875em;
right: .875em;
display: block;
height: 2em;
width: 2em;
border-radius: 3px;
z-index: 99;
text-align: center;
text-indent: -999px;
overflow: hidden;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
background-color: #169fda;
color: #ffffff;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
background-color: #1781ae;
border-color: #1781ae;
color: #ffffff;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:before {
font: normal normal normal 1em/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
display: block;
content: "\f00e";
line-height: 2;
text-indent: 0;
}
User avatar
Moderator

GK User
Thu Apr 20, 2017 9:30 am
Joshua M wrote:Hi,
The lightbox gallery was removed in WooCommerce 3.0. We know about the issue and we'll update our themes as soon as possible.


Hi, meanwhile have you finished the update of InStyle? Please be so kind to let us know,
Thanks a lot,

Balazs
User avatar
Senior Boarder

GK User
Fri Apr 21, 2017 1:50 pm
Hi,

We tried to use your temporary solution (codes) but the result is quite ugly;
http://karmatech.hu/shop/nussbaum-smart-lift-2-40-sl/

Is it possible to organise the thumbnail photos horizontally and not vertically?

Thx a lot, and we are waiting for the final solution (update)

Balazs
User avatar
Senior Boarder

Joshua M
Sat Apr 22, 2017 3:44 pm
Hi,
You didn't add the following custom css code:
Code: Select all
.woocommerce-product-gallery {
position: relative;
margin-bottom: 3em
}

.woocommerce-product-gallery figure {
margin: 0
}

.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2) {
width: 25%;
display: inline-block
}

.woocommerce-product-gallery .flex-control-thumbs li {
list-style: none;
float: left;
cursor: pointer
}

.woocommerce-product-gallery .flex-control-thumbs img {
opacity: .5
}

.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover {
opacity: 1
}

.woocommerce-product-gallery img {
display: block
}

.woocommerce-product-gallery--columns-3 .flex-control-thumbs li {
width: 33.3333%
}

.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
width: 25%
}

.woocommerce-product-gallery--columns-5 .flex-control-thumbs li {
width: 20%
}

.woocommerce-product-gallery__trigger {
position: absolute;
top: 1em;
right: 1em;
z-index: 99;
}

a.woocommerce-product-gallery__trigger {
text-decoration: none;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
position: absolute;
top: .875em;
right: .875em;
display: block;
height: 2em;
width: 2em;
border-radius: 3px;
z-index: 99;
text-align: center;
text-indent: -999px;
overflow: hidden;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
background-color: #169fda;
color: #ffffff;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
background-color: #1781ae;
border-color: #1781ae;
color: #ffffff;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:before {
font: normal normal normal 1em/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
display: block;
content: "\f00e";
line-height: 2;
text-indent: 0;
}
User avatar
Moderator

GK User
Sat Apr 22, 2017 7:23 pm
Hi Joshua,

I schoud add that code to override.css? Pls let us know where and how can I use the code you suggested.

thanks a lot!
User avatar
Senior Boarder

Joshua M
Mon Apr 24, 2017 1:33 pm
Yes, you can add this code into override.css file.
User avatar
Moderator

GK User
Mon Apr 24, 2017 5:00 pm
Hi, we originally add the code to the override.css but nothing has changed....maybe it is a syntax error?

One more note regarding new WC issue;
- if the product is a "promotional product" (there is list price and promo price) the "promo" figure is overlaying the "magnifying glass" figure so it is impossible to click to loupe.
Please try to click to magnifying glass:
http://karmatech.hu/shop/nussbaum-smart-lift-2-35-sl/

Thanks a lot, Balazs
User avatar
Senior Boarder

Joshua M
Tue Apr 25, 2017 10:19 am
Hi,
Did you enable override.css file from Template Options -> Advanced tab? It looks like css code from this file is not loaded.
User avatar
Moderator

GK User
Tue Apr 25, 2017 1:32 pm
Hi,
override.css is enabled in tempalte options.
It is our override.css - is it correct?

/**
*
* -------------------------------------------
* Override
* -------------------------------------------
*
**/

/*
*
* 16. Override
*
*
------------------------------------ */

/* 16.1. Overrided elements
==================================== */
.gk-is-wrapper-gk-instyle .figcaption h3 {
line-height: 70px;
}
.gk-banner > h2 {
line-height: 90px;
}
.gk-banner > h2 {
font-size: 40px;
}
.gk-is-wrapper-gk-instyle .figcaption h3 {
font-size: 55px;
}
.price del .amount {
font-size: 18px;
}
.price .amount {
font-size: 20px;
}
.archive .price .amount {
font-size: 16px;
}
ul.products li.product {
width: 25%!important;
}
@media (max-width: 580px) {
ul.products li.product {
width: 100%!important;
}
.woocommerce-product-gallery {
position: relative;
margin-bottom: 3em
}

.woocommerce-product-gallery figure {
margin: 0
}

.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2) {
width: 25%;
display: inline-block
}

.woocommerce-product-gallery .flex-control-thumbs li {
list-style: none;
float: left;
cursor: pointer
}

.woocommerce-product-gallery .flex-control-thumbs img {
opacity: .5
}

.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover {
opacity: 1
}

.woocommerce-product-gallery img {
display: block
}

.woocommerce-product-gallery--columns-3 .flex-control-thumbs li {
width: 33.3333%
}

.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
width: 25%
}

.woocommerce-product-gallery--columns-5 .flex-control-thumbs li {
width: 20%
}

.woocommerce-product-gallery__trigger {
position: absolute;
top: 1em;
right: 1em;
z-index: 99;
}

a.woocommerce-product-gallery__trigger {
text-decoration: none;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
position: absolute;
top: .875em;
right: .875em;
display: block;
height: 2em;
width: 2em;
border-radius: 3px;
z-index: 99;
text-align: center;
text-indent: -999px;
overflow: hidden;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
background-color: #169fda;
color: #ffffff;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
background-color: #1781ae;
border-color: #1781ae;
color: #ffffff;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:before {
font: normal normal normal 1em/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
display: block;
content: "\f00e";
line-height: 2;
text-indent: 0;
}
}
User avatar
Senior Boarder

Joshua M
Wed Apr 26, 2017 10:18 am
It's not correct, it should be:
Code: Select all
/**
 *
 * -------------------------------------------
 * Override
 * -------------------------------------------
 *
 **/

/*
 *
 * 16. Override
 *
 *
------------------------------------ */

/* 16.1. Overrided elements
==================================== */
.gk-is-wrapper-gk-instyle .figcaption h3 {
   line-height: 70px;
}
.gk-banner > h2 {
   line-height: 90px;
}
.gk-banner > h2 {
   font-size: 40px;
}
.gk-is-wrapper-gk-instyle .figcaption h3 {
   font-size: 55px;
}
.price del .amount {
font-size: 18px;
}
.price .amount {
font-size: 20px;
}
.archive .price .amount {
  font-size: 16px;
}
ul.products li.product {
   width: 25%!important;
}
@media (max-width: 580px) {
ul.products li.product {
   width: 100%!important;
}
}

.woocommerce-product-gallery {
position: relative;
margin-bottom: 3em
}

.woocommerce-product-gallery figure {
margin: 0
}

.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2) {
width: 25%;
display: inline-block
}

.woocommerce-product-gallery .flex-control-thumbs li {
list-style: none;
float: left;
cursor: pointer
}

.woocommerce-product-gallery .flex-control-thumbs img {
opacity: .5
}

.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover {
opacity: 1
}

.woocommerce-product-gallery img {
display: block
}

.woocommerce-product-gallery--columns-3 .flex-control-thumbs li {
width: 33.3333%
}

.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
width: 25%
}

.woocommerce-product-gallery--columns-5 .flex-control-thumbs li {
width: 20%
}

.woocommerce-product-gallery__trigger {
position: absolute;
top: 1em;
right: 1em;
z-index: 99;
}

a.woocommerce-product-gallery__trigger {
text-decoration: none;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
position: absolute;
top: .875em;
right: .875em;
display: block;
height: 2em;
width: 2em;
border-radius: 3px;
z-index: 99;
text-align: center;
text-indent: -999px;
overflow: hidden;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
background-color: #169fda;
color: #ffffff;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
background-color: #1781ae;
border-color: #1781ae;
color: #ffffff;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:before {
font: normal normal normal 1em/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
display: block;
content: "\f00e";
line-height: 2;
text-indent: 0;
}

User avatar
Moderator

GK User
Wed Apr 26, 2017 2:43 pm
Thanks a lot, it is working well
User avatar
Senior Boarder

GK User
Thu May 04, 2017 11:01 am
Hello, I would like to ask when can you expect a template update? Thank you for the reply and best regards.
User avatar
Senior Boarder

Joshua M
Fri May 05, 2017 8:12 am
Hi,
Updates should be available next week.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.