Forum Replies Created

Viewing 30 posts - 12,631 through 12,660 (of 66,745 total)
  • Author
    Posts
  • in reply to: Font glitch #1321342

    Hi,

    Try to modify the enfold\framework\php\class-style-generator.php file and look for this code around line 767.

    document.getElementsByTagName('head')[0].appendChild(f);
    

    Replace it with:

    document.getElementsByTagName('head')[0].prepend(f);
    

    This should prepend the font files at the very top of the head tag, loading them first. Let us know if that helps.

    Best regards,
    Ismael

    in reply to: exclude images from srcset responsive react. #1321341

    Hi,

    That could also work. We have to modify the config-templatebuilder\avia-shortcodes\slideshow_fullsize\slideshow_fullsize.php file, around line 1073, add this code below to pass the class names to the avia_slideshow object.

    $slider->set_extra_class( $meta["el_class"] );
    

    In the config-templatebuilder\avia-shortcodes\av-helper-slideshow.php, around line 789, we could check if the class name “nosrcset” exists or not.

    	if(false == strpos($this->config['class'], "nosrcset")) {
    							$img_tag = Av_Responsive_Images()->make_image_responsive( $img_tag, $slide->ID, $this->config['lazy_loading'] );
    						}
    

    The srcset attribute should not be added whenever the “nosrcset” is used as a custom css class name for a Fullwidth Slider element.

    Best regards,
    Ismael

    in reply to: masonry gallery sort option #1321337

    Hi,

    Sorry for the delay. Try to replace the filter with the following code to sort the masonry items by date in descending order.

    add_filter("avia_masonry_entries_query", function($query) {
        $query["orderby"] = "date";
        $query["order"] = "DESC";
        return $query;
    }, 10, 1);

    Thank you for your patience.

    Best regards,
    Ismael

    in reply to: Edit default Ajax search for Taxonomy Terms #1321336

    Hi,

    You can copy the whole avia_ajax_search function in the child theme’s functions.php file, without the function_exists check. This should override original function in the parent theme.

    Thank you for your patience.

    Best regards,
    Ismael

    in reply to: add class to get_the_term_list #1321335

    Hi,

    d i don’t really know what you mean about terms?

    Terms are items inside a specific taxonomy. The default post category is an example of a taxonomy where you can create different terms. Please check the documentation for more info.

    // https://wordpress.org/support/article/taxonomies/

    We are not really sure how your taxonomies or custom post types are set up but using taxonomy for prices is not really recommended. You should attach a price to a post using custom fields instead of taxonomy terms.

    Best regards,
    Ismael

    in reply to: ACF Groups Showing In Masonry Element #1321334

    Hi,

    Thank you for the update.

    Did you remove the previous filter? Please make sure that there are no duplicate function in the functions.php file. And try to copy the snippet directly from the forum, instead of your email.

    Best regards,
    Ismael

    in reply to: Copyright option for images including HTML #1321330

    Hi,

    Alright. Please do not hesitate to open another thread if you need anything else. We will close this one for now.

    Have a nice day.

    Best regards,
    Ismael

    in reply to: Work Sans Font Weight Issues #1321329

    Hi,

    @tiffanytnttobo: You have to add the code in the functions.php file.


    @Guenni007
    : In the filter above, we are actually appending or pushing the new font in the end of the array, which is why the new font is located at the bottom of the list. We might be able to adjust the order of the fonts by re-sorting the $fonts array.

    Best regards,
    Ismael

    in reply to: [av_privacy_google_tracking] button not working #1321328

    Hi,

    Thank you for the info.

    The toggle within the modal privacy window is still clickable as shown in the screenshots below. Which browser are you using?

    Screenshot: https://postimg.cc/gallery/vHL2ZmR/b357e182

    Best regards,
    Ismael

    in reply to: Bug with Masonry and av-sort-by-term #1321323

    Hi,

    No problem. Let us know if you need anything else. We will close this thread for now.

    Have a nice day.

    Best regards,
    Ismael

    in reply to: How to dequeue analytics.js? #1321321

    Hi,

    Alright. Glad to know that you managed to figure out the issue. Please feel free to open another thread if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

    in reply to: Hello, how can i have arrow in these submenu? #1321320

    Hi,

    Thank you for the update.

    You might have forgotten the site domain or URL. Please include in the private field along with the login details.

    Best regards,
    Ismael

    in reply to: Magazine filter and permalinks #1321319

    Hi,

    Thank you for the update.

    You have to place the magazine/magazine.php file inside the shortcodes folder within the child theme directory. That is the new avia-shortcodes folder. So the new folder structure would be yourchildtheme/shortcodes/magazine/*(magazine shortcode files including php, js etc). And yes, you have to adjust the script path in the wp_enqueue_script function.

    Best regards,
    Ismael

    Hi,

    Great! Glad to know that it is working correctly now. Please feel free to open another thread if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

    in reply to: exclude images from srcset responsive react. #1321208

    Hi,

    This is not going to be included in the next patch. We are just trying to provide a possible solution. You could also remove the make_image_responsive function from the enfold/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php line 787.

    $img_tag = "<img src='{$img[0]}' width='{$img[1]}' height='{$img[2]}' title='{$linktitle}' alt='{$linkalt}' {$markup_url} {$img_style} />";
    						$img_tag = Av_Responsive_Images()->make_image_responsive( $img_tag, $slide->ID, $this->config['lazy_loading'] );
    

    Maybe add a new element option or toggle in the enfold/config-templatebuilder/avia-template-builder/php/class-popup-templates.php where you can disable/enable srcset attribute or responsive images for the slider. Something like:

    /**
    		 * Responsive Images Option
    		 * 
    		 * @since 4.8.6.2
    		 * @param array $element
    		 * @return array
    		 */
    		protected function responsive_image_toggle( array $element )
    		{
    			$desc  = __( 'Enable responsive images or add srcset attribute to slider images.', 'avia_framework' ) . ' '; 
    
    			$id = isset( $element['id'] ) && ! empty( $element['id'] ) ? $element['id'] : 'responsive_srcset';
    			$std = isset( $element['std'] ) && in_array( $element['std'] , array( 'disabled', 'enabled' ) ) ? $element['std'] : 'enabled';
    			$required = isset( $element['required'] ) && is_array( $element['required'] ) ? $element['required'] : array();
    			$lockable = isset( $element['lockable'] ) ? $element['lockable'] : false;
    
    			$c = array(
    							array(
    								'name'		=> __( 'Responsive Images', 'avia_framework' ),
    								'desc'		=> $desc,
    								'id'		=> $id,
    								'type'		=> 'select',
    								'std'		=> $std,
    								'lockable'	=> $lockable,
    								'required'	=> $required,
    								'subtype'	=> array(
    													__( 'Add srcset attribute', 'avia_framework' )	=> 'enabled',
    													__( 'Remove srcset attribute', 'avia_framework' )		=> 'disabled'
    												)
    							)
    				);
    
    			if( isset( $element['no_toggle'] ) && true === $element['no_toggle'] )
    			{
    				$template = $c;
    			}
    			else
    			{
    				$template = array(
    								array(	
    									'type'			=> 'template',
    									'template_id'	=> 'toggle',
    									'title'			=> __( 'Performance', 'avia_framework' ),
    									'content'		=> $c 
    								),
    					);
    			}
    
    			return $template;
    		}
    
    

    You can then add a condition like so:

    $img_tag = "<img src='{$img[0]}' width='{$img[1]}' height='{$img[2]}' title='{$linktitle}' alt='{$linkalt}' {$markup_url} {$img_style} />";
    if($responsive_srcset == "enabled") {
        $img_tag = Av_Responsive_Images()->make_image_responsive( $img_tag, $slide->ID, $this->config['lazy_loading'] );
    }
    

    Best regards,
    Ismael

    in reply to: Hello, how can i have arrow in these submenu? #1321201

    Hi,

    Thank you for the inquiry.

    You might have enabled the mega menu option before. Please edit one of the menu items in the Appearance > Menus panel, then tick the Mega Menu checkbox.

    Best regards,
    Ismael

    in reply to: delete this withe submenu #1321200

    Hi,

    Thank you for the inquiry.

    Are you trying to remove the sub menu? Please try to edit the main menu in the Appearance > Menus panel. Make sure that all child or sub items are removed. If the issue persists, please post the site URL in the private field so that we can check the site directly.

    Best regards,
    Ismael

    in reply to: Bug with Masonry and av-sort-by-term #1321199

    Hey Ludovic,

    Thank you for the inquiry.

    The issue occurs because of the following css code in the style.css file.

    .av-masonry a.av-masonry-entry {
        transition: 0.6s all;
    }

    It repeats the transition causing the items to slide back from where they start.

    Best regards,
    Ismael

    Hey Grobi,

    Thank you for the inquiry.

    Did you enable the parallax effect? Please note that this effect is disabled on mobile devices by default. The option “background attachment fixed” will also not work on iOS devices when the background size is set to “cover”. Please check the following link.

    // https://caniuse.com/background-attachment

    iOS has an issue preventing background-attachment: fixed from being used with background-size: cover – see details

    Best regards,
    Ismael

    in reply to: Font glitch #1321146

    Hi,

    For some reason, the font files (Lato, Opens Sans) in the above site are added last, only after every stylesheets and scripts are loaded, which causes FOUT. On our installation, the font files are loaded first as shown in the screenshot below.

    finansgruppen: https://postimg.cc/FfDJ90Xn
    localsite: https://postimg.cc/w7TZMpNf

    Did you modify any of the theme files?

    Best regards,
    Ismael

    in reply to: Styling to Column not showing #1321144

    Hey Kyle,

    Thank you for the inquiry.

    The background of the columns is actually set to white but the text color inherits the color of the container, so it is also white. You may need to adjust text block’s Styling > Fonts Colors > Font Colors settings to the second option and define a Custom Font Color.

    Best regards,
    Ismael

    in reply to: Update safe or not? #1321143

    Hi,

    Stagesites are for developing.

    Yes, that is true. But staging sites can be used for testing as well. And yes, we test the features before releasing the theme but, unfortunately, we cannot guarantee a free-error update for every single site because of obvious reasons such as differences in installed plugins, server configurations, added script, custom modifications and other factors.

    Please try to install the latest version on a staging site first, or create a site backup before updating the theme. Let us know how it goes.

    Best regards,
    Ismael

    in reply to: How to dequeue analytics.js? #1321124

    Hey elektrokat,

    Thank you for the inquiry.

    The analytics script should not load if the analytics ID is not provided or the script in the Enfold > Google Services > Google Analytics field does not exist. Where can we see the issue? Please provide the site URL in the private field.

    Best regards,
    Ismael

    in reply to: Error message of type E_ERROR #1321123

    Hi,

    Thanks for the follow up.

    The base Woocommerce plugin should be turned on before enabling the WooCommerce Shipping & Tax extension. The base plugin is disabled previously, which is probably why the errors occurred. Make sure to enable the base Woocommerce plugin before enabling its extensions.

    Best regards,
    Ismael

    Hey bemodesign,

    Thank you for the inquiry.

    We cannot reproduce the issue on our end — the headings look fine as shown in the screenshot below. Would you mind providing a screenshot?

    Screenshot: https://postimg.cc/VdNvkqTM

    Best regards,
    Ismael

    in reply to: Search box in overlay Search box #1321121

    Hi,

    Thank you for following up. Glad to know that the modification is working.

    To move the search form before the CHI SIAMO menu item, try to replace the script with the following.

    
    // add search bar to mobile menu
    function ava_custom_script_mod_search_mobile()
    {
    ?>
    	<script>
    		(function($) {
    			$(document).ready(function() {		
    				var page   = window.location.href;
    				var search = '<form action="'+page+'" method="get" class=""><div><input type="submit" value="?" id="searchsubmit" class="button avia-font-entypo-fontello"><input type="text" id="s" name="s" value="" placeholder="Search"></div></form>';
    	
    				$('.av-burger-menu-main a').on('click', function() {
    					if($(".av-mobile-search").find('form').length == 1) return;
    					setTimeout(() => {
    						$("<li class='av-mobile-search av-active-burger-items'>" + search + "</div>").insertAfter('.menu-item-178580');
    					}, 300);	
    				});
    			});
    		})(jQuery);
    	</script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_mod_search_mobile', 10000);
    

    Best regards,
    Ismael

    in reply to: WooCommerce Blocks within Enfold #1321119

    Hey npmcgrew,

    Thank you for the inquiry.

    The block editor is actually enabled by default, but you can toggle or choose a different editor in the Enfold > Theme Options > Select Your Editor settings. Make sure that the Classic Editor plugin is not active.

    Best regards,
    Ismael

    Hi,

    No problem. Please let us know if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

    in reply to: Changes to website not saving #1321116

    Hey norwestarch,

    Thank you for the inquiry.

    Have you tried checking the site on incognito mode? Are you making any css or script changes? Please temporarily disable the Enfold > Performance > File Compression settings and the cache plugins, then try to check the site on incognito mode, or disable browser cache temporarily.

    Best regards,
    Ismael

    in reply to: Can't find Related Posts function anywhere #1321031

    Hey SpeedofLike,

    Thank you for the inquiry.

    Looks like you are using the Advance Layout Builder (ALB) to create the content of the posts. You may have to use any of the posts elements (blog posts, magazine, post slider) and add it to the post to create a related posts section. However, if you would like to automatically add a related post section for post created using the ALB, please try this snippet in the functions.php file.

    function avia_add_social_toolbar_template_builder($content = "")
    {
        if (!is_singular("post")) return $content;
        ob_start();
        get_template_part( 'includes/related-posts' );
        $related = ob_get_clean();
    
        $content .= $related;
        $content .= '';
        return $content;
    }
    add_filter('avf_template_builder_content', 'avia_add_social_toolbar_template_builder', 10, 1);
    

    Best regards,
    Ismael

Viewing 30 posts - 12,631 through 12,660 (of 66,745 total)