the point is that on uploading an image WordPress generates those given sizes and stores it under the known names.
it only is in the dropdown list if the image has that calculated size – so have a look after you have done the resize thumbnails and see again
(PS : you have to mark those images you want to be resized )
the force regenerate thumbnails has the advantage that the old images are erased and newly calculated.
So if you change perhaps the wordpress media dimensions the old ones are erased and did not waste memory on your server.
-
This reply was modified 9 years, 9 months ago by
Guenni007.
maybe this seems to be better: https://wordpress.org/plugins/force-regenerate-thumbnails/
PS: WordPress itself reduces by default all images (maybe it is only jpg) to 90% Quality (not size) – if you don’t like that – because all images are optimized perfectly than you can add the following to functions.php:
add_filter( ‘jpeg_quality’, create_function( ”, ‘return 100;’ ) );
well to me it works nice – but you have to know that this will only have an effect for newly (after that functions.php entry) uploaded Images !
But if you want that every image in your media library gets the new format than there are some nice plugins to solve this with one klick (Regenerate Thumbnails f.e.)
I did what was noted in http://i.imgur.com/Tkpw3Tb.png.
The featured images was set to portfolio size, however my blog grid thumbnail sizes are still not uniform.
Any reason why that could be?
Up to now I had no problem with small preview images used in the blog layout: they corresponded to square-size article featured image thumbnails. But I’m setting up a new site and for some reason, instead of using thumbnails, the small previews load the full image resized to fit in the square block. How do I get it to use the square thumbnails, which are more apporpriate for small preview blocks?
In Enfold, the thumbnails are clipping the images on the right and left, how to show the complete image?
Hi there once again,
I couldn’ really solve that problem. I don’t want to use a plugin.
The content in the link from you describes how to use the thumbnail function of WordPress.
But I want to achieve the following:
When creating a new post and e.g. I forget to upload a thumbnail I want a default fallback thmbnail picture to be displayed (right now it’s a pen).
I found this code, but don’t know where to place it, however.
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail();
} else { ?>
<img src="<?php bloginfo('template_directory'); ?>/images/default-thumb-img.png"
alt="<?php the_title(); ?>" />
<?php } ?>
I hope you can help me with this one.
Thank you for your support and best regards,
Andreas
Hi,
@grupoabaded: Did you install the suggested plugin above?
@InTransitMe: Please follow the instructions carefully. Note that you have to regenerate the thumbnails after the size adjustment.
Best regards,
Ismael
Hey brotherleeroy2,
Try the following:
1. Install this plugin: https://wordpress.org/plugins/simple-image-sizes/
2. Go to Settings > Media
3. Change the entry_with_sidebar image size (increase its width / height).
4. Regenerate the thumbnails by clicking the button at the bottom.
Best regards,
Yigit
Hi,
So by selecting the thumnail size in the attachment display settings as you mention, it creates a separate image and isn’t the original 5mb file, just appearing smaller, so when the page is loaded, it’s not loading 6 x 5mb image files, but is just loading 6 x small thumnail files of maybe less than 1mb total instead of 30?
I’m sorry but you kinda lost me there a bit. Once you select the thumbnail size, the image element will load or use it and ignore the other thumbnail sizes. It doesn’t create any separate image.
Best regards,
Ismael
Hi,
it seems to work for me:
View post on imgur.com
No line breaks anymore between the thumbnails. Isn’t that what you wanted?
Best regards,
Andy
Hi,
Install the following plugin then go to the Settings > Media panel. Adjust the size of the “entry_without_sidebar” thumbnail, update, save then regenerate the thumbnails. https://wordpress.org/plugins/simple-image-sizes/
Best regards,
Ismael
Thank you!
1) Now each sub-menu gets the same set and order of thumbnail pictures. Instead I would like to create a individual set/order of pictures for each sub-menu. Where do I specify menu item number ?
2) Is there a chance I can make pictures always appear at the same place?
3) Can I resize the picture by the %?
Hi,
Please add following code to Quick CSS as well
.av-magazine-thumbnail {
width: 85px;
min-height: 85px;
}
.av-magazine-content-wrap * {
color: black!important;
}
Best regards,
Yigit
Hello,
I think that’s not the problem. I can select multiple sizes on the thumbnails but not working properly. Please check out the username and password that send in private.
-
This reply was modified 9 years, 9 months ago by
grupoabades.
Hello,
In posts, when i create wordpress gallery, thumbnails are not displayed correctly.
The link in private section.
Hey Guys,
is there a way how one could place the thumbnails of a gallery on the left side? I have very long product images and don’t want visitors to have to scroll down all the time.
Thank you a lot!
Hi,
I can’t reproduce the “duplicated image” issue but if I have to guess, it’s probably caused by another lightbox plugin. Did you install a plugin with a lightbox script?
And how do I know that the the thumbnail isn’t just the larger file shrunk by source code and it’s loading the smaller size one?
It depends on how you add the image. If you’re using the theme’s Image element, you’ll be able to select the thumbnail size in the ATTACHMENT DISPLAY SETTINGS > Size option.
Best regards,
Ismael
switch off navigation side arrows in theme no idea what there called as it interferes with the sub menus if you need to look at something else.
no idea what there called or what I am looking for.
i do have screen grab but no idea how to upload to the forum.
its in this link
http://kriesi.at/themedemo/?theme=enfold-overview its the lhs pop out menu which does scroll left to right but also has a thumbnail of content. I dont want this to be active, how do I switch off please.
cheers ian
I have tried to find an plugin for an filter in the blog catogory’s but i couldnt find it anywhere.
After a whole day of searching i finally found somthing what comes REALLY close to what i need! This Magazine option in Enfold. The only thing is, i dont want to display them as thumbnails, also not 1 big and the rest small but i need them all the same size and 3 in a row. Is this possible with css maybe?
Above the black row is what it is and under the black row is what is has to look like
i have added the url to the specific page, i hope someone can help me out!
I really hope this can work out!
-
This topic was modified 9 years, 9 months ago by
Angelo.
Hi,
ja, du musst nur einmal bezahlen.
Ich glaube ich verstehe es immer noch nicht, denn ich denke immer noch, dass du das doch machen kannst mit einem Galerie Element innerhalb eines 2/3 Layout Elements.
Der Shortcode dafür hier:
[av_two_third first min_height='' vertical_alignment='' space='' custom_margin='' margin='0px' padding='0px' border='' border_color='' radius='0px' background_color='' src='' background_position='top left' background_repeat='no-repeat' animation='' mobile_display='']
[av_gallery ids='2994,2985,2982,2973,2964' style='big_thumb' preview_size='portfolio' crop_big_preview_thumbnail='avia-gallery-big-no-crop-thumb' thumb_size='portfolio' columns='5' imagelink='lightbox' lazyload='avia_lazyload' custom_class='']
[/av_two_third][av_one_third min_height='' vertical_alignment='' space='' custom_margin='' margin='0px' padding='0px' border='' border_color='' radius='0px' background_color='' src='' background_position='top left' background_repeat='no-repeat' animation='' mobile_display='']
[av_textblock size='' font_color='' color='']
Click here to add your own text
[/av_textblock]
[/av_one_third]
Gruß,
Andy
So i copied the file to this path enfold-child/config-templatebuilder/avia-shortcodes
Then replaced this line
$this->loop[$key]['text_after'] .= $this->loop[$key]['author'];
with
$this->loop[$key]['text_after'] .= $this->loop[$key]['author'];
$this->loop[$key]['url'] = wp_get_attachment_url( get_post_thumbnail_id($id), apply_filters('avf_avia_builder_masonry_lightbox_img_size','large'));
cleared caching, refreshed page but still the post loads when clicking the mansory picture, this is what the av-helper-masonry.php looks like, anything wrong?
`
-
This reply was modified 9 years, 9 months ago by
yingyang.
Hi,
We tested this modification again on our installation and the masonry items opens the image inside a lightbox. Please try it again:
$this->loop[$key]['text_after'] .= $this->loop[$key]['author'];
$this->loop[$key]['url'] = wp_get_attachment_url( get_post_thumbnail_id($id), apply_filters('avf_avia_builder_masonry_lightbox_img_size','large'));
Make sure that the Theme Options > Lightbox Modal Window option is enabled.
Best regards,
Ismael
Hi there,
How can I change the default thumbnail image, which is displayed when no image is uploaded?
Thank you in advance and all the best,
Andreas
What WordPress does by default is downscale the images, alternatively you could install this plugin to enable image upscaling.
Hi guys,
Is there any possible way to use my portfolio items i used with my Choices theme in my Enfold theme?
Each had its own independent thumbnail (featured image) and opened up images in the lightbox specific to the project. I can’t find anywhere to access them using the masonry component. I tried using the regular gallery and it loads the items but just displays the thumbnail images in the lightbox.
Very confused. Help!
Thanks,
Nick
Hi Rikard,
Thanks for your reply,
Currently the Gallery Preview size is large and unable to view the whole image in 1 page.
So I would like it to be viewed within 1 page with the thumbnails.
Please see the link below for the screenshot.
Thanks
Lewis
Hi,
Add this css code to adjust the title alignment of the “next button”:
.avia-post-next.with-image {
text-align: left;
}
Add this in the functions.php file to display the time:
function avia_post_nav($same_category = false, $taxonomy = 'category')
{
global $wp_version;
$settings = array();
$settings['same_category'] = $same_category;
$settings['excluded_terms'] = '';
$settings['wpversion'] = $wp_version;
//dont display if a fullscreen slider is available since they overlap
if((class_exists('avia_sc_layerslider') && !empty(avia_sc_layerslider::$slide_count)) ||
class_exists('avia_sc_slider_full') && !empty(avia_sc_slider_full::$slide_count) ) $settings['is_fullwidth'] = true;
$settings['type'] = get_post_type();
$settings['taxonomy'] = ($settings['type'] == 'portfolio') ? 'portfolio_entries' : $taxonomy;
if(!is_singular() || is_post_type_hierarchical($settings['type'])) $settings['is_hierarchical'] = true;
if($settings['type'] === 'topic' || $settings['type'] === 'reply') $settings['is_bbpress'] = true;
$settings = apply_filters('avia_post_nav_settings', $settings);
if(!empty($settings['is_bbpress']) || !empty($settings['is_hierarchical']) || !empty($settings['is_fullwidth'])) return;
if(version_compare($settings['wpversion'], '3.8', '>=' ))
{
$entries['prev'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
$entries['next'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
}
else
{
$entries['prev'] = get_previous_post($settings['same_category']);
$entries['next'] = get_next_post($settings['same_category']);
}
$entries = apply_filters('avia_post_nav_entries', $entries, $settings);
$output = "";
foreach ($entries as $key => $entry)
{
if(empty($entry)) continue;
$the_title = isset($entry->av_custom_title) ? $entry->av_custom_title : avia_backend_truncate(get_the_title($entry->ID),75," ");
$link = isset($entry->av_custom_link) ? $entry->av_custom_link : get_permalink($entry->ID);
$image = isset($entry->av_custom_image) ? $entry->av_custom_image : get_the_post_thumbnail($entry->ID, 'thumbnail');
$time = "<time class='date-container minor-meta updated' >".get_the_time(get_option('date_format'), $entry->ID)."</time>";
$tc1 = $tc2 = "";
$class = $image ? "with-image" : "without-image";
$output .= "<a class='avia-post-nav avia-post-{$key} {$class}' href='{$link}' >";
$output .= " <span class='label iconfont' ".av_icon_string($key)."></span>";
$output .= " <span class='entry-info-wrap'>";
$output .= " <span class='entry-info'>";
$tc1 = " <span class='entry-title'>{$the_title}</span>$time";
if($image) $tc2 = " <span class='entry-image'>{$image}</span>";
$output .= $key == 'prev' ? $tc1.$tc2 : $tc2.$tc1;
$output .= " </span>";
$output .= " </span>";
$output .= "</a>";
}
return $output;
}
Adjust the position of the date container in the Quick CSS field.
Best regards,
Ismael
Hi,
Thank you for using Enfold. And we are very sorry for the delay.
Please add this in the functions.php file to replace the shortlink with the actual page ur:
add_filter('avia_social_share_link_replace_values', 'avia_social_share_link_replace_values_mod');
function avia_social_share_link_replace_values_mod($replace) {
$replace['shortlink'] = get_permalink();
return $replace;
}
Unfortunately, you cannot apply the “twitter card” in the theme’s sharing patterns. You can only attach the featured image url:
add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
function avia_add_social_share_link_arguments($args)
{
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'masonry' );
$args['twitter']['pattern'] = 'https://twitter.com/share?text=[title] '.$thumb[0].'&url=[shortlink]';
return $args;
}
Best regards,
Ismael