Viewing 30 results - 1,681 through 1,710 (of 10,095 total)
  • Author
    Search Results
  • #1212278
    Yigit
    Keymaster

    Hi,

    We wanted to create this thread as a channel to share the fixes that will be included in upcoming updates and known issues that are being worked on.

    Preview for upcoming version 7.2:

    • Feature: added support for WooCommerce Brands on single product pages
    • Feature: new ALB Element “Product Brands”
    • Feature: new ALB Element “Product Brands List”
    • fixed: CSS for WooCommerce lock symbols in password fields
    • Updated: css and js minification scripts without gulp in folder /dev

    Current fixes for upcoming version 7.1.4 are as following ( last update 2025-01-14 ):

    • tweak: force clear cache to reload css and js files after theme options update
    • fixed: Warning: Undefined array key “trail_end” in /enfold/includes/helpers/helper-template-logic.php on line 210
    • fixed: link notices in language files
    • Patchstack team Broken Access Control vulnerability report: fixed in ajax search
    • Patchstack team XSS vulnerability report: Iconbox link fixed

    DEVELOPERS:

    • added: filter ‘avf_default_container_tag_textblock’ – allows to modify the Text Block container tag
    • added: filter ‘avf_before_force_clear_caches’ – shortcut clear cache and use own functions
    • added: action ‘ava_force_clear_caches’ – called when finished with clear cache

    Fixes for released version 7.1.3 are as following:

    • tweak: Center reCaptcha V2 when Contact Form labels are centered
    • fixed: ALB Team Member CET cannot be saved
    • accessibility: add an option to replace section tag by div in ALB textblock
    • Patchstack team XSS vulnerability report: column and cell link fixed
    • PHP 8.3 compatibility: fixed filesize <= 0 problem in function avia_backend_create_file()
    • removed: Support for plugin “One Click Accessibility”

    Fixes for released version 7.1.2 are as following:

    • feature: added Product Review Tab to Enfold Combo Widget
    • accessibility: replace empty hidden cookie reload anchor link with span
    • tweak: add a check for options array to be an array in function avia_get_option()
    • tweak: Add padding and background color to ALB Textblock
    • tweak: ALB Postslider – fixed inconsistent postdate when excerpt contains whitespace characters
    • tweak: make the string “Please wait a few seconds and dont reload the page….” translatable
    • performance: refactor code in ..\config-templatebuilder\avia-template-builder\php\base-classes\class-popup-templates-base.php function replace_templates()
    • fixed: misaligned ALB Gallery Navigation Arrows
    • fixed: query monitor message avia_element_js missing dependency on theme options page
    • PHP 8.4 compatibility: fix deprecation notices for nullable types in function parameters
    • Updated: Layerslider 7.15.1

    DEVELOPERS:

    • tweak: add byRef to parameters array of apply_filters_ref_array() calls
    • fixed: BigCommerce Masonry issue

    Fixes for released version 7.1.1 are as following:

    • tweak: Clean up options descriptions in theme options – added “read more” – section
    • tweak: Clean up options descriptions in ALB modal popup – added “read more” – section
    • tweak: replace checkboxes with toggles in ALB modal popup
    • fixed: Uncaught TypeError: can’t access property “applyFilters”, obj is undefined in../enfold/js/avia-js.js (window[‘wp’].hooks)
    • fixed: Warning: Undefined property: stdClass::$ID in ../enfold/includes/config-enfold/functions-enfold.php on line 860 + 862
    • fixed: ALB Audio Player cannot edit playlist when bundled Layerslider is deactivated
    • fixed: CSS in preview in theme options page “Header”
    • fixed: CSS with cart icon and transparent header
    • fixed: CSS for svg icons in header to inherit Advanced Styling CSS options
    • fixed: class-modal-elements.php select endtag missing /
    • Updated: Layerslider 7.14.4
    • updated: sync all language files (7.1.1)

    DEVELOPERS:

    • added: theme support “avia_alb_checkbox_toggles”
    • added: filter ‘avf_theme_option_desc_chars’ – allows to modify svg icons for additional description text
    • added: filter ‘avf_theme_option_desc_read’ – allows to modify read more text for additional description text
    • added: filter ‘avf_alb_modal_desc_chars’ – allows to modify svg icons for additional description text
    • added: filter ‘avf_alb_modal_desc_read’ – allows to modify read more text for additional description text
    • removed: outdated code already in comment

    Fixes for released version 7.1 are as following:

    • tweak: replace Wp Media Library by WordPress Media Library in ALB icon selector modal popup
    • performance: avoid multiple db queries when using attachment_url_to_postid
    • added: Google Fonts Source Sans Pro and Poppins to default font list

    Fixes for released version 7.0 are as following:

    • feature: added option to various ALB elements to filter WooCommerce OnSale products
    • feature: support to upload custom SVG Icon sets, also colored svg icons (color scheme settings or custom color settings do not affect color of these icons)
    • feature: theme option to deactivate default iconfont entypo-fontello in “SVG Iconset and Iconfont Manager”
    • tweak: support german umlaut in URL of “Table of content” widget
    • tweak: added class content-* to grid row cell container .flex_cell
    • tweak: load google maps js API async
    • tweak: remove double HTML markup for “date” in ALB timeline
    • PHP 8.2 compatibility: fixed Uncaught TypeError in class MetaBoxBuilder line 311
    • fixed: Fold/Unfold button not hidden in responsive mode when fold container is hidden
    • WordFence vulnerablity fix: limit download of theme options to admin only (discovered by mikemyers)
    • WordFence vulnerablity fix: removed not needed function avia_ajax_get_image_color() (discovered by mikemyers)
    • updated: Google Maps API version to 3.59
    • updated: Italian language files it_IT (version 7.0, provided by BigBatT – (Email address hidden if logged out) )
    • updated: Dutch language files nl_NL (version 7.0 provided by EZWebdesign – Roger Hoen )
    • updated: French language files fr_FR (version 7.0, provided by comkapi – Patrick)

    DEVELOPERS:

    • tweak: splitted functions.php and functions-enfold.php in seperate files and restructured files in /includes folder
    • tweak: adjusted logic to connect ALB default icon font “fontello” to class avia_font_manager
    • tweak: moved default icon font entypo-fontello to subfolder ..\config-templatebuilder\avia-template-builder\assets\fonts\entypo-fontello\
    • tweak: added “SVG Entypo-Fontello” as default svg icon set to subfolder ..\config-templatebuilder\avia-template-builder\assets\fonts\svg_entypo-fontello\
    • tweak: improved aria and accessability support for svg icons
    • added: iconfont entypo-fontello-enfold containing icons needed by enfold core (e.g. for 3-rd party plugins)
    • removed: function $.fn.avia_color_picker_autodetection – not used by Enfold
    • removed: function avia_ajax_get_image_color() and css dependencies
    • added: filter ‘avf_svg_icon_set_config’ –
    • added: filter ‘avf_svg_icon_info’ –
    • added: filter ‘avf_svg_images_get_icon_html’ –
    • added: filter ‘avf_svg_images_local_to_url’ –
    • added filter ‘avf_svg_images_icon_as_img’ – allows to replace svg tag with < img src=' '>
    • added: filter ‘avf_switch_iconfont_to_svg’ –
    • added: filter ‘avf_use_svg_from_media_library’ – allows to skip svg from media library
    • added: filter ‘avf_queried_svg_from_media_library’ – filter queried svg files
    • renamed: filter ‘avb_backend_editor_element_data_filter’ to ‘avf_backend_editor_element_data_filter’
    • removed: filter ‘avia_post_nav_entries’ -> ‘avf_post_nav_entries’
    • added: attribute is-colored=”true” is added to svg tag of colored svg icons

    Fixes for released version 6.0.9 are as following:

    • tweak: Improve logic for /?avia_extended_shop_select= queries – use data-href attribute and js routing
    • tweak: add footer tag when Footer Setting: Select a page to replace both footer and socket
    • fixed: Uncaught TypeError: Cannot access offset of type string on string in ../includes/helper-asset.php
    • fixed: Enfold theme options translations do not work in 6.0.8
    • fixed: PHP Fatal error: Uncaught TypeError: strip_tags(): in ..\framework\php\widgets\widget-classes\class-avia-partner.php
    • WP 6.2.0 compatibility: fix missing bulk select checkboxes in backend menu page

    DEVELOPERS:

    • tweak: improve var ‘–enfold-header-height’ (provided by Guenni007)

    Fixes for released version 6.0.8 are as following:

    • WP 6.7.0 compatibility: fixed PHP Notice: The function _load_textdomain_just_in_time was called too early
    • PHP 8.2 compatibility: added stricter type checking to avoid warnings or errors

    DEVELOPERS:

    • tweak: add post metadata as classes to body tag
    • added: filter ‘avf_metadata_to_body_class’ – allows to filter post metadata like tags, category, … added to body tag

    Fixes for released version 6.0.7 are as following:

    • feature: add support for youtube shorts videos in lightbox (https://www.youtube.com/shorts/video-id)
    • feature: add support for youtube shorts videos in Easy Slider, Fullwidth Easy Slider, Fullscreen Slider, Section background
    • tweak: wrapped theme option Shop Description to allow use of shortcodes
    • fixed: Google Fonts preview link in the Enfold theme options broken
    • fixed: WP Block Embed element has extra height and padding
    • YOAST compatibility: added a check for WC()->session to product_snippet_tabs.php
    • WP 6.7.0 compatibility: fixed function wp_targeted_link_rel is deprecated since version 6.7.0
    • WP 6.7.0 compatibility: fixed function wp_targeted_link_rel_callback is deprecated since version 6.7.0
    • WP compatibility: fixed broken editor when layerslider plugin disabled
    • Updated: LayerSlider 7.14.0

    DEVELOPERS:

    • tweak: wrap usage of sessionStorage in try/catch blocks
    • tweak: added CSS var ‘–enfold-header-height’ to HTML tag

    Fixes for released version 6.0.6 are as following:

    • fixed: post css stylings not updated after importing theme settings from file
    • reverted: ALB Accordion – open a toggle when hash manually changed in browser search bar (might break element behaviour)

    Fixes for released version 6.0.5 are as following:

    • tweak: updated theme options description Google Measurement ID
    • tweak: added text-size-adjust property to base.css
    • tweak: changed CSS for X social icon
    • tweak: ALB Accordion – open a toggle when hash manually changed in browser search bar
    • added: missing text domain in ..\includes\admin\option_tabs\avia_menu.php
    • PHP 8.2 compatibility – fix: Allow usage of dynamic property for classes extending aviaFramework\base\object_properties and aviaBuilder\base\object_properties
    • Updated: LayerSlider 7.12.4 (fixed vulnerability report)

    Fixes for released version 6.0.4 are as following:

    • tweak: ?s=xxx is removed except for search page (no more 404 redirect)
    • fixed: image formats like jpg, png, … in pagination links open lightbox instead of page
    • fixed: Wordfence XSS Vulnerabilities reports with wrapper_class and class
    • removed: backwards compatibility 4.8.4. default white sonar effect for ALB icon on hover
    • removed: support for outdated Envato theme updater API < 3.0
    • PHP 8.2 compatibility – fix: Deprecated: Use of “self” in callables
    • Updated: LayerSlider 7.12.2

    Fixes for released version 6.0.3 are as following:

    • tweak: remove “Dismiss” from admin notice 6.0 and 6.0.1
    • tweak: ALB Akkordion adjust js logic to avoid unnecessary updating of toggle titles in DOM
    • added: Threads Social Icon to theme options and ALB Social Buttons
    • fixed: WooCommerce category banner image shows wrong image when no category image is selected
    • fixed: ALB Accordion toggle title does not allow 0
    • fixed: ALB Accordion toggle titles with numbers throw js error
    • accessibility: added aria-label expand/collapse to ALB toggle heading
    • accessibility: added aria-label to HTML heading tags in layout templates (e.g. loop-index.php, loop-page.php, …) and ALB elements
    • accessibility: added aria-label to HTML footer tag in footer.php
    • accessibility: added aria-label to HTML aside tags
    • accessibility: added “Contact Form” as default aria-label text to new added ALB Contact From element – already existing are not touched

    DEVELOPERS:

    • added: filter ‘avf_aria_label_for_header’ – allows to change the generated aria-label text before output
    • added: filter ‘avf_aria_label_for_footer’ – allows to change the default aria-label text before output
    • added: filter ‘avf_aria_label_for_sidebar’ – allows to change the default aria-label text before output

    Fixes for released version 6.0.2 are as following:

    • Compatibility: WP 6.6 fix for block editor hiding ALB button in header
    • accessibility: use aria-label=false for ALB icons with a link
    • accessibility: added role=”menu” aria-orientation=”vertical” to av-burger-overlay div

    DEVELOPERS:

    • tweak: ALB Heading added addition class av-font-size-is-xx to container

    Fixes for released version 6.0.1 are as following:

    • performance tweak: remove custom fields query from frontend and allow to limit result set in backend
    • tweak: extended ALB button elements with aria-label from custom title attribute
    • tweak: extended ALB button elements button title attribute option with dynamic content
    • tweak: ALB buttons move option “Button Title Attribute” to “Content” tab below “Icon Visibility”
    • tweak: ALB buttons removed condition for Button Title Attribute in modal popup
    • tweak: display 6.0 backend update message to administrators only
    • tweak: remove query for WP custom fields from frontend for dynamic content feature
    • tweak: extend theme option to show “Custom Layout” menus in WP menus to admins or all users
    • tweak: make Contact Form placeholders inherit body font family
    • fixed: missing default icons in ALB Button Row element in the backend
    • fixed: Shop banner warning “Array to string conversion in ../config-woocommerce/config.php on line 1773”
    • fixed: ALB Accordion title broken when using HTML markup
    • fixed: ALB masonry adds alt attribute to background image container – removed

    DEVELOPERS:

    • added: theme support ‘avia_builder_add_heading_type_size_class’ – adds option to add additional class to heading for custom styling
    • added: filter ‘avf_layerslider_order_by_select_alb’ – change the order of layersliders in selectbox in canvas of ALB
    • added: filter ‘avf_custom_layout_show_wp_menus’ – allows to filter, which users can see “Custom Layout” menus in WP menus

    Fixes for released version 6.0 are as following:

    • feature: extended options for shop banner location (above or below title/breadcrumb bar) and parallax or scroll
    • feature: added options for responsive shop banner image
    • feature: ALB Accordion added option to show toggle title below content
    • feature: ALB Accordion added option to set slide speed of toggle content for each toggle
    • feature: ALB Accordion added option for an open toggle title
    • feature: Theme options -> Layout Builder -> Custom Page Layout And Dynamic Content
    • feature: Dynamic content support in TinyMCE “ALB Magic Wand Button” dropdown
    • feature: new ALB element “Dynamic Data” (can be used in ALB Table element)
    • feature: new ALB element “Custom Layout”
    • feature: shortcode ‘av_dynamic_el’ – supports output of dynamic data also in non ALB areas
    • feature: added theme option Layout Builder -> Show advanced options -> Activate Your Custom Post Types For ALB
    • feature: CPT support to select default terms when saving post (WP Dashboard -> Settings -> Writing)
    • feature: CPT support to extend CPT Edit Page table with taxonomy column and thumbnail colum (WP Dashboard -> Settings -> Writing)
    • feature: Extended ALB video for portrait videos and better lightbox CSS for portrait, landscape and also for custom ratio videos
    • feature: added Dynamic Content support to various elements – see changelog
    • feature: ACF (Advanced Custom Fields) support with dynamic content for ACF types – see changelog
    • feature: Support for ACF post types and taxonomies
    • feature: Checkbox ACF -> Post Type -> Advanced Configuration -> Enfold Layouts to show Layout Metabox in edit screen
    • tweak: updated the “For Developers: Custom Tab ID” string to “Custom Toggle ID” in ALB Accordion element
    • weak: moved ALB “Page Content” to Layout Element Tab
    • accessibility: ALB tabs added better HTML support for European Accessibility Act
    • accessibility: started adding html markup aria-hidden=”true” tabindex=”-1″ for empty h* tags to several ALB elements
    • accessibility: added aria-label=’…’ to elements where user entered a “Custom Title Attribute” in addition to title=’….’
    • accessibility: ALB accordion added better HTML support for European Accessibility Act
    • fixed: warning undefined-array-key-medium-in-class-popup-templates-responsive-php
    • fixed: CSS for ALB audio player in audio post format
    • fixed: ALB table element delete icon for rows not visible for button rows
    • fixed: Theme option ‘Custom Post Type Screen’ not hidden when theme support ‘avia-custom-elements-cpt-screen’ is not set
    • fixed: CSS for ALB table when empty cells in the pricing table are hidden when “show empty cells” is enabled
    • fixed: Latest News widget might break backend
    • fixed: ALB icon box link title displayed instead of title when link is applied to icon and title
    • Updated: LayerSlider 7.11.1

    DEVELOPERS:

    • feature: dismissible admin notice boxes with possibility to include custom HTML templates
    • tweak: wrapped functions in ..\config-woocommerce\admin-options.php in function_exits()
    • tweak: redesign of theme options update logic with integration of dismissible admin notice boxes
    • tweak: ALB video add custom css class option and video format to lightbox wrap container .mfp-wrap (based on solution by Guenni007)
    • added: theme support ‘avia_disable_cpt_support’ to disable CPT support feature (does not load class file)
    • added: various filters for custom page layout, dynamic content support, admin notice box – see changelog
    • added: classes ‘avia-video-cookie-allowed’ and ‘avia-video-cookie-not-allowed’ to HTML
    • added: filter ‘avf_alb_magic_wand_button’ – allows to modify tinyMCE menu for ALB magic wand dropdown
    • added: filter ‘avf_force_alb_usage’ – allows to force ALB for a post (see https://github.com/KriesiMedia/enfold-library/blob/master/actions%20and%20filters/ALB%20core/avf_force_alb_usage.php)
    • added: filter ‘avf_shortcode_insert_button_backend_disabled’ – allows to enable/disable an ALB shortcode button in backend
    • added: filter ‘avf_cpt_support_post_types’ – allows to remove CPT’s from support by this feature (e.g. like products)
    • added: filter ‘avf_cpt_support_no_table_filters’ – allows to skip adding thumbnail and taxonomy columns to CPT table screens
    • added: filter ‘avf_cpt_wp_settings_writing’ – allows to create a custom output on WP Settings Writing screen
    • added: filter ‘avf_woocommerce_default_banner_image_size’ – change shop banner image size (intended for product category thumbs)
    • added: filter ‘avf_contact_form_datepicker_args’ – change contact form datepicker aguments e.g. like date range
    • added: template taxonomy.php to provide basic support for ACF custom taxonomies (based on taxonomy-portfolio_entries.php)
    • removed: avia_backend_admin_notice()
    • removed: avia_backend_reset_admin_notice()

    Regards,
    Yigit

    • This topic was modified 3 years, 10 months ago by Günter.
    • This topic was modified 3 years, 8 months ago by Günter.
    • This topic was modified 3 years, 6 months ago by Günter.
    • This topic was modified 3 years, 2 months ago by Günter.
    • This topic was modified 2 years ago by Günter.
    • This topic was modified 1 year, 9 months ago by Günter.
    • This topic was modified 1 year, 8 months ago by Günter.
    #1212202

    Hi, I’m testing plugins to insert a video in the image gallery:
    YITH WooCommerce Featured Audio and Video Content Premium and WooCommerce Featured Video. Both are disbled.
    I added the following code to functions.php (child) in order to move woocommerce tabs under the thumbs:
    add_action(‘init’, ‘avia_move_product_output’);
    function avia_move_product_output() {
    remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 10 );
    remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 1 );
    add_action( ‘woocommerce_product_thumbnails’, ‘woocommerce_output_product_data_tabs’, 5 );
    }
    If I remove it, the thumbs goes back to normal but tabs won’t be under it.

    Any ideas on how to solve it?

    #1212050

    Topic: Blog post list layout

    in forum Enfold
    Telmore
    Participant

    Hi,

    I am looking for a blog layout that shows a list of the different blog post of my site. The list layout-option does this to a certain extent. I would like the list to display title, meta information and an icon/thumbnail. This option is not there, but would there be a way to display those three things at once?

    Hope you can help!

    Best regards,
    Susanne

    #1211906
    jorgepelaez
    Participant

    Hello, I’m having issues with woocommerce single product page where the image gallery thumbnails appears under the tabs.
    How can I fix this?

    #1211776

    Hi,

    Did you regenerate the thumbnails, or upload the images again? You have to regenerate the thumbnails in order to see the changes.

    Best regards,
    Ismael

    The enfold calculation of the new size formats will be done on upload.
    Those Optimising Plugins will edit these existing images. So for enfold there will be no difference if they find the same nomenklatur for them.

    I suppose that once you have run through such an optimizer the images will stay that way even after deactivating or deleting the plugin.
    Isn’t there a free contingent of them, which can be processed? I would test that first.

    _______________

    The snippet above will take effect immediately on upload. The images that are already there I have recalculated with Force Regenerate Thumbnails.
    The benefit of that plugin is that it deletes the old thumnails not needed ( f.e. if you change the theme – there will be other sizes and some sizes are not needed – or if you follow the link of Victoria that you exclude some sizes from being calculated. )

    See here https://kriesi.at/support/topic/disable-creation-of-multiple-file-resoltuions-on-media-upload/#post-1172543

    You can influence what sizes are calculated on upload.

    Sometimes you notice that some image sizes are not needed at all for an Enfold installation, and in some cases you can even work with other formats. Then you could save yourself the trouble of generating these file sizes.

    ___________

    Have a look at that plugin too – seems to be a very usefull one:
    https://de.wordpress.org/plugins/simple-image-sizes/

    • This reply was modified 5 years, 10 months ago by Guenni007.
    #1211703

    Hey fcp,
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    if( ! function_exists( 'avia_ajax_search' ) )
      {
    	  //now hook into wordpress ajax function to catch any ajax requests
    	  add_action( 'wp_ajax_avia_ajax_search', 'avia_ajax_search' );
    	  add_action( 'wp_ajax_nopriv_avia_ajax_search', 'avia_ajax_search' );
      
    	  function avia_ajax_search()
    	  {
    		  
    		  unset( $_REQUEST['action'] );
    		  
    		  if( empty( $_REQUEST['s'] ) ) 
    		  {
    			  $_REQUEST['s'] = array_shift( array_values( $_REQUEST ) );
    		  }
    		  
    		  if( empty( $_REQUEST['s'] ) ) 
    		  {
    			  die();
    		  }
      
    		  $defaults = array(
    						  'numberposts'		=> 5, 
    						  'post_type'			=> 'any', 
    						  'post_status'		=> 'publish', 
    						  'post_password'		=> '', 
    						  'suppress_filters'	=> false, 
    						  'results_hide_fields' => ''
    					  );
      
    		  /**
    		   * WP Filter for the contents of the search query variable
    		   * 
    		   * @param string
    		   * @return string
    		   */
    		  $_REQUEST['s'] = apply_filters( 'get_search_query', $_REQUEST['s'] );
      
    		  $search_parameters 	= array_merge( $defaults, $_REQUEST );
      
    		  if ( $search_parameters['results_hide_fields'] !== '' ) 
    		  {
    			  $search_parameters['results_hide_fields'] = explode( ',', $_REQUEST['results_hide_fields'] );
    		  }
    		  else 
    		  {
    			  $search_parameters['results_hide_fields'] = array();
    		  }
      
    		  /**
    		   * @used_by				Avia_Custom_Pages		10
    		   * @used_by				config-woocommerce\config.php  avia_woocommerce_ajax_search_params()	20
    		   * 
    		   * @param array
    		   * @return array
    		   */
    		  $search_query = apply_filters( 'avf_ajax_search_query', http_build_query( $search_parameters ) );
    		  
    		  /**
    		   * @used_by			Avia_Relevanssi			10
    		   * 
    		   * @param string $function_name
    		   * @param array $search_query
    		   * @param array $search_parameters
    		   * @param array $defaults
    		   * @return string
    		   */
    		  $query_function = apply_filters( 'avf_ajax_search_function', 'get_posts', $search_query, $search_parameters, $defaults );
    		  
    		  $posts = ( ( $query_function == 'get_posts') || ! function_exists( $query_function ) ) ? get_posts( $search_query ) : $query_function( $search_query, $search_parameters, $defaults );
    	  
    		  $search_messages = array(
    				  'no_criteria_matched' => __( 'Sorry, no match', 'avia_framework' ),
    				  'another_search_term' => __( 'Please try again', 'avia_framework' ),
    				  'time_format'         => get_option( 'date_format' ),
    				  'all_results_query'   => http_build_query( $_REQUEST ),
    				  'all_results_link'    => home_url( '?' . http_build_query( $_REQUEST ) ),
    				  'view_all_results'    => __( 'View all results', 'avia_framework' )
    			  );
    		  
    		  $search_messages = apply_filters( 'avf_ajax_search_messages', $search_messages, $search_query );
    		  
    		  if( empty( $posts ) )
    		  {
    			  $output  = "<span class='av_ajax_search_entry ajax_not_found'>";
    			  $output .=		"<span class='av_ajax_search_image " . av_icon_string('info') . "'>";
    			  $output .=		'</span>';
    			  $output .=		"<span class='av_ajax_search_content'>";
    			  $output .=			"<span class='av_ajax_search_title'>";
    			  $output .=				$search_messages['no_criteria_matched'];
    			  $output .=			'</span>';
    			  $output .=			"<span class='ajax_search_excerpt'>";
    			  $output .=				$search_messages['another_search_term'];
    			  $output .=			'</span>';
    			  $output .=		'</span>';
    			  $output .= '</span>';
    			  
    			  echo $output;
    			  die();
    		  }
      
    		  //if we got posts resort them by post type
    		  $output = '';
    		  $sorted = array();
    		  $post_type_obj = array();
    		  
    		  foreach( $posts as $post )
    		  {
    			  $sorted[ $post->post_type][] = $post;
    			  if( empty( $post_type_obj[ $post->post_type ] ) )
    			  {
    				  $post_type_obj[ $post->post_type ] = get_post_type_object( $post->post_type );
    			  }
    		  }
      
    		  //now we got everything we need to preapre the output
    		  foreach( $sorted as $key => $post_type )
    		  {
    			  // check if post titles are in the hidden fields list
    			  if ( ! in_array( 'post_titles', $search_parameters['results_hide_fields'] ) )
    			  {
    				  if( isset( $post_type_obj[ $key ]->labels->name ) )
    				  {
    					  $label = apply_filters( 'avf_ajax_search_label_names', $post_type_obj[ $key ]->labels->name );
    					  $output .= "<h4>{$label}</h4>";
    				  }
    				  else
    				  {
    					  $output .= '<hr />';
    				  }
    			  }
      
    			  foreach( $post_type as $post ) 
    			  {
    				  $image = '';
    				  $extra_class = '';
      
    				  // check if image is in the hidden fields list
    				  if ( ! in_array( 'image', $search_parameters['results_hide_fields'] ) )
    				  {
    					  $image = get_the_post_thumbnail( $post->ID, 'thumbnail' );
    					  $extra_class = $image ? 'with_image' : '';
    					  $post_type = $image ? '' : ( get_post_format( $post->ID ) != '' ? get_post_format( $post->ID ) : 'standard' );
    					  $iconfont = $image ? '' : av_icon_string( $post_type );
      
    				  }
      
    				  $excerpt     = '';
      
    				  // check if post meta fields are in the hidden fields list
    				  if ( ! in_array( 'meta', $search_parameters['results_hide_fields'] ) )
    				  {
    					  if( ! empty($post->post_excerpt ) )
    					  {
    						  $excerpt =  apply_filters( 'avf_ajax_search_excerpt', avia_backend_truncate( $post->post_excerpt, 70, ' ', '...', true, '', true ) );
    					  }
    					  else
    					  {
    						  $excerpt = apply_filters( 'avf_ajax_search_no_excerpt', get_the_time( $search_messages['time_format'], $post->ID ), $post );
    					  }
    				  }
      
    				  $link = apply_filters( 'av_custom_url', get_permalink( $post->ID ), $post );
      
    				  $output .= "<a class ='av_ajax_search_entry {$extra_class}' href='{$link}'>";
      
    				  if ( $image !== '' || $iconfont ) 
    				  {
    					  $output .= "<span class='av_ajax_search_image' {$iconfont}>";
    					  $output .=		$image;
    					  $output .= '</span>';
    				  }
    				  $output .= "<span class='av_ajax_search_content'>";
    				  $output .=		"<span class='av_ajax_search_title'>";
    				  $output .=			get_the_title($post->ID);
    				  $output .=		'</span>';
    				  
    				  if( $excerpt !== '' ) 
    				  {
    					  $output .=		"<span class='ajax_search_excerpt'>";
    					  $output .=			$excerpt;
    					  $output .=		'</span>';
    				  }
    				  $output .=	'</span>';
    				  $output .= '</a>';
    			  }
    		  }
      
    		  $output .= "<a class='av_ajax_search_entry av_ajax_search_entry_view_all' href='{$search_messages['all_results_link']}'>{$search_messages['view_all_results']}</a>";
      
    		  echo $output;
    		  die();
    	  }
      }
      

    please look for the line 'no_criteria_matched' => __( 'Sorry, no match', 'avia_framework' ), & 'another_search_term' => __( 'Please try again', 'avia_framework' ), and adjust to suit.
    2020-05-10_152140.png
    I tested this in my child theme and as you can see from the screenshot it works.

    Best regards,
    Mike

    I’m trying everything I can to minimize page load times and lighten I/O. Images seem to be a big thing (as expected). If I, for example, upload a 2,048 x 2,048 original image, but then tell Enfold that it is a 640 x 640 image on the post, is it being resized (and served as a smaller file size)? Or am I just defining the “window” in which Enfold displays that big file?

    these images are resized and should be less file size. BUT:

    on functions-enfold.php:

    if( ! function_exists( 'av_return_100' ) )
    {
    	/**
    	* Sets the default image to 100% quality for more beautiful images when used in conjunction with img optimization plugins
    	*
    	* @since 4.3
    	* @added_by Kriesi
    	*/
    	function av_return_100(){ return 100; }
    	add_filter('jpeg_quality', 'av_return_100');
    	add_filter('wp_editor_set_quality', 'av_return_100');
    }

    Enfold takes the original image on upload, unpacks it and calculates new smaller sizes, but without compression level!
    That is f.e. like you save a jpg on photoshop without compressing on quality level 10 !

    This is meant very nicely, but leads to the fact that optimized jpgs uploaded in their original size sometimes have a smaller file size than the recalculated files which are smaller in dimension.

    This is not necessarily the case for a 640px image, but for the sizes : “featured”, “featured_large” and “extra_large” this is often the rule.

    This little snippet in child-theme functions.php :

      function av_return_100(){ return 65; }
      add_filter('jpeg_quality', 'av_return_100');
      add_filter('wp_editor_set_quality', 'av_return_100');

    65% seems to be a good compromise – but this depends of course on your pictures and your requirements for sharpness.

    This small snippet reduces the quality of the recalculated images during upload.
    but unfortunately it has no effect afterwards.
    Therefore you would have to recalculate the thumbnails. There are several plugins you can use for this.
    Regenerate thumbnails etc.

    #1211555
    GCSkye
    Participant

    The following code, when clicked, opens an image with lightbox:

    $html .= '<a href="' . esc_url(get_the_post_thumbnail_url($v, 'full')) . '">';
    $html .= '<img src="' . esc_url(get_the_post_thumbnail_url($v, 'thumbnail')) . '" alt="' . esc_html(get_the_title($v)) . '" />';
    $html .= '</a>';

    The above code does not have a caption under the image. How do I add esc_html(get_the_title($v)) as the caption?

    • This topic was modified 5 years, 10 months ago by GCSkye.
    #1211522
    zizibe1
    Participant

    Hi,

    I’m using the gallery element set to display as ‘Big image with thumbnails below’.

    The position of the five images is like this:

    1) big image
    2) horizontal thumbnail 3) vertical thumbnail
    4) vertical thumbnail 5) horizontal thumbnail

    The position of the “4) vertical thumbnail” is too low. It’s outside of the grid,

    Please take a look at the screenshot in the private content area.

    How can I fix this?

    Best regards,

    zizibe1

    #1210758

    A very good afternoon,

    Could you kindly assist with adding the ‘Seller Name’ on the Shop Page (Homepage) underneath the product image thumbnail.

    This above should also be done on the Single Product Page.

    I tried and nearly crashed the website.

    Regards

    or better to preserve the meta box setting – see image above even for ALB created Posts and Portfolios

    because on the most cases it makes no sence on showing the featured image on a post or portfolio created with advanced layout builder

    add_filter('avf_template_builder_content', 'avf_template_builder_content_postimage_mod', 10, 1);
    function avf_template_builder_content_postimage_mod($content = "")
    {
      if(
      	is_singular('post') && ( '1' != get_post_meta( get_the_ID(), '_avia_hide_featured_image', true ) ) 
      	|| is_singular('portfolio') &&  ( '1' != get_post_meta( get_the_ID(), '_avia_hide_featured_image', true ) ) 
        ) 
      {
        $featuredImage = get_the_post_thumbnail( $the_id, 'entry_with_sidebar' );
        $content = $featuredImage . $content ;
      }
      return $content;
    }

    see here the topic: https://kriesi.at/support/topic/beitragsbild-eines-blogbeitrags-automatisch-anzeigen/#post-1202606

    You mean if you are using the alb even for posts.
    In that solution put into your child-theme functions.php

    add_filter('avf_template_builder_content', 'avf_template_builder_content_postimage_mod', 10, 1);
    function avf_template_builder_content_postimage_mod($content = "")
    {
      if(is_singular('post')  || is_singular('portfolio') ) {
        $featuredImage = get_the_post_thumbnail( $the_id, 'entry_with_sidebar' );
        $content = $featuredImage . $content ;
      }
      return $content;
    }

    you have the choice what image you like to have instead of entry_with_sidebar
    just replace that from the list out of : widget, square, featured, featured_large, extra_large, portfolio, portfolio_small, gallery, magazine, masonry, entry_with_sidebar, entry_without_sidebar

    ________________________________
    Excerpt from the functions.php concerning the sizes.

    $avia_config['imgSize']['widget'] 			 	= array('width'=>36,  'height'=>36);
    $avia_config['imgSize']['square'] 		 	    = array('width'=>180, 'height'=>180);
    $avia_config['imgSize']['featured'] 		 	= array('width'=>1500, 'height'=>430 );
    $avia_config['imgSize']['featured_large'] 		= array('width'=>1500, 'height'=>630 );	
    $avia_config['imgSize']['extra_large'] 		 	= array('width'=>1500, 'height'=>1500 , 
    $avia_config['imgSize']['portfolio'] 		 	= array('width'=>495, 'height'=>400 );
    $avia_config['imgSize']['portfolio_small'] 		= array('width'=>260, 'height'=>185 );	
    $avia_config['imgSize']['gallery'] 		 		= array('width'=>845, 'height'=>684 );
    $avia_config['imgSize']['magazine'] 		 	= array('width'=>710, 'height'=>375 );
    $avia_config['imgSize']['masonry'] 		 		= array('width'=>705, 'height'=>705 , 
    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>845, 'height'=>321);
    $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 );
    • This reply was modified 5 years, 10 months ago by Guenni007.

    Actually I didn’t want to give any more advice when the right click is blocked. Why are you making it hard on the one who wants to help?

    Anyway: for the lightbox image size there are some snippets depending on what is shown :

    in your child-theme functions.php you can try this:

    function avia_change_masonry_thumbnail_link($size){
      return "full";
    }
    add_filter('avf_avia_builder_masonry_lightbox_img_size', 'avia_change_masonry_thumbnail_link', 10, 1);

    or that:

    function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta){
        $link = wp_get_attachment_image_src($attachment->ID, "full");
        return $link;
    }
    add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4);

    then the full image is taken instead of the large one!
    if you like to enlarge the lightbox window – we will see when the above is done.

    ColinWalton
    Participant

    Recently I have noticed that clicking on images to enlarge them is now displaying a smaller sized file than the original. Here is an example:

    Scroll down past the full screen slideshow. There are then 12x designs. Clicking on any of these brings up an image sized 1030×670 px. The original images are all 3000px wide. So this should be showing a really good quality image rather than this low res one.

    I am using a GALLERY – small thumbnails – original size (no scaling) – using the Lightbox.

    Is there perhaps a global setting that can change this so that the Lightbox uses the largest full size image?

    Thanks

    #1210317
    This reply has been marked as private.
    #1210316
    stebinger
    Participant

    Since today. The thumbnail of the youtube video is not displayed on my site just a black screen. The problem exists for Chrome, Firefox, Edge. Also when the video is clicked it is opened in a new tab.
    I have changed the video link still the same result.

    #1210265
    adplusdesign
    Participant

    Hello,
    I’ve used the jQuery solution to move the sale badge from the forum post: https://kriesi.at/support/topic/sale-badge-position/.

    // custom script
    add_action('wp_footer', 'ava_custom_script');
    function ava_custom_script(){
    ?>
    <script>
    (function($){
    	function h() {
    	$('#top .product').each(function() {
    		var onsale = $(this).find('.onsale'),
    			thumb = $(this).find('.thumbnail_container');
    
    		onsale.appendTo(thumb);
    	});
    	}
    
    	h();
    })(jQuery);
    </script>
    <?php
    }

    It works fine until I’ve added YITH Infinite scrolling plugin. How to modify this script that it will work then the products will be loaded throw ajax?

    #1210027

    Hi,

    Have you regenerated thumbnails after deleting values from fields? I tested it on my local installation and it works fine so I do not think it’s plugin related.
    If you do not mind posting WP logins privately, we can also look into it for you :)

    Best regards,
    Yigit

    #1210003

    In reply to: Envato 4.4.1

    Marc Sigal
    Guest
    This reply has been marked as private.
    #1209976

    Hey topnetat,

    Thank you for the inquiry.

    The images in the site are actually lazy loaded as you can see in the following markup. The img tag contains the “lazyloaded” class attribute.

    <img class="avia_image lazyloaded" src="https://site.com/wp-content/uploads/2020/03/Warren_Buffett_PNG-removebg-preview.png" alt="Warren Buffett" title="Warren Buffet Value Investing" itemprop="thumbnailUrl" data-lazy-src="https://site.com/wp-content/uploads/2020/03/Warren_Buffett_PNG-removebg-preview.png" data-was-processed="true" width="470" height="532">
    

    According to the page speed insight tool, the page contains too many elements — 1895 in total. You should consider trimming them down a bit or move the other content in a different page.

    You should also increase the cache expiry or lifetime of the resources.

    // https://web.dev/uses-long-cache-ttl?utm_source=lighthouse&utm_medium=unknown

    Best regards,
    Ismael

    #1209444

    Hi,

    Sorry for the delay. You can try this snippet in the functions.php file to adjust how the product thumbnails are cropped.

    add_filter('woocommerce_get_image_size_thumbnail', function($size) {
    	$size = array (
    		'width' => 9999,
    		'height' => 9999,
    		'crop' => array( 'center', 'top'),
    	);
    	return $size;
    },10, 1);
    

    Use this plugin to regenerate the thumbnails.

    // https://wordpress.org/plugins/regenerate-thumbnails/

    Best regards,
    Ismael

    #1209435

    Hi,

    We adjusted the snippet a bit. Please add it again, then regenerate the images.

    
    add_filter('avf_modify_thumb_size', 'my_modified_thumb_size', 10, 1 );
    
    function my_modified_thumb_size( $img_size )
    {
    	$img_size['entry_with_sidebar']['crop'] = false;
    	$img_size['entry_without_sidebar']['crop'] = false;
    	return $img_size;
    }
    

    You can use this plugin to regenerate the thumbnails.

    // https://wordpress.org/plugins/regenerate-thumbnails/

    Best regards,
    Ismael

    originmkt
    Participant

    Hi Guys,

    I updated the PHP version from 5.6 to 7.2, and I am getting a fatal error trying to enter to any product page.

    – Example: https://maiar.com.ar/productos/aceites-esenciales/aceite-esencial-de-albahaca/
    – PHP Version: 7.2.17
    – WordPress Version: 5.4.1
    Woocommerce Version: 4.0.1
    – Enfold Version: 3.4.3
    – Full error log:
    Fatal error: Uncaught ArgumentCountError: Too few arguments to function avia_woocommerce_gallery_thumbnail_description(), 2 passed in /www/maiar.com.ar/htdocs/wp-includes/class-wp-hook.php on line 287 and exactly 4 expected in /www/maiar.com.ar/htdocs/wp-content/themes/enfold/config-woocommerce/config.php:1354 Stack trace: #0 /www/maiar.com.ar/htdocs/wp-includes/class-wp-hook.php(287): avia_woocommerce_gallery_thumbnail_description(‘<div data-thumb…’, ‘1064’) #1 /www/maiar.com.ar/htdocs/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘<div data-thumb…’, Array) #2 /www/maiar.com.ar/htdocs/wp-content/plugins/woocommerce/templates/single-product/product-image.php(50): apply_filters(‘woocommerce_sin…’, ‘<div data-thumb…’, ‘1064’) #3 /www/maiar.com.ar/htdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php(251): include(‘/www/maiar.com….’) #4 /www/maiar.com.ar/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1438): wc_get_template(‘single-product/…’) #5 /www/maiar.com.ar/htd in /www/maiar.com.ar/htdocs/wp-content/themes/enfold/config-woocommerce/config.php on line 1354

    Thanks for your help in advance.

    • This topic was modified 5 years, 10 months ago by originmkt.
    #1208836
    Sergio
    Guest

    Good afternoon,
    I had to fill this form because it was imposible to me find a way on the forum. We already own a enfold theme , its awesome! but i notice whene i create any post or page or portfolio item and load an image , in the wp-content->uploads-> .. appears various scaled thumbnails (up to more than 10 copies each) so the problem right now we have a folder with mor than 2G of images .
    The question is, There is a way to prevent this behavior ?
    Thanks

    #1208634

    just realized they do display related posts through the cateogories or tabs. however the styling is now how i want it to look, there are only two options – tool tip and thumbnail and post title. I want to be able to show them in a row of 3 with a large featured image, title, short blurb and read more link. is that possible?

    Or is there is a way to add a script that shows blog element that’d be ideal. Thanks!!

    • This reply was modified 5 years, 11 months ago by bobfurgo.
    #1208530

    Hey westefan,

    Sorry for the late reply!

    Please use this plugin – https://wordpress.org/plugins/simple-image-sizes/ and update “entry_with_sidebar” and “entry_without_sidebar” image sizes and regenerate thumbnails :)

    Best regards,
    Yigit

    #1208090

    In reply to: Grid view pixellated

    Hey glodesign,

    Thank you for the inquiry.

    You can adjust the default catalog image size from the Appearance > Customize > Woocommerce > Product Images panel. Look for the Thumbnail width field and specify the maximum width value of the catalog images in pixels.

    Best regards,
    Ismael

    #1208085

    In reply to: Pics in Galleries

    Hi,

    Thank you for the update.

    You can increase the size of the medium thumbnail in the Settings > Media panel. Make sure that the uploaded images are actually larger than the specified dimensions. You will also have to regenerate the thumbnails or upload the image again after adjusting the thumbnail size. Please use the following plugin.

    // https://wordpress.org/plugins/regenerate-thumbnails/

    Best regards,
    Ismael

    #1208055

    Jordan there are multiple pages

    1) So https://www.britishartportfolio.co.uk/art-portfolio-item/jill-barthorpe-three-apples/ keep the main image but hide thumbnail of Jill Barthorpe three apples

    2) https://www.britishartportfolio.co.uk/art-portfolio-item/jill-barthorpe-star-vase-with-oranges/keep the main image but hide thumbnail of Jill Barthorpe star vase with oranges etc

    What I want is under the heading of each portfolio item/image is to hide the duplicated thumbnail under the “Other Works’ Heading for all posts/artists

    Hope this makes sense

    Pete

Viewing 30 results - 1,681 through 1,710 (of 10,095 total)