Viewing 30 results - 3,211 through 3,240 (of 10,097 total)
#925573

$output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";

#925572

I had tried to change. Nothing changed.
The previous configration below:
$output .= $thumbnail ? “{$thumbnail}” : “”;

How to change in a correct way?
Thanks a lot

Hi Victoria,

the issue is that the original image is 1617px wide, it is loaded into the media and available at that size and the selection I have set is “load original image size” but it is only

    loading a thumbnail size of 1500px wide

– yes I can stretch it but that’s the thing I want to avoid so the image is as crisp as it can be. I have built at least 25 sites with Enfold and always used the Fullwidth Easy Slider in exactly the same way and it loads my original size no problem (with or without a link on the image).

#925373
Jason
Participant

A quick fix that may help others.

By default, Enfold uses the 640×640 image for all sizes in the Instagram widget. In “framework/php/class-framework-widgets.php”

                        foreach ( $images as $image ) {

                                // see https://github.com/stevenschobert/instafeed.js/issues/549
                                $image['thumbnail_src'] = preg_replace( "/^https:/i", "", $image['thumbnail_src'] );
                                $image['thumbnail'] = $image['thumbnail_src'];                                
                                $image['small'] = $image['thumbnail_src'];
                                $image['large'] = $image['thumbnail_src'];

If like me you use Thumbnails in your widget, the 640×480 image causes an F on the PageSpeed rank. To get better sized images, replace
$image['thumbnail'] = $image['thumbnail_src'];
with
$image['thumbnail'] = $image['thumbnail_resources'][0]['src'];
This gets the 150×150 image url for the thumbnail.

Hope this helps someone.

  • This topic was modified 8 years ago by Jason.
#925307

Topic: Post Slider Padding

in forum Enfold
Kelly Erickson
Participant

Sorry if this is a redundant question, but I couldn’t find anything in my searches.

I have a Post Slider set up for Portfolio Entries, but there’s a LOT of padding. How do I reduce the padding in between Portfolio Entry thumbnails?

Lastly, can I remove the rounded corners?

Thanks!

#925283

In reply to: Photos resolution

Hi,
Please try going to WordPress > Settings > Media > Sizes of the images and changing the middle one to 600px, then regenerate your thumbnails: https://wordpress.org/plugins/regenerate-thumbnails/
I also notice that your dpi for your images is 96, please try uploading your images with 300dpi
Your images are showing smaller than the actual image size, for example the image being used is 600×600 and is showing at 272×272 this is typically the way you want it vs a small image being stretched larger, as this makes it blurry.
So this is why I suggest trying a higher resolution image to see if that helps.

Best regards,
Mike

#924995

In reply to: Picture not wanted

Hey!

I cannot see page thumbnail on your page at the moment. I tried adding it on my local installation and it did not show up on the page. Could you please create an example and share a link here?

Best regards,
Yigit

#924949

Hi,
I took a look and find that your images look good in the shop & on the product page, perhaps your regenerated thumbnails worked and you need to clear your cache?
Please see screenshots in Private Content area.
I couldn’t login to investigate further because of a “leaked password” error, Please see screenshot in Private Content area.

Best regards,
Mike

#924678

No, there are two duplicates of each product in the lightbox.

The lightbox link is created three times per product:

<li>
<a href="https://farbencenter.at/wp-content/uploads/2018/03/SC_Haftgrund-pigmentiert_RGB-RZ-1030x871.png" class="av-catalogue-fct-item lightbox-added" style="position: relative; overflow: hidden; display: block;">
<img src="https://farbencenter.at/wp-content/uploads/2018/03/SC_Haftgrund-pigmentiert_RGB-RZ-180x152.png" title="SIGMA Haftgrund pigmentiert" alt="SIGMA Haftgrund pigmentiert" class="av-catalogue-fct-image" style="">
<span class="image-overlay overlay-type-image" style="left: -5px; top: 0px; overflow: hidden; display: block; height: 182px; width: 190px;">
<span class="image-overlay-inside">
</span>
</span>
</a>
<div class="av-catalogue-fct-item-inner">
<a href="https://farbencenter.at/wp-content/uploads/2018/03/SC_Haftgrund-pigmentiert_RGB-RZ-1030x871.png" class="av-catalogue-fct-item lightbox-added">
<div class="av-catalogue-fct-title-container"><div class="av-catalogue-fct-title"><h4>SIGMA Haftgrund pigmentiert</h4></div><div class="av-catalogue-h2o"></div></div>
<div class="av-catalogue-fct-content">
Weiß pigmentierte, wasserverdünnbare Universal-Grundierung.<p></p>
<ul>
<li>haftvermittelnd</li>
<li>verlängert die Offenzeit der Schlussbeschichtung</li>
<li>niedrige Wasserdurchlässigkeit</li>
<li>gute Wasserdampfdurchlässigkeit</li>
<li>ohne strukturgebendes Korn</li>
<li>tönbar über SIGMA Mix-System</li>
<li>airless-spritzbar</li>
</ul>
</div>
</a>
<div class="av-catalogue-fct-pdflink">
<a href="https://farbencenter.at/wp-content/uploads/2018/03/SC_Haftgrund-pigmentiert_RGB-RZ-1030x871.png" class="av-catalogue-fct-item lightbox-added">
</a>
<a class="prettylink pdf" target="_blank" href="index.php?file_download=file&userid=PUBLIC&filepath=%2FTM%2FSIGMA%20Coatings%2FTM-SIGMA-Haftgrund-pigmentiert.pdf"><span style="float:right"></span>Technisches Merkblatt</a></div>
<div class="av-catalogue-fct-pdflink">
<a class="prettylink pdf" target="_blank" href="index.php?file_download=file&userid=PUBLIC&filepath=%2FTM%2FSIGMA%20Coatings%2FSDB-SIGMA-Haftgrund-pigmentiert.pdf"><span style="float:right"></span>Sicherheitsdatenblatt</a></div>
</div>
</li>

I duplicated the avia-catalogue item, the only code that is related to the lightbox is this:

if($link)
				{
					if($link == 'lightbox' && $id)
					{
						$link 	= aviaHelper::get_url($link, $id);
					}
					else
					{
						$link 	= aviaHelper::get_url($link);
						$blank = (strpos($target, '_blank') !== false || $target == 'yes') ? ' target="_blank" ' : "";
						$blank .= strpos($target, 'nofollow') !== false ? ' rel="nofollow" ' : "";
					}
					
					$item_markup = array("open"=>"a href='{$link}' {$blank}", "close" => "a");
				}

I’m baffled, don’t know how to get rid of the additional lightbox-links. I know this makes the whole element clickable to get a bigger version of the product image, but it’d be enough to have only the thumbnail link to the bigger version of the image.

Hi Victoria… thanks!
I have put a fullwidth easy slider back in and loaded a slider 1617px wide (which matches the container size)… but after some playing it is still loading the 1500px width thumbnail no matter what I do, so help would be much appreciated :-)
— Annemarie

#924312

Hi tocal,

Here is a thread for you to consider
https://kriesi.at/support/topic/masonry-gallery-thumbnails-not-sharp/#post-440102
And another solution here

If you need further assistance please let us know.
Best regards,
Victoria

  • This reply was modified 8 years, 1 month ago by Victoria.
AnnemarieDoolin
Participant

Hi Genius’,
For some reason the fullwidth easy slider is automatically loading a thumbnail size 1500px x 586 (when the original is 1920px x 750px (and I select “No scaling (Original width x original height)”.

I thought I could get around it by using the Fullscreen Slider instead… it works on pc but it isn’t responsive.
Would very much appreciate your help on how I fix the fullwidth easy slider?

anddosssantos
Participant

Hello Support Team,

For some reason when I click on the masonry categories on the main page, the posts of the selected category have a weird loading animation, the posts are flying in very strangely from all directions. Also, in two of the categories post thumbnails are being cut and you can’t see them in full, there’s also no load more button on those categories.

Do you have a solution for this problem? I have no idea why this is happening, especially because it was just working fine before

Thanks I advance

#923647

After a LOT of tinkering, I was able to work this out. Apparently there’s a new way of telling WooCommerce what width to use for gallery thumbnails. Here’s what I added to my functions.php to solve the problem. The number 593 is the width I use for my main product images. This code sets the width of the gallery thumbnails to match.

add_action( 'after_setup_theme', 'my_custom_woocommerce_theme_support' );
function my_custom_woocommerce_theme_support(){
	add_theme_support( 'woocommerce', array(
	'gallery_thumbnail_image_width' => 593,
	) );
}
#923585
kevinmcgillivray
Participant

Hi there. Sorry if this question has already been answered. I’ve looked but haven’t found an answer.

First, a little background: I’m running Enfold 4.2.6, WooCommerce 3.3.3 and WordPress 4.9.4. I try to keep on top of all updates for all three so I can’t say exactly when this problem arose. I have Theme Options > Store Options > Product gallery set to “Default enfold product gallery”. I have Customizer >WooCommerce > Product Images set to a main image with of 593, a thumbnail width of 394 and thumbnail cropping set to Custom (391×261). I’ve recently run Force Regenerate Thumbnails on all images on the site and it ran without errors.

Previously, my client had asked me to make the gallery images on the product page the same size as the main product image. I was able to do so fairly easily. But after recent updates, the gallery images are still displaying at full width but they are only using the 100×100 version of the gallery image, not the higher resolution version I was able to display previously. An example link is included in the Private Content.

I can’t figure out how to change which image size is used for product gallery image thumbnails. Any suggestions?

Thanks in advance for any help you can offer

#923520

Hey partyaces,

Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:

.avia-content-slider .fake-thumbnail .slide-image {
    min-height: 0;
}

Best regards,
Yigit

#923345

OK, @Guenni007 — putting the following in my child’s function.php file and re-uploading the images at a size greater than 495×400 worked! (note: regenerating the thumbnails with the Regenerate Thumbnails by József Koller plugin did not seem to work for me/this).

I’m curious, do you know what the 10, 1 refers to in the function?

Regardless, this solved my issue / answered my question — thanks so much!!

<?php

function custom_modified_thumb_sizes( $size ){
$size[‘magazine’] = array(‘width’=>495, ‘height’=>400 );
return $size;
}
add_filter(‘avf_modify_thumb_size’, ‘custom_modified_thumb_sizes’, 10, 1 );

neilc_b
Participant

Hi,

I’m trying to define a maximum height and width for the Ajax preview in a portfolio grid. I’ve had a poke around in the array sections in functions.php and haven’t had the success I need.
I don’t mind if there are four or five columns in the grid. I just want to limit the dimensions in the preview window. I have force regenerated thumbnails and tried to assign the proportions I am comfortable with from those, but it seems to get overridden somewhere and the height, in particular, is too much.
Thanks for your advice and assistance.

Best regards,
Neil.

#922652

Thanks for the reply.
I have added the code to my child functions.php – increased compression to 100%
Regenerated my thumbnails
Re-uploaded another high resolution image (of a woman wearing jewellery) in the correct size (1500 x 430) to full width easy slider
Cleared my my browser cache
But on my screen the slider is still rendering the womans skin as pixelated.
If you view the uploaded image in Media it is sharp – with no pixelation on the skin.
It seems something happens to quality of the image once it’s uploaded to the slider.
Please advise

#922555
Raffaello1996
Participant

“Hi, i’m asking for support since the images of my portfolio don’t fit properly.

The thumbnails seem to be cutting off

Please see this link: https://100daystofacefear.com/portfolio/

Thank you for your help, every suggestion will be very appreciated”

Have a nice day!

#922442
McGawain
Participant

Hello! Normally on the single product page there is a Main image, and below there are the other gallery image thumbnails. These Small thumbnails are 100x100px. With Enfold my image gallery has one main image, but below in line are the other images in the Same size, all just as big as the main image. The main image is crystal clear, but all the other ones are blurry, as they are supposed to be just these very small thumbnail images.

So the prdocut image layout is not as usual, linked a product page privately. If the layout issue of the gallery was solved then there will be no blurry images, as the images will be very small under the main image, as they r supposed to be.
Thank you!

#921291

Hi Ismael,

You are a brilliant developer!!!

Your code worked!!!

1. The issue I am facing now, is that I would like to display the price and not the excerpt, comments…etc..

Previous time, you send me the code below for loop-search.php which is not working now.

global $product;
echo $product->get_price_html();

Actually, I would like to achive that: https://prnt.sc/imx8an

2. Is that easy to display in search results the same construction of products as in Shop Archive? If you achive that, you will cover my previous issue too. Pls see that screenshot: https://prnt.sc/imx9xp

3. Why product featured images are not aligned inside thumbnail in search result page as in shop archive? I did Regenerate Shop thumbnails in woocommerce products but no result.

I would like your precious support.

Thank You in advance.

Best regards,
Nick

#921111

Hi,
If I understand correctly you would like the column 1 shortcode to show as full width, and I assume centered.
Try this code in the General Styling > Quick CSS field:


#top div.columns-1 .products .product{
    width: 100%!important; 
}
#top div.columns-1 .thumbnail_container img {
    max-width: 300px !important; 
}
#top div.columns-1 .thumbnail_container {
    display: flex!important; 
    justify-content: center!important; 
}

Please see screenshot in Private Content area.

Best regards,
Mike

Viewing 30 results - 3,211 through 3,240 (of 10,097 total)