-
Search Results
-
Can you help me to removed the ARROW in the THUMBNAIL picture
I’ve read all of the posts about the previous/next arrows on portfolio items not showing only items from the same category but I can’t get them to work. I’m using a child theme and the following in functions.php
if(!function_exists(‘avia_post_nav’))
{
function avia_post_nav($same_category = true, $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[‘next’] = get_previous_post($settings[‘same_category’], $settings[‘excluded_terms’], $settings[‘taxonomy’]);
$entries[‘prev’] = get_next_post($settings[‘same_category’], $settings[‘excluded_terms’], $settings[‘taxonomy’]);
}
else
{
$entries[‘next’] = get_previous_post($settings[‘same_category’]);
$entries[‘prev’] = 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’);$tc1 = $tc2 = “”;
$class = $image ? “with-image” : “without-image”;But I’m still getting all portfolio items, not just ones in the same category.
Topic: Image sizing and removal
I have a publisher in the company that has put large images in the gallery (over 1Mb) Enfold then creates a number of image sizes from that. That makes for slower performance and bigger backups than the ISP is willing to support. My questions:
1. If I remove the originally uploaded image from the library, will the generated images and thumbnails also disappear?2. Then, if I reupload an edited image that is much more compact – yet looks good on the web, will Enfold regenerate those other images taking up correspondingly less storage?
3. Many site images are not going to be used for the big full page sliders – just for a 300×200 px blog entry (for example). Does Enfold need to generate all those other images, until the user has required a large image in the editor or in a slider?
Regards, Peter
Topic: Image sizes
I am importing thousands products into a shop using WP All Import plugin but am getting 16 extra images generated for each one. I have read this forum and the solutions that match my problem don’t work.
It say coment out this line in functions.php but I can’t find it: avia_backend_add_thumbnail_size($avia_config);
And the plugin you suggest (simple image sizes) doesn’t do anything. When I save changes it rechecks them all and the options don’t seem related to the images that are generated.
The only image sizes I need are those needed for woocommerce products. They are all square and none of them should be cropped.
Please can you help.
Thanks
Rob
