Forum Replies Created

Viewing 30 posts - 181 through 210 (of 64,331 total)
  • Author
    Posts
  • in reply to: remove container wrappers around code widget #1473199

    Hey philipe,

    Thank you for the inquiry.

    Try to wrap the code block inside a color section, then set the width of the color section container to 100%. Please check the documentation below for more info:

    // https://kriesi.at/documentation/enfold/color-section/#color-section-with-100-content-width

    You can also apply the background video directly to the Color Section, Fullscreen Slider, or Layer Slider element.

    Best regards,
    Ismael

    in reply to: Close drop-down menus with keyboard control via ESC #1473198

    Hi,

    UPDATE: We may have found the issue with the script and edited it a bit — please try it again.

    Best regards,
    Ismael

    in reply to: Close drop-down menus with keyboard control via ESC #1473197

    Hi,

    Thank you for the update.

    The script above should not affect the behavior of the submenus in mobile view. Would you mind providing a screenshot of the issue? You can use platforms like Savvyify, Imgur, or Dropbox. The submenus were still visible inside the burger menu when we checked.

    Best regards,
    Ismael

    in reply to: Template Editing Events #1473196

    Hey Berthold,

    Thank you for the inquiry.

    You need to register a new shortcode path in the child theme first by adding this filter in the functions.php file:

    // https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    Create a folder called “shortcodes,” then place the files of the elements or shortcodes that you’d like to include, modify, or override.

    Best regards,
    Ismael

    Hey henningtillmann,

    Thank you for the inquiry.

    You can try this hook in the functions.php file, but make sure to create a site backup or restore point before doing so:

    function ava_update_custom_fields_for_post_type() {
        $post_type = 'your_post_type';
    
        $posts = get_posts(array(
            'post_type' => $post_type,
            'posts_per_page' => -1,
            'post_status' => 'any',
            'fields' => 'ids',
        ));
    
        if (!empty($posts)) {
            foreach ($posts as $post_id) {
                update_post_meta($post_id, '_aviaLayoutBuilder_active', 'active');
                update_post_meta($post_id, '_aviaLayoutBuilderCleanData', '[av_custom_layout link=\'alb_custom_layout,653\' av_uid=\'av-m3u7m8lu\' sc_version=\'1.0\']');
                update_post_meta($post_id, '_avia_builder_shortcode_tree', 'a:1:{i:0;a:3:{s:3:"tag";s:16:"av_custom_layout";s:7:"content";a:0:{}s:5:"index";i:0;}}');
                update_post_meta($post_id, '_avia_sc_parser_state', 'disabled');
                update_post_meta($post_id, '_av_alb_posts_elements_state', 'a:1:{s:16:"av_custom_layout";b:1;}');
                update_post_meta($post_id, '_av_el_mgr_version', '1.0');
            }
        }
    }
    
    add_action('init', 'ava_update_custom_fields_for_post_type');
    

    Just refresh the dashboard once, then remove the hook immediately. This will create the necessary custom fields for each item in the custom post type and enable the ALB automatically. Make sure to update the value 653 with the actual ID of the custom layout:

    update_post_meta($post_id, '_aviaLayoutBuilderCleanData', '[av_custom_layout link=\'alb_custom_layout,653\' av_uid=\'av-m3u7m8lu\' sc_version=\'1.0\']');
    

    And place the name or slug of the post type here:

    $post_type = 'your_post_type';
    

    Best regards,
    Ismael

    in reply to: Masonry Gallery with Button in Caption #1473194

    Hey Orenishii,

    Thank you for the inquiry.

    It’s possible to add a Custom Link to each item in the Masonry Gallery, then use this filter to create product button which links to the external URL:

    function avf_view_product_button_to_masonry_entry($content, $entry, $config) { 
        $custom_link = get_post_meta($entry['ID'], 'av-custom-link', true);
        $product_link = !empty($custom_link) ? $custom_link : get_permalink($entry['ID']);
    
        $view_product_button_html = "<div class='view-product-button'>
            <a href='" . esc_url($product_link) . "' class='button' title='" . esc_attr(get_the_title($entry['ID'])) . "'>
                View Product
            </a></div>";
    
        $content .= $view_product_button_html;
        return $content;
    }
    
    add_filter('avf_masonry_entry_content', 'avf_view_product_button_to_masonry_entry', 10, 3);
    
    

    Best regards,
    Ismael

    Hey ibuzaev,

    Thank you for the inquiry.

    Please enable the breadcrumbs and title, then add this filter in the functions.php file to remove the title on pages:

    function avf_title_args_mod( $args, $id ) {
        if ( is_page() ) {
            $args['title'] = ''; 
        } 
        return $args;
    }
    
    add_filter( 'avf_title_args', 'avf_title_args_mod', 10, 2 );
    

    Best regards,
    Ismael

    Hi,

    Thank you for the update.

    To adjust the vertical alignment of the caption, look for this css rule and adjust the bottom property to 41% or so:

    .avia-slideshow.av-desktop-hide.av-medium-hide .avia-caption {
        bottom: 31%;
        left: 50%;
        transform: translateX(-50%);
    }

    For the arrows, add this css code:

    #top .avia-slideshow-arrows a {
        top: 40%;
    }

    Best regards,
    Ismael

    in reply to: Code Element WPML issue #1473077

    Hi,

    Sorry for the delay. We are still not sure what’s causing the issue. Please provide the login details in the private field so that we can check this further.

    Best regards,
    Ismael

    in reply to: Text after TAX field, or after tax calcualtion #1473075

    Hi,

    Great! Glad to know that the changes resolved the issue. Please feel free to open another thread if you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

    in reply to: Increase caption container width in fullscreen slider #1473074

    Hi,

    Thank you for the update.

    For captions without frame, you can use this css code instead:

    .caption_bottom .slideshow_align_caption {
        text-align: center;
    }

    Best regards,
    Ismael

    in reply to: touch icon #1473073

    Hi,

    Thanks for the info @Guenni007.

    Best regards,
    Ismael

    in reply to: No pagination on author’s blog #1473071

    Hi,

    Great! Let us know if you have more questions.

    Have a nice day.

    Best regards,
    Ismael

    in reply to: Close drop-down menus with keyboard control via ESC #1473070

    Hey togetherconcept,

    Thank you for the inquiry.

    Try to add this script in the functions.php file:

    function ava_custom_accessibility_script() {
        ?>
        <script>
            (function($) {
                $(document).ready(function() {
                    $(document).keydown(function(e) {
                        if (e.keyCode === 27) {
                            $('.menu-item-has-children').each(function() {
                                var $submenu = $(this).find('.sub-menu');
                                if ($submenu.css('opacity') === '1') {
                                    $submenu.css({
                                        'opacity': '0',
                                        'visibility': 'hidden'
                                    });
                                }
                            });
                        }
                    });
                });
            })(jQuery);
        </script>
        <?php
    }
    add_action('wp_footer', 'ava_custom_accessibility_script');
    

    Best regards,
    Ismael

    Hi,

    This is great news! Glad to know that you managed to resolve the problem. Please don’t hesitate to open another thread if you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

    Hi,

    No problem! Glad we could be of help. Please let us know if you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

    in reply to: Enfold Captcha #1473067

    Hey dlambers,

    Thank you for the inquiry.

    You may need to activate the Google reCAPTCHA option for added security if the site is being targeted by spammers. You can also use another contact form plugin, such as Contact Form 7 or WPForms, and install their security extensions, like honeypot.

    Best regards,
    Ismael

    in reply to: Add a Create PDF-Button to a single Page #1473066

    Hey Michael F,

    Thank you for the inquiry.

    Where exactly would you like the print button to display? You can use template hooks to insert the button at various locations on the product page.

    Example:

    function ava_product_pdf_print_button() {
        echo do_shortcode('[bws_pdfprint display="pdf"]');
    }
    add_action( '<a href="https://automattic.pxf.io/y2XdbN/" target="_blank" rel="nofollow">woocommerce</a>_before_single_product_summary', 'ava_product_pdf_print_button', 15 );
    
    

    This may require a few css adjustments.

    Best regards,
    Ismael

    in reply to: Hide Post Date for Specific Category in Blog Posts #1473064

    Hi,

    Thank you for the update.

    The code works when we apply it directly to the browser. Please add it again and make sure to toggle or temporarily disable the Enfold > Performance > File Compression settings and purge the cache. Let us know of the result.

    Best regards,
    Ismael

    Hey simmsen,

    Thank you for the inquiry.

    Why would you need to open the burger menu with the skip link? The purpose of the “Skip to Navigation” link is to allow users to skip past the navigation and directly access the main content, not to open the menu itself.

    // https://www.w3schools.com/accessibility/accessibility_skip_links.php

    If you would like to manually create a “Skip to Navigation” link, please try using this hook:

    function ava_skip_to_content_link_header() {
        echo '<a href="#main" class="skip-to-navigation">Skip to Content</a>';
    }
    add_action( 'ava_main_header', 'ava_skip_to_content_link_header', 10 );
    

    Best regards,
    Ismael

    in reply to: Facebook Like Box Widget doesn’t work on mobile #1473061

    Hi,

    Great! Good to know you’ve found a better alternative. Please feel free to open another thread if you have any more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

    Hi,

    Thank you for the update.

    Please include this css code to adjust the arrows and the alignment of the caption text:

    #top .av-slideshow-ui .avia-slideshow-arrows a.prev-slide {
        left: 0;
    }
    
    #top .av-slideshow-ui .avia-slideshow-arrows a.next-slide {
        right: 0 !important;
    }
    
    #top .avia-slideshow .avia-caption {
        min-width: 80%;
        text-align: center;
    }

    Best regards,
    Ismael

    in reply to: Issue with ajax portfolio within tab element #1473059

    Hi,

    Thank you for the update.

    We can’t see the screenshot, 404 error. Please try to add this script in the functions.php file to resize the tab section on page load:

    function ava_custom_script_tab_section_resize() { ?>
        <script>
            (function ($) {
                $(document).ready(function () {
                    var targetElement = $('a[data-av-tab-section-title="1"]');
                    if (targetElement.length) {
                        setTimeout(function () {
                            targetElement.trigger('click');
                        }, 1000); // Optional delay to ensure other elements are ready
                    }
                });
            }(jQuery));
        </script>
    <?php }
    add_action('wp_footer', 'ava_custom_script_tab_section_resize', 99);
    

    You can use platforms like Savvyify, Imgur or Dropbox to upload and share the screenshot. Here are the steps to follow:

    1.) Visit the website of your chosen platform, such as Savvyify, Imgur or Dropbox.
    2.) Locate the option to upload a file or an image.
    3.) Select the screenshot file from your computer or device and upload it to the platform.
    4.) After the upload is complete, you will be provided with a shareable link or an embed code.
    5.) Copy the link or code and include it in your message or response to provide us with the screenshot.

    Thank you for taking the time to share the screenshot. It will help us better understand the issue you’re facing and provide appropriate assistance.

    Best regards,
    Ismael

    in reply to: add custom icon #1473058

    Hey Tim,

    Thank you for the inquiry.

    You need to convert the SVG file to an Iconfont before uploading it to the Iconfont Manager. You can use the Iconfont converter in the Fontello site. Please refer to the documentation below for more info: https://kriesi.at/documentation/enfold/icon/#adding-your-own-fontello-or-flaticon-icons-

    Best regards,
    Ismael

    in reply to: enfold child language after theme update #1473057

    Hi,

    UPDATE: Looks like the Theme Options panel are not translated. Did you add a language or lang folder in your child theme?

    Best regards,
    Ismael

    in reply to: enfold child language after theme update #1473056

    Hi,

    Thank you for the login token.

    The site and the dashboard is still in Italian when we checked. Would you mind providing a screenshot of the issue? You can use platforms like Savvyify, Imgur or Dropbox to upload and share the screenshot.

    Best regards,
    Ismael

    in reply to: touch icon #1473055

    Hey ausgesonnen,

    Thank you for the inquiry.

    You have to create an image for iOS devices that is at least 180x180px in PNG format. Name it apple-touch-icon.png, upload it to the Media Library, and add this filter to the functions.php file:

    add_filter( 'avf_favicon_final_output', 'avf_favicon_final_output_mod', 10, 3 );
    
    function avf_favicon_final_output_mod( $icon_link, $url, $type ) {
        $upload_dir = wp_get_upload_dir();
        $touch_icon_url = $upload_dir['baseurl'] . '/apple-touch-icon.png';
        $touch_icon_link = ' 	<link rel="apple-touch-icon" href="' . esc_url( $touch_icon_url ) . '">';
        return $icon_link . "\n" . $touch_icon_link;
    }
    

    Best regards,
    Ismael

    in reply to: widgets don’t work #1473054

    Hi,

    Thank you for the update.

    We get the following error in the console when we edit a Text widget. We also noticed that the site is using an older version of the theme (6.0.2). Please update to version 6.0.7 and make sure to purge the cache afterward.

    
    editor.min.js?ver=6.7.1:2 Uncaught TypeError: Cannot read properties of undefined (reading &#8216;getSelection&#8217;)
    at editor.min.js?ver=6.7.1:2:2167
    at n (editor.min.js?ver=6.7.1:2:3271)
    at HTMLDocument. (editor.min.js?ver=6.7.1:2:248)
    at C (tinymce.min.js?ver=49110-20201110:2:10800)
    at HTMLDocument.d (tinymce.min.js?ver=49110-20201110:2:10946)
    

    Best regards,
    Ismael

    in reply to: Animation starts when texts are visible in the browser #1473053

    Hi,

    Great! Glad to know that everything is working correctly now. Please feel free to open another thread if you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

    in reply to: iFrames and lightbox for various views #1473052

    Hi,

    Try updating the selector “.av-masonry.mixed-contenttype” to “.mixed-contenttype” in the script, or use the following code:

    function av_lightbox_with_mixed_content_type() { 
    ?>
    <script type="text/javascript">
    window.addEventListener("DOMContentLoaded", function () { 
    	(function($){
    		$('.mixed-contenttype .av-masonry-entry').each(function(){
    			if( $(this).filter('[data-av-masonry-custom-link]').length!==0 ){
    				$(this).attr('rel', 'lightbox').addClass('mfp-iframe');
    			}
    		});	
    	})(jQuery);
    });
    </script>
    <?php 
    }
    add_action('wp_footer', 'av_lightbox_with_mixed_content_type', 999);

    Best regards,
    Ismael

Viewing 30 posts - 181 through 210 (of 64,331 total)