-
Search Results
-
Hello
suite of https://kriesi.at/support/topic/single-product-page-layout-5/
and can we have thumbnails on the left of the big picture ? instead of bottom
can we do this by css ?
Thxs for your helpTopic: Lost all my image formatting
Hi there!
I had to switch themes temporarily (to test a language translation plugin) but after switching straight back to Enfold (Child Theme) I have lost all my image formatting.
For example, on this URL: https://www.swarez.co.uk/modern-art-paintings-for-sale/requiem/
I should have the four images in the grid row sized at 650px x 450px (I created that size in the theme and WordPress has it stored in /uploads/ properly). It’s just that now the theme isn’t picking up that this is what should be displayed – instead it’s showing the original height and width of each image resized to fit in the grid.So this: /wp-content/uploads/2017/12/Tall-painting-leaning-against-a-hallway-wall-600×450.jpg is what should be in the grid but it isn’t now. And I have 350 pages like this!!!!! Aaaaghhhhhh!!!!!
I have regenerated thumbnails but nothing works. Any ideas?
Thanks in advance
EdTopic: shortcode for gallery
hello, i want to add a gallery in the middle of a text, so i need a short code.
Ive put in this:
[av_gallery ids='' style='big_thumb' preview_size='portfolio' crop_big_preview_thumbnail='avia-gallery-big-crop-thumb' thumb_size='portfolio' columns='5' imagelink='lightbox' lazyload='avia_lazyload' av_uid='av-jgesnq4m' custom_class='av-gallery-style-1' admin_preview_bg='']1. But where/how can i retrieve the ID of the gallery?
2. Im working with Wp Media Folder, dont know if this makes any difference for the ID?Topic: Gallery thumbnail blurry
I wish there was a way to set the gallery-thumbnail images in Appearance>customize>woocommerce images, but there isn’t. My gallery-thumbnail images are blurry and set to 36×36 pixels, don’t know how this happened, and I see the solution is to add the following into the functions code:
add_filter( ‘woocommerce_get_image_size_gallery_thumbnail’, function( $size ) {
$size[‘width’] = 300;
$size[‘height’] = 300;
$size[‘crop’] = 1;
return $size;
}, 10, 1);I was going to do that but change the width to 100 and the height to 75 so it will have the same ratio as my other images in Woocommerce. Only problem is that in my functions is the following and I’m not sure what that is or if it will override the above code:
global $woocommerce;
if (version_compare($woocommerce->version, ‘3.0.0’, “>=” )) {
add_theme_support( ‘wc-product-gallery-zoom’ );
add_theme_support( ‘wc-product-gallery-lightbox’ );function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
return $img;
}
function avia_woocommerce_post_thumbnail_description($img, $post_id){
return $img;
}Should I put the code above that or delete that? I’m afraid to try it in case it messes up my website at this time.
Thanks!
PS. I got a response that you wanted me to open a new thread and give admin login for you to have a closer look.we upgraded PHP on a site with woocommerce from 5.6 to 7.2 and on certain pages (see link in private) we started getting these error messages:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function avia_woocommerce_gallery_thumbnail_description(), 2 passed and exactly 4 expected in /nas/content/live/gadragonfly/wp-content/themes/dragon-child/functions.php:61\nStack trace:\n#0 [internal function]: avia_woocommerce_gallery_thumbnail_description(‘<div data-thumb…’, ‘2454’)\n#1 /nas/content/live/gadragonfly/wp-includes/class-wp-hook.php(286): call_user_func_array(‘avia_woocommerc…’, Array)\n#2 /nas/content/live/gadragonfly/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘<div data-thumb…’, Array)\n#3 /nas/content/live/gadragonfly/wp-content/plugins/woocommerce/templates/single-product/product-image.php(47): apply_filters(‘woocommerce_sin…’, ‘<div data-thumb…’, ‘2454’)\n#4 /nas/content/live/gadragonfly/wp-content/plugins/woocommerce/includes/wc-core-functions.php(208): include(‘/nas/content/li…’)\n#5 /nas/content/live/gadragonfly/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1368): wc_get_template(‘single-product/…’)\n#6 in /nas/content/live/gadragonfly/wp-content/themes/dragon-child/functions.php on line 61
We had to roll back since half the site did not work so testing is going to be difficult. If you can provide potential fixes or ask questions we would appreciate the help as they are forcing upgrades early next year.
Thanks!
Topic: Thumbnail Sizes
Hi!
I use woocommerce and would like to set the product preview pictures in correct sizes.
In the enfold function I found the entries below but which one is used for my single product page?
Can I change the sizes in child funktion?All the best!
/* * Register additional image thumbnail sizes * Those thumbnails are generated on image upload! * * If the size of an array was changed after an image was uploaded you either need to re-upload the image * or use the thumbnail regeneration plugin: http://wordpress.org/extend/plugins/regenerate-thumbnails/ */ $avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36); // small preview pics eg sidebar news $avia_config['imgSize']['square'] = array('width'=>180, 'height'=>180); // small image for blogs $avia_config['imgSize']['featured'] = array('width'=>1500, 'height'=>430 ); // images for fullsize pages and fullsize slider $avia_config['imgSize']['featured_large'] = array('width'=>1500, 'height'=>630 ); // images for fullsize pages and fullsize slider $avia_config['imgSize']['extra_large'] = array('width'=>1500, 'height'=>1500 , 'crop' => false); // images for fullscrren slider $avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column) $avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>185 ); // images for portfolio 4 columns $avia_config['imgSize']['gallery'] = array('width'=>845, 'height'=>684 ); // images for portfolio entries (2,3 column) $avia_config['imgSize']['magazine'] = array('width'=>710, 'height'=>375 ); // images for magazines $avia_config['imgSize']['masonry'] = array('width'=>705, 'height'=>705 , 'crop' => false); // images for fullscreen masonry $avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321); // big images for blog and page entries $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 ); // images for fullsize pages and fullsize slider $avia_config['imgSize'] = apply_filters('avf_modify_thumb_size', $avia_config['imgSize']); $avia_config['selectableImgSize'] = array( 'square' => __('Square','avia_framework'), 'featured' => __('Featured Thin','avia_framework'), 'featured_large' => __('Featured Large','avia_framework'), 'portfolio' => __('Portfolio','avia_framework'), 'gallery' => __('Gallery','avia_framework'), 'entry_with_sidebar' => __('Entry with Sidebar','avia_framework'), 'entry_without_sidebar' => __('Entry without Sidebar','avia_framework'), 'extra_large' => __('Fullscreen Sections/Sliders','avia_framework'), );Topic: Can't hide gallery thumbnail
Hi there
On “www.ernsthaeberli.ch” I can’t hide the small thumbnails under the big image size, even I choose the according gallery-option.
Can someone help me?
Thanks and best regards,
SimonTopic: Gallery Problem
Hi there
My mason gallery does not appear to working. Here’s an example page:
The flexible masonry thumbnails appear correctly, but when an image is clicked, just an enlarged jpeg appears (instead of the normal lightbox that allows scrolling between images on a desktop device).
thanks, Gary
Hi there! Trying to work on improving conversions on my product page so I would like to try a few things, hopefully you can help out.
1) Is it possible for images (when clicking on thumbnails) not to open in a lightbox but instead in the place of the main image?
2)Is there a way to remove the borders for the description area box beneath the images? (the one that contains the long description)
3)Is it possible to have a nice looking tab section (https://kriesi.at/themes/enfold-2017/elements/tab-section/) in that place instead of the default tab section that looks like a folder? I’ve tried to insert it via shortcodes (as the advanced builder brakes the page) but not sure that’s the best way as some of the content broke in one of the tabs…
4)Can I make that area (the one I’m referring to in points 2 and 3) full width? I have it at 100% of the container now, “full width” but I’m referring to really going full width and not just to the margins…Thanks for any help!!!
Please check the thumbnails on the URL mentioned below. I’m unable to figure out why we have the blue band for some images, and not for the others.
All ‘featured images’ for blog posts are at 300 x 212 pixels.
Could you please help?
Hi,
first: I am not a coder and try to work with PHP with try&error :-D
I would like to work not with a filter for the functions.php like @Ismael has posted somewhere in the forum, but for a better control for myself directly in the fileav-helper-masonry.php
around line 539
where the part is
$this->loop[$key]['text_before'] = ""; $this->loop[$key]['text_after'] = ""; $this->loop[$key]['ID'] = $id = $entry->ID; $this->loop[$key]['post_type'] = $entry->post_type; $this->loop[$key]['thumb_ID'] = get_post_thumbnail_id($id); $this->loop[$key]['the_title'] = get_the_title($id);Could you please tell me, what PHP code exactly I need to add in that way
between the thumbnail and the title,
to output the category name in this theme file?Without a good PHP knowledge I have tried it with this part:
$this->loop[$key]['category'] = get_the_category($id);but this has no effect. How should it be right?
Thank you.
