Forum Replies Created
-
AuthorPosts
-
ok, glad to hear that, because up to now freelancers I asked tell me that it is impossible. Seems they are not uptodate or capable ;-)
Hi Basils, as explained: with the previous theme I used ACF to display the cat / tag description in 2 parts, first part at the default place between headline and archive content, second part between the end of archive content and the page footer. And: only on the first archive pages, not the following ones.
But after relaunch with Enfold I recognized that ACF did not work anymore. So, I used a the above short code for AV Toggle, placed directly into the cat / tag description. But this toggle only allowes accordeon mode, which hides most part of the cat / tag description permanently. This is not what I really need.
best regards, joergPS: Since using Enfold it is not possible any more to display the category description by an ACF, as we did before.
Meanwhile I’ve been looking for code snippets to edit template- or functions.php. But obviously any of these I find are outdated, seem not to function with Enfold nor with WordPress 5.2 higher. So, it would be a great help, if you could give a more precise instruction.
best regards, joergHey Victoria,
fine, where can I find this, as part of woocommerce or enfold?
best regards, JoergHi, which of the 3 filter do you mean?
add_filter( ‘wp_calculate_image_srcset’, ‘av_disable_srcset’ );
function av_disable_srcset( $sources ) {
return false;
}add_filter( ‘avf_modify_thumb_size’, ‘enfold_customization_modify_thumb_size’, 10, 1 );
function enfold_customization_modify_thumb_size( $size ) {
$size[‘portfolio_small’] = array(‘width’=>200, ‘height’=>300);
$size[‘shop_catalog’] = array(‘width’=>200, ‘height’=>300);
return $size;
}add_filter( ‘woocommerce_get_image_size_thumbnail’, function( $size ) {
return array(
‘width’ => 200,
‘height’ => 300,
‘crop’ => 0,
);
} );Hi,
I cheked everything again and again. It’s true: the single product thumb now is not affected anymore and the shop thumb is. In this respect, the code seems to work. But not only the shop thumb format is smaller, the picture quality is worse, too. It seems to me if the picture’s width and height is not being scaled only, but same time the resolution is being reduced strongly. Kind of double effect. Maybe EWWW Optimizer interferes or strikes back. I don’t know.
If this effect cannot be avoided, I will leave everything as it is.
regards, joergHi Ismael,
sorry, but obviously not. Please see private.
best regards jfHi Ismail,
sounds good, but where should I add this? Put in the Child theme functions.php lets the site crash. Please see below.Hi,
you are kidding, are you? One of the reasons for this thread lasting for weeks now is the fact that Simple Image size does not do what it should. Example from firefox inspector below.
Regards, joergHooray!
I did not dare to hope anymore that this very, very annoying bug could be fixed after so many tries within almost 2 years by so many so called experts in woocommerce. I should have asked earlier.
Thanks a lot, JoergHi,
ok with the theme update, thanks for inquiry.
As to product order, sorry, there is no effect. “custom” is still there, please see screenshot (I understood, you meant unset( $product_order[‘menu_order title’] );Hi Victoria,
thank you for this info. I am not sure, if this is really similar to my problem. But, as I did not find the ‘shop_catalog’ thumbnail listed in what Enfold is adding to the hole thumbnail portfolio of woocommerce, I searched for it and found it in some woocommerce config.php
For example:
//product thumbnails
$avia_config[‘imgSize’][‘shop_thumbnail’] = array(‘width’=>120, ‘height’=>120);
$avia_config[‘imgSize’][‘shop_catalog’] = array(‘width’=>450, ‘height’=>450);
$avia_config[‘imgSize’][‘shop_single’] = array(‘width’=>450, ‘height’=>999, ‘crop’ => false);To my mind, as a coding amateur, it would be logical to change this size into:
$avia_config[‘imgSize’][‘shop_catalog’] = array(‘width’=>200, ‘height’=>300);How could one achieve this with a child theme?
best regards,
JoergPS: before reproducing the theme update in the live installation, I sent you a screenshot of the status in private. Is this normal?
Ok, thank you!
I adjusted the code now like this:unset( $product_order[‘rating’] );
unset( $product_order[‘relevance’] );
unset( $product_order[‘rand’] );
unset( $product_order[‘id’] );
unset( $product_order[‘date’] );
unset( $product_order[‘default’] );
unset( $product_order[‘order_menu’] );/**
* To rename remove // and use the following as an example
*/$product_order[‘popularity’] = ‘Oft gekauft’;
The only ugly thing left now is: Besides the 3 defined order criteria always a fourth named “Custom” is being displayed in the front end. I found no way to delete it, nor to change the name to a description of what is meant really. And I wonder why the selection being displayed by the choice of “custom” is different every time depending on what you choose before (name, price…)
How to repair this?
Kind regards, Joergupdate: I managed somehow so that the site does not brake, but then the changes have no effect in the front end. Cache cleared. Please see code in private
Hi Günter,
I copy/pasted the filter from github to functions.php via FTP and it broke the site again
reg. joergHi,
yeah, I know all that and did it before. How else could I have updated Enfold last autumn? All recommended permissions set.
Although the Token is validated, Enfold tells me “No Updates available. You are running the latest version! (4.5.3)”
As to your filter: To be put in the theme functions.php, I guess, or somewhere else?
best regards, JoergHi,
I’d say OMG! So it took Enfold almost 2 years to fix this? Besides, it was not Germanized causing this trouble. I switched this plugin on and off so many times before to test, but it had no effect.
There are 2 questions left. The minor one: how and where can I controll in the WP backend, if the theme is outdated? The major one: How to kill these new and superflous ordering categories from the frontend dropdown? These are for me: custom, average rating, relevance, Zufall, Product ID and most of all “Standard”. How could a user understand, what Standard is? This makes no sense at all. And it is possible to rename “Datum” to “Neu” and “Popularity (sales)” to “Beliebt” ?
best regards, JoergHey Günter,
I don’t understand: Enfold is 4.5.3 and the theme’s setting say no updates available. Besides: this issue persists for almost 2 years now with any WP / Woo / Enfold versions or plugin combinations you can imagine.
I tried once more, though, to be sure, and deactivated all plugins except the fundamental ones which are needed to keep the shops basic functions (Germanized, Layer Slider, Woocomerce, Heidelpay, Yoast). The problem persists exactly as I described it: the preview responds to changes in -> Customizer / Woocommerce / Produktkatalog / Standard-Produktsortierung, but the Frontend does not.
Switching off Enfolds product order function and using the Fallback Woocommerce instead – could this be way to gain a somehow acceptable order functionality? Then, please tell me how to get this done.
best regards, JoergHi,
but this defeats the purpose! Only the shop / catalogue thumb should be resized, not every picture, less than ever the product full sized picture.
best regards,
JoergHi,
glad to hear that you found the reason and a way to repair this issue.
Before implementing this in the Live-Page let me ask you, if it is normal resp. unavoidable that any thumbnail format is being affected by tis hook. The quality of catalogue-, product- and original pic (used for magnifying glass) got worse. Please see private data.
best reagrds,
Joergplease see below
Hi again,
I just had the same issue with another change of code in the functios-php. Seems as if any change to the file lets the site brake. Any idea, why?
best regards, JoergHi Basilius,
here you are: https://pastebin.com/sUSVkWmSHi Ismael,
please see below in privat area the error by adding the code in the child theme functions.php via WP-Backend. By adding the same via FTP, the code is being accepted, but site and WP-Login brakes, white screen. The code is taken directly from Forum.
Example product thumbnail regenerated: https://test.brandgeister.de/shop/luchs-harzer-kaffee-liqueur/
best regards, joergHi,
you mean the child theme functions.php? Done, but no effect.
Of course they all are this size, it is the woocommerce and /or Enfold default. And I would be extremely lucky if there was any thumbnail of 200 px width.
Why the hell do all efforts to resize them down to what is really needed fail?Oups, I found it! Sorry for disturbance. You may close the issue.
Hi Mike,
unfortunatedly yes, there is. Please have a short look at the live page. I put in all the IDs and it worked fine. But then I decided to replace the page called “Brennerei Auswahl” by another one, because this one is more plausible with the new structure. Replaced the concerning menu item IDs as well, but … What am I doing wrong?
best regards, JoergHi there,
great, thanks to all!
best reagrds, JoergHi,
perfect, thanks a lot!
The only problem now seems to be, that the menu-item-ID’s are different to the Live page. Can you tell me, please, how and where I could look up theese ID for the Live-Page?
best regards -
AuthorPosts