Forum Replies Created

Viewing 30 posts - 17,911 through 17,940 (of 67,463 total)
  • Author
    Posts
  • in reply to: Force autoplay of videos at mobile devices #1229201

    Hey Kritzfred,

    is it possible to force autoplay of videos at mobile devices?

    This should be possible as long as the video is muted and that the user allowed media autoplay in his/her browser.

    // https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

    Chrome’s autoplay policies are simple:

    Muted autoplay is always allowed.
    Autoplay with sound is allowed if:
    User has interacted with the domain (click, tap, etc.).
    On desktop, the user’s Media Engagement Index threshold has been crossed, meaning the user has previously played video with sound.
    The user has added the site to their home screen on mobile or installed the PWA on desktop.
    Top frames can delegate autoplay permission to their iframes to allow autoplay with sound.

    Enabling autoplay on Safari: https://support.apple.com/en-ph/guide/safari/ibrw29c6ecf8/mac

    Best regards,
    Ismael

    in reply to: One Pager Menu fx #1229198

    Hey hund-herrchen,

    Thank you for the inquiry.

    You have to apply the anchors or ID to the color section element instead of creating the anchor elements manually.

    We found this element inside the color section:

    
    <div class="mp1" id="leadership"></div>
    

    Instead of doing that, try to apply the ID “leadership” to the color section’s Advanced > Developer Settings > ID attribute field.

    Best regards,
    Ismael

    Hi,

    Sorry for the delay. We are not yet sure why the issue occurs, but you can easily suppress the notices by setting the WP_DEBUG or WP_DEBUG_DISPLAY in the wp-config.php file to false.

    // https://codex.wordpress.org/WP_DEBUG#Usage

    Best regards,
    Ismael

    in reply to: full screen slider image not resizing #1229194

    Hey simplicityltd,

    Thank you for the inquiry.

    This is probably an issue with fixed backgrounds as described in the following thread.

    // https://kriesi.at/support/topic/ipad-and-mobile-images-not-appearing-as-background-in-row-grids/#post-1225784

    To fix the issue, please try this code in the Quick CSS field or the child theme’s style.css file.

    @media only screen and (max-width: 1366px) {
        .avia-fullscreen-slider .avia-slideshow[data-image_attachment="fixed"] > ul > li {
            background-attachment: scroll !important;
        }
    }

    Best regards,
    Ismael

    Hi,

    Thank you for the info. Please don’t hesitate to open another thread if you need anything else. We’ll close this thread for now.

    Have a nice day.

    Best regards,
    Ismael

    in reply to: post-meta-infos position and visibility #1229190

    Hi,

    Glad it’s fixed. Let us know if you need anything else.

    Best regards,
    Ismael

    Hi,

    Sorry for the delay. This looks like an issue with the Performance > File Compression settings. Please try to deactivate the file compression settings temporarily and remove the browser cache. Let us know if it helps.

    Best regards,
    Ismael

    in reply to: z-index problem #1229178

    Hi,

    Thank you for the update.

    The site above is not loading properly. Did you move the site somewhere else? Please provide the new URL so that we can check it again, and a screenshot will help as well.

    Best regards,
    Ismael

    in reply to: Event Tickets not working #1229161

    Hi!

    Thank you for the update.

    Yes, please create a duplicate of the site so that we can test it properly. Additional info from the plugin authors will also help.

    Regards,
    Ismael

    in reply to: Portfolio Page Display Bug #1229154

    Hi,

    We added this css code in the Quick CSS field to increase the width of the portfolio container and align them with the category sort.

    #top .isotope-item.special_av_fullwidth .inner-entry {
    	width: 100%;
    }
    

    Screenshot: https://imgur.com/aKA3IlA

    To fix the spacing issue, try to use this script in the functions.php file:

    add_action('wp_footer', 'ava_auto_resize');
    function ava_auto_resize(){
    ?>
    <script>
    (function($){	
    	var int = window.setInterval(function(){
    		$(window).trigger('resize');
    	}, 1000);
    	
    	$(window).load(function () {	
    		setTimeout(function() {
    			clearInterval(int);
    		}, 1000);
    	});
    })(jQuery);
    </script>
    <?php
    }
    

    Thank you for your patience.

    Best regards,
    Ismael

    in reply to: own social media profile icon #1229148

    Hey rallegrafix,

    Thank you for the inquiry.

    We can use the avf_social_icons_options filter to include another social media profile in the list, and the avf_default_icons filter to specify the icon to use for the new social media item.

    Usage example can be found here: https://kriesi.at/support/topic/social-profiles-github-tiktok-and-telegram/#post-1209162

    Best regards,
    Ismael

    in reply to: Bild oder Video ohne Rand #1229145

    Hey heufti65,

    Thank you for the inquiry.

    Could you please provide a screenshot of the layout that you want to create? To create a container that spans the full width of the browser screen, try using the Grid Row element

    Best regards,
    Ismael

    in reply to: Header center, menu below, scroll out only logo. #1229135

    Hi,

    Thank you for the update.

    You can prevent the sticky menu from displaying too early by controlling the window.pageYOffset value. In the script, look for this line:

    if (window.pageYOffset > sticky) {
    

    Replace it with:

    if (window.pageYOffset - 200 > sticky) {
    

    Best regards,
    Ismael

    in reply to: tab icon – shaping #1229134

    Hi,

    The tab option is missing because the option string or text is not properly translated. Please replace the fr_FR language files in the enfold > lang folder. (see private field)

    Thank you for your patience.

    Best regards,
    Ismael

    Hey moscom,

    Thank you for the inquiry.

    Have you tried to switch the classic editor and use the theme’s shortcode wand? The recipe plugins may not be fully compatible with the advance layout builder, but they should work fine in the classic editor and you should still be able to insert builder elements using the shortcode wand in the Visual editor.

    You can switch from the Block Editor to the Classic one in the Enfold > Theme Options panel.

    Best regards,
    Ismael

    in reply to: copyright images #1228898

    Hi,

    Thank you for the inquiry,

    You can get the value of the copyright option by using the get_post_meta function.

    get_post_meta( $post->ID, '_avia_attachment_copyright', true )
    

    And to filter or adjust the default WordPress image markup, use the get_image_tag filter.

    add_filter('get_image_tag', function($html, $id, $alt, $title, $align, $size) {
         $copyright = get_post_meta( $post->ID, '_avia_attachment_copyright', true );
         // do something to $html before returning it
         if($copyright) {
             $html .= "<span>{$copyright}</span>";
         }
         return $html;
    }, 10, 6);
    

    Another solution is to add a new attribute to the attachment image using the wp_get_attachment_image_attributes filter, but it might require additional script to extract the value of the new attribute and render it in the frontend.

    Best regards,
    Ismael

    in reply to: Customizing hotspots #1228884

    Hi,


    @danowen777
    : Thanks for helping!


    @ESWEENEY113
    : Please don’t hesitate to open another thread if you need anything else. We’ll close this thread for now. :)

    Have a nice day.

    Best regards,
    Ismael

    Hi,

    Thank you for the update.

    We can use the avf_ajax_search_label_names filter to change the post type title. Usage examples can be found here:

    // https://kriesi.at/support/topic/search-bar-8/#post-1003538
    // https://kriesi.at/support/topic/change-products-wording-on-ajax-search-menu/#post-866050

    To sort the results by post type, try to use this snippet in the functions.php file.

    function avf_order_search_by_posttype($orderby){
        if (!is_admin() && is_search()) :
            global $wpdb;
            $orderby =
                "
                CASE WHEN {$wpdb->prefix}posts.post_type = 'portfolio' THEN '1' 
                     WHEN {$wpdb->prefix}posts.post_type = 'product' THEN '2' 
                     WHEN {$wpdb->prefix}posts.post_type = 'post' THEN '3'  
                ELSE {$wpdb->prefix}posts.post_type END ASC, 
                {$wpdb->prefix}posts.post_title ASC";
        endif;
        return $orderby;
    }
    add_filter('posts_orderby', 'avf_order_search_by_posttype', 999, 1);
    

    // https://codex.wordpress.org/Plugin_API/Filter_Reference/posts_orderby

    Best regards,
    Ismael

    in reply to: Tab section links #1228877

    Hey Sergio,

    Thank you for the inquiry.

    You can use this snippet to make the window automatically scroll to the tab section element on page load.

    add_action('wp_footer', function() {
    ?>
    <script>
    document.addEventListener("DOMContentLoaded", function() {
         var anchor = window.location.hash.substr(1);
         var tabTitle = document.querySelector('.av-section-tab-title[href="#' + anchor +'"]');
    
         if(tabTitle) {
               var position = tabTitle.getBoundingClientRect().top;
               window.scrollTo(0, position);
         }
    
         return false;
    });
    </script>
    <?php
    }, 9999);
    

    Best regards,
    Ismael

    Hey danowen777,

    Thank you for the inquiry.

    The theme automatically formats the content of the tooltip and encodes some characters in the front and backend, which is probably why it’s stripping some of the player markup. If you want to disable the formatting, we have to modify the enfold\config-templatebuilder\avia-shortcodes\image_hotspots\image_hotspots.php, look for this code around line 854:

    $output .= "<div class='av-image-hotspot av-image-hotspot-{$counter} {$hotspot_tooltip_display}' data-avia-tooltip-position='{$data_pos}' data-avia-tooltip-alignment='{$align}' data-avia-tooltip-class='{$tooltip_width} {$tooltip_pos} {$extraClass} {$tooltip_style} av-tt-hotspot' data-avia-tooltip='".esc_attr(ShortcodeHelper::avia_apply_autop($content))."' style='{$pos_string}'>";
    

    Remove the esc_attr and avia_apply_autop wrapping the $content.

    $output .= "<div class='av-image-hotspot av-image-hotspot-{$counter} {$hotspot_tooltip_display}' data-avia-tooltip-position='{$data_pos}' data-avia-tooltip-alignment='{$align}' data-avia-tooltip-class='{$tooltip_width} {$tooltip_pos} {$extraClass} {$tooltip_style} av-tt-hotspot' data-avia-tooltip='".$content."' style='{$pos_string}'>";
    

    Best regards,
    Ismael

    Hi,

    Thank you for the info.

    You can pull the mega menu upwards with this css code.

    #header_main_alternate {
    	margin-top: -50px;
    }
    

    Please don’t forget to toggle or disable the Performance > File Compression settings after adding the code.

    Best regards,
    Ismael

    in reply to: Shortcodes don't work in post header #1228701

    Hi,

    Thank you for the update.

    Where can we see the issue again? The content slider is working properly in post page, but the top bar layout is a bit different in the post compare to the home page — the menu items are missing. (see private field)

    Best regards,
    Ismael

    in reply to: Breadcrumbs in Blog archive page layout #1228700

    Hi,

    Do you want to remove the category blog when you’re on the single post page? What happens when you remove the breadcrumb filter above?

    You may need to replace is_archive with is_singular(‘post’).

    if(!is_archive()) {
    

    .. to:

    if(!is_singular('post')) {
    

    This should remove the categories from the breadcrumb, or prevent them from displaying.

    A direct link to a post with the breadcrumb issue will help.

    Best regards,
    Ismael

    in reply to: Breakpoints on tablet #1228698

    Hi,

    Thanks for chiming in.

    You have to apply the order property to the child elements or the columns, and the flex display property should be applied to the parent container, in this case the color section.

    // https://www.w3schools.com/cssref/css3_pr_order.asp
    // https://www.w3schools.com/css/css3_flexbox.asp

    The class and ID attribute can be added in the element’s Advanced > Developer Settings toggle.

    If you want to learn more about the flexbox layout, please check this article.

    // https://css-tricks.com/snippets/css/a-guide-to-flexbox/

    Best regards,
    Ismael

    in reply to: Enfold Layer Slider & Polylang – Serious bug! #1228696

    Hi,

    Are you sure that you’re on the right page when selecting the slider? We created two sliders on our installation, one for EN and another for ES and they both show up on their designated pages.

    Please check these screenshots.

    ES: https://imgur.com/dcwg6FV
    EN: https://imgur.com/h5FJMMO

    When editing a translated page, try to go directly to the Pages panel after switching to a different language, then select the page from there.

    Best regards,
    Ismael

    in reply to: Various Bugs on my landing pages #1228690

    Hi,

    Sorry for the delay. We didn’t really find any errors in the page aside from the duplicated scrollbar. Do you happen to know why the scrollbar is duplicated? Did you add any css modifications?

    Is it possible to clone the site to a sub domain or a staging environment so that we can test it properly?

    Best regards,
    Ismael

    in reply to: Edit "Product Page" in Woocommerce (Enfold) #1228688

    Hi,

    Glad to know that it’s working now and thank you for sharing the info. We’ll close the thread now.

    Have a nice day.

    Best regards,
    Ismael

    Hi,

    Thank you for the update.

    This looks like a plugin error because SP_PCP_Resize.process() is not a theme function. To fix the issue with the file compression, try to disable the timestamp or add a custom one in the Performance > File Compression section, enable the Show advanced options and set the Unique timestamp of merged files to the second option.

    Best regards,
    Ismael

    Hi,

    Thank you for the update.

    That is surely possible but it’s not available in the theme by default. Unfortunately, it will require modifications that are beyond the scope of support, so you might have to hire someone else.

    What you need to do is create a link with a specific parameter or payload containing info about the text element or maybe a scroll position value within the view port and the id of the toggle that you want to open, and based on this value the script will automatically cause the window to scroll until it reaches the position specified in the parameter. The URL will look something like this:

    https://site.com/page/?position=500&toggle=4
    

    The script will probably look something like this:

    var url = new URL(window.location.href);
    var pos = url.searchParams.get("position");
    var toggle = url.searchParams.get("toggle");
    // trigger click event for toggle 4
    // scroll to position
    

    Best regards,
    Ismael

    Hi,

    Thank you for the info.

    Did you install or activate any lazy loading option in your site? It probably causes the images to load after the scripts.

    One solution is to load the images asynchronously instead of waiting for other resources to load, but it will require a bit of modification. For the color section, we have to modify the themes\enfold\config-templatebuilder\avia-shortcodes\section.php file and remove the background image property. We will then replace it with a data-src attribute containing the image URL.

    Please replace the section.php file with this code.

    // https://pastebin.com/0ZiZb5iE

    Then add this snippet in the functions.php file.

    add_action('wp_head', function() {
     ?>
    	<script>
    		(() => {
    		'use strict';
     		const objects = document.getElementsByClassName('asyncImage');  
    		
    		Array.from(objects).map((item) => {
    			const img = new Image();
    			img.src = item.dataset.src;
    			
    			img.onload = () => {
    				item.classList.remove('asyncImage');
    				return item.nodeName === 'IMG' ? 
    				item.src = item.dataset.src :        
    				item.style.backgroundImage = url(${item.dataset.src})
    			};
    		});
    	})();
    	</script>
     <?php
    }, 999);
    

    After that, edit the color section element, go to the Advanced tab and use “asyncImage” as a Custom CSS Class name. The script will look for the color section with the “asyncImage” class attribute, load the URL inside the data-src attribute and place it as a background when it’s is fully loaded. This will all happen while the page is loading.

    This is from: https://medium.com/front-end-weekly/how-to-optimize-image-loading-on-your-website-855020fb41ae

    Best regards,
    Ismael

Viewing 30 posts - 17,911 through 17,940 (of 67,463 total)