Изменение размеров миниатюр товара в WooCommerce

Изменение размеров миниатюр товара в WooCommerce после обновления через админ панель стало не доступно. Интерфейс настроек изображений товара предоставляет только несколько вариантов.

Настройка изображений woocommerce

 Первый вариант обрезает изображения в квадрат с пропорциями 1 к 1, второй - преобразует в заданные пропорции. Третий оставляет изображение без изменения. Все эти варианты не позволяют более тонко настроить размер изображений под требуемый дизайн. С версии woocommerce 3.6+ размер изображения можно отрегулировать фильтрами.

Для изображении товара на странице каталога или категории:

add_filter('woocommerce_get_image_size_thumbnail','add_thumbnail_size',1,10);
function add_thumbnail_size($size){
    $size['width'] = 360;
    $size['height'] = 250;
    $size['crop']   = 0; 
    return $size;
}

Для большого изображения на странице товара:

add_filter('woocommerce_get_image_size_single','add_single_size',1,10);
function add_single_size($size){
    $size['width'] = 800;
    $size['height'] = 500;
    $size['crop']   = 0;
    return $size;
}

Для миниатюр в галерее на странице товара:

add_filter('woocommerce_get_image_size_gallery_thumbnail','add_gallery_thumbnail_size',1,10);
function add_gallery_thumbnail_size($size){
    $size['width'] = 100;
    $size['height'] = 80;
    $size['crop']   = 1;
    return $size;
}

Где:

  • $size['width'] - ширина
  • $size['height'] - высота
  • $size['crop'] - 0 - не обрезать, 1 - обрезать

Код нужно вставить в файл functions.php вашей активной темы. Протестировано на версии Woocommerce 3.6.3.

Alina Laurent 30 июля, 2021

Excellent post. I was checking continuously this blog and I am impressed! I would like to share my blog about Magnetic Stud Finder. Magnetic stud detectors use magnets to locate metal in the walling material because the magnet is attracted to the metal.

Gregorymup 31 июля, 2021

100 free online dating site:
Freiberg Singles Leute Kennenlernen Goppingen Partnersuche Mattersburg - MagicNumber, 23 July
https://gobileme.blogspot.com/2021/07/dating-seiten-fur-fetisch.html

Online Dating She Said Just Looking For
Kostenlose Singleborsen Vergleich
Singles Niederlande Kostenlos

https://pronsurf.blogspot.com/2021/06/dr-nerdlove-online-dating.html

https://kimudraen.blogspot.com/2021/07/single-frauen-walsrode.html
Online dating south africa johannesburg:
I suck at online datingOnline dating responses50 first dates full movie online in hindiSave the date cards online freeFree dating sim games onlineHipster online datingFtm dating onlineFree online video dating
https://biazeranti.blogspot.com/2021/07/zitate-fur-online-dating.html

Kennenlernen Durfte Duden
Single Dates Kostenlos
Absolutely Free Online Dating Sites

Dating Seite Vertrauenswurdige
Hro Single Rostock
Single Traun

Ds Online Dating
Online Dating Trends
Kostenlose Singleborsen Deutschland

.
.

Gregorymup 31 июля, 2021

Free online dating sites:
Single Neu Anspach Online Dating Notloesung Tanzkurse Fur Singles Saarland - I met the man of my dreams on the first date I went on! Thank you :)
https://satlopiny.blogspot.com/2021/07/simulation-of-single-phase-induction.html

Online Dating Vergleich Osterreich
Flirten Hat Er Interesse
Dating Gummersbach

https://satlopiny.blogspot.com/2021/06/online-dating-poiltical-opinion.html

https://apcalelo.blogspot.com/2021/07/single-lorch.html
Alternative to online dating:
Online dating is badOnline dating experiencesProfessionals online datingSex online dating sitesPros and cons online datingMessage online dating examplesScholarship online form last dateOnline dating sites best reviews
https://rasipsiew.blogspot.com/2021/07/online-dating-is-waste-of-time.html

Dating Cafe Konstanz
Beste Kostenlose Dating Sites
Online Dating Fur Frauen Uber 50

Singlespeed Duisburg
Singles50 Online Dating I Sverige
Singlestammtisch Bamberg

Dating Seiten Fur Junge
Single Fraud Investigation Service 25
Die Erste Nachricht Eine Frau Online

.
.

Gregorymup 31 июля, 2021

Best free online dating sites:
Single Sondershausen Bekanntschaft Wien Trend Singlede Erfahrungen - AprilofTheNorth, 30th January 2016
https://kimudraen.blogspot.com/2021/07/qxp-datei-online-konvertieren.html

Single Party Pinneberg
Singles Kennenlernen Augsburg
Fahrhaus Meersburg Single Party

https://krasavana.blogspot.com/2021/06/online-dating-macht-depressiv.html

https://apsaladiso.blogspot.com/2021/07/wie-fubktioniet-online-dating-ambesten.html
How to create a online dating profile:
Online age calculator between two datesOnline dating catfish statisticsWhere can i find my court date onlineSword art online movie release date usaFree online date sites 100 freeOnline dating scams pictures of menOnline dating etiquette for menGrand canyon university online start dates
https://homfadera.blogspot.com/2021/06/online-dating-sites-matching-does-it.html

Partnersuche Monchengladbach
Singles Erfurt Umgebung
Treffen Fur Singles In Hamburg

Dianna Agron And Mark Salling Dating
Kostenlose Partnerschafts Anzeigen Im
Dating Seiten Sex

Single Manner Statistik
Partnersuche Russische Manner
Singlewohnung Siegen

.
.

hydrochloroquine 31 июля, 2021

hydroxychloroquine drug class https://plaquenilx.com/# hydroxochlorquine

Gregorymup 31 июля, 2021

Totally free online dating sites:
Single Tanning Prices Besserflirten Youtube Kostenlose Dating Sites In Germany - IndigoBlue, 20th January
https://ayponepe.blogspot.com/2021/07/the-dating-project-watch-online-free.html

Schon Dass Wir Dich Kennenlernen Durften
Harz Singles
Online Dating Und Mehr

https://apsaladiso.blogspot.com/2021/07/free-online-dating-with-free-messaging.html

https://etripovop.blogspot.com/2021/07/beste-kostenlose-dating-website.html
Negative effects of online dating essay:
Writing a good online dating profileGay men online datingBad online dating experiencesSave the date online invitations freeHilarious online dating profile examplesAadhar card status by name and date of birth onlineFree online dating brisbaneElder scrolls online release date for xbox one
https://hoftesali.blogspot.com/2021/07/frau-45-sucht-mann.html

Htm Datei In Pdf Umwandeln Online
Bulgarische Dating Seite
Alleinerziehende Singles Kiel

Whatsapp Dating Group In Ghana
Black And White Dating
Partnerschaftssuche Kostenlos

Free Dating Websites 2019
Tipps Fur Flirten Im Internet
Lovoo Kosten Manner

.
.

Gregorymup 31 июля, 2021

Best free online dating sites:
Singles Neunburg Vorm Wald Online Dating Metalheads Absolutely Free Online Dating Sites In - Jenny, 23rd May 2013
https://seilideko.blogspot.com/2021/07/partnersuche-berlin-spandau.html

Gratis Online Dating Ohne Anmeldung
Singles Vilsbiburg
Warum Bin Ich Single Test Mann

https://penodrop.blogspot.com/2021/05/online-dating-shanghai.html

https://penodrop.blogspot.com/2021/05/10-best-online-dating-sites.html
Having no luck with online dating:
Get paid to date onlineWatch the 12 dates of christmas online freeCreepy online datingBamboo online datingOnline dating flirtFirst meet date online greetBest introduction for online datingDate to milliseconds online
https://dasadeckis.blogspot.com/2021/07/gq-online-dating.html

Dating Coach Online Free
Free Online Sexual Dating Games
Pick Up Artist Online Dating Profile

How To Create Online Dating Website
Online Dating Positive Erfahrungen
Online Dating Sites Nyc

The Best Free Online Dating Sites
Single Portal Kostenlos Test
Weimar Kennenlernen

.
.

Gregorymup 31 июля, 2021

Totally free online dating sites:
Pussy Saganasty Online Dating Sim Online Dating Study Race Few Extra Single Wermelskirchen - Wombatxx, 3rd June
https://etripovop.blogspot.com/2021/07/online-dating-warteliste.html

Dating Seite Zum Kostenlosen Schreiben
Single Bobingen
Sulingen Singles

https://ayponepe.blogspot.com/2021/07/nickname-online-dating-frau.html

https://biazeranti.blogspot.com/2021/07/contra-online-dating.html
Free online dating sites free:
Charlie online datingOnline dating message tipsDate a live online english dubbedSave the date online invitations freeGreat online dating profile examplesOnline dating for smart peopleThe wedding date movie online freeOnline dating aberdeen
https://norpituhe.blogspot.com/2021/07/single-wohnung-leipzig-gohlis.html

Hot Single Ladies In Johannesburg
Free Online Lebanese Dating Sites
Allgemeine Zeitung Mainz Bekanntschaften

Frauen Kennenlernen Schreiben
Free Geeman Online Dating
Dating Welshman

Partnervermittlung Chur
Otaku Dating Online
Single Mann Nurnberg

.
.

Gregorymup 31 июля, 2021

Top free online dating sites:
[url=https://pronsurf.blogspot.com/2021/06/dating-seite-fur-landwirte.html]Dating Seite Fur Landwirte[/url] [url=https://negobepe.blogspot.com/2021/07/dating-seiten-fur-paare.html]Dating Seiten Fur Paare[/url] [url=https://kefouncars.blogspot.com/2021/06/online-dating-soll-ich-anrufen.html]Online Dating Soll Ich Anrufen[/url] - I found my match on this site; he's lovely :)
https://progecyc.blogspot.com/2021/07/ungarische-manner-flirten.html

[url=https://negobepe.blogspot.com/2021/07/gibt-es-wirklich-kostenlose-sex-dating.html]Gibt Es Wirklich Kostenlose Sex Dating[/url]
[url=https://prefnerteu.blogspot.com/2021/07/erotic-dating-seiten-nurnberg-umgebung.html]Erotic Dating Seiten Nurnberg Umgebung[/url]
[url=https://progecyc.blogspot.com/2021/06/online-dating-vollig-kostenlos.html]Online Dating Vollig Kostenlos[/url]

https://homfadera.blogspot.com/2021/06/dating-seite-fur-8-10-jahrige.html

[url=https://algosit.com/yhD5qJ][img]https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRcTzLohXRzRscfK1jVC1G7NqXWiloBHAYvisH-Q3wDJVMN7QPvozyMNN0G5ORBWBaoVzA&usqp=CAU[/img][/url]

https://apsaladiso.blogspot.com/2021/07/dating-scams-online.html
Negative effects of online dating essay:
Free online dating sites in zimbabweThe best online dating profilesFree online dating glasgowWatch dinner date onlineIndian girls online datingOnline dating screen name generatorFirefly online release dateHow to write a message online dating
https://pronsurf.blogspot.com/2021/06/dating-seite-kiffer.html

[url=https://ayponepe.blogspot.com/2021/07/parship-free-trial.html]Parship Free Trial[/url]
[url=https://chiserso.blogspot.com/2021/07/casual-dating-app.html]Casual Dating App[/url]
[url=https://kefouncars.blogspot.com/2021/06/counselling-psychologists-face-online.html]Counselling Psychologists Face Online[/url]

[url=https://progecyc.blogspot.com/2021/06/manner-verlieben-beim-online-dating.html]Manner Verlieben Beim Online Dating[/url]
[url=https://norpituhe.blogspot.com/2021/07/partnersuche-freising.html]Partnersuche Freising[/url]
[url=https://partmebe.blogspot.com/2021/07/single-wohnung-zell-am-see.html]Single Wohnung Zell Am See[/url]

[url=https://satlopiny.blogspot.com/2021/06/fremdgehen-dating-seite.html]Fremdgehen Dating Seite[/url]
[url=https://prefnerteu.blogspot.com/2021/07/styrian-goldings-single-hop.html]Styrian Goldings Single Hop[/url]
[url=https://progecyc.blogspot.com/2021/06/what-type-of-girls-are-online-dating.html]What Type Of Girls Are Online Dating[/url]

.
.

Gregorymup 31 июля, 2021

Top free online dating sites:
Forster Single Stage Reloading Press Free Dating Sites In Usa Erfolgreiches Online Dating - I found my soulmate through your site.
https://norpituhe.blogspot.com/2021/07/single-party-dortmund-bierhaus-stade.html

Online Dating Sites For Young Adults
Dating Online Free Usa
Partnervermittlung Im Internet Test

https://etripovop.blogspot.com/2021/07/online-dating-match-com.html

https://chiserso.blogspot.com/2021/07/single-wohnung-naumburg.html
How to create a online dating profile:
What to talk about on online dating sitesBest uk online dating sitesFree online dating apps for iphoneWriting profile for online dating examplesTimestamp to date online converterWhat is the release date for elder scrolls onlineOnline dating warningBlack lesbian online dating
https://rasipsiew.blogspot.com/2021/07/online-dating-statistics-age-group.html

We Provide Dating Friend Online
Kostenlose Dating Seiten 2020
Online Dating Nit Auslander Ttrffen

Online Dating 2014
Russian Brides Online Dating Site
Marktwachter Online Dating

Chinadate
Eltern Des Freundes Kennenlernen Tipps

.
.

Gregorymup 31 июля, 2021

Free online dating:
[url=https://pinpongsa.blogspot.com/2021/07/xpress-dating-rostock.html]Xpress Dating Rostock[/url] [url=https://partmebe.blogspot.com/2021/07/dresden-single-bar.html]Dresden Single Bar[/url] [url=https://psaladiso.blogspot.com/2021/07/3sat-online-dating.html]3sat Online Dating[/url] - We want to say a big thank you, Guardian Soulmates, for giving us the chance to meet. 'gentle_giant' noticed me because the name 'GreekChinese' caught his eye. After several sparsely timed messages back and forth where he wrote at length about where to get the best feta cheese in London, he finally asked me out. We met up for the first time on 6 August 2009 for a cinnamon bun and a walk through a gallery. On 6 August 2011, we married. We now live in Athens where there is plenty of great feta everywhere, but singles aren't so lucky as to have Guardian Soulmates as an option. Thanks again.
https://pinpongsa.blogspot.com/2021/07/single-offenburg.html

[url=https://pronsurf.blogspot.com/2021/06/good-looking-loser-online-dating.html]Good Looking Loser Online Dating[/url]
[url=https://partmebe.blogspot.com/2021/07/sue-jungs-die-single-sind.html]Sue Jungs Die Single Sind[/url]
[url=https://ogrotitba.blogspot.com/2021/07/single-manner-frankfurt-am-main.html]Single Manner Frankfurt Am Main[/url]

https://apcalelo.blogspot.com/2021/07/bekanntschaften-in-wien.html

[url=https://algosit.com/yhD5qJ][img]https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQYsbCCntiRYJ0bqUNXr97ne-ZZwR-AWtyGH9SbfwtF_koAJymNNvkL0Ukyj8wDfkLrLq0&usqp=CAU[/img][/url]

https://rocorontea.blogspot.com/2021/07/online-dating-etiquette-2017.html
Online dating south africa johannesburg:
How do i find my divorce date online for freeWhat is a good opening line for online datingWatch up to date movies online freePhilippine single online datingGreat first emails for online datingConvert long to date onlineOnline dating for older adultsOnline dating older women
https://marnalan.blogspot.com/2021/07/partnervermittlung-duesseldorf.html

[url=https://psaladiso.blogspot.com/2021/07/online-dating-20.html]Online Dating 20[/url]
[url=https://kiochanda.blogspot.com/2021/07/online-dating-zeitverschwendung.html]Online Dating Zeitverschwendung[/url]
[url=https://rocorontea.blogspot.com/2021/07/kostenlose-sex-dating-borsen.html]Kostenlose Sex Dating Borsen[/url]

[url=https://psaladiso.blogspot.com/2021/07/free-online-dating-websites-in-sweden.html]Free Online Dating Websites In Sweden[/url]
[url=https://salasina.blogspot.com/2021/07/speed-dating-chat-online.html]Speed Dating Chat Online[/url]
[url=https://gobileme.blogspot.com/2021/07/beste-kostenlose-dating-apps-fur-lesben.html]Beste Kostenlose Dating Apps Fur Lesben[/url]

[url=https://pinpongsa.blogspot.com/2021/07/partnervermittlung-be-two.html]Partnervermittlung Be Two[/url]
[url=https://gobileme.blogspot.com/2021/07/single-kochkurs-bruchsal.html]Single Kochkurs Bruchsal[/url]
[url=https://apcalelo.blogspot.com/2021/07/zeitung-munchen-bekanntschaften.html]Zeitung Munchen Bekanntschaften[/url]

.
.

Оставить комментарий

Этот вопрос задается для того, чтобы выяснить, являетесь ли Вы человеком или представляете из себя автоматическую спам-рассылку.

Похожие материалы