Viewing 30 results - 691 through 720 (of 16,890 total)
  • Author
    Search Results
  • L-mobileGroup
    Participant

    Hello

    we updated a few weeks ago our wordpress CMS and noticed now a critical error which is as we investigate caused by enfold. When some products are updated and saved there is a critical error. Changes are done and saved, but after saving there is a critical error message. Error message is:

    Ein Fehler vom Typ E_ERROR wurde in der Zeile 126 der Datei /home/wp/disk/wordpress/wp-content/plugins/woocommerce/includes/wc-notice-functions.php verursacht. Fehlermeldung: Uncaught Error: Call to a member function set() on null in /home/wp/disk/wordpress/wp-content/plugins/woocommerce/includes/wc-notice-functions.php:126
    
    Stack trace:
    
    #0 /home/wp/disk/wordpress/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/product_snippets/product_snippet_tabs.php(141): wc_clear_notices()
    
    #1 /home/wp/disk/wordpress/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_product_tabs->shortcode_handler()
    
    #2 /home/wp/disk/wordpress/wp-includes/shortcodes.php(433): aviaShortcodeTemplate->shortcode_handler_prepare()
    
    #3 [internal function]: do_shortcode_tag()
    
    #4 /home/wp/disk/wordpress/wp-includes/shortcodes.php(273): preg_replace_callback()
    
    #5 /home/wp/disk/wordpress/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(580): do_shortcode()
    
    #6 /home/wp/disk/wordpress/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/columns/columns.php(2072): ShortcodeHelper::avia_apply_autop()
    
    #7 /home/wp/disk/wordpress/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_columns->shortcode_handler()
    
    #8 /home/wp/disk/wordpress/wp-includes/shortcodes.php(433): aviaShortcodeTemplate->shortcode_handler_prepare()
    
    #9 [internal function]: do_shortcode_tag()
    
    #10 /home/wp/disk/wordpress/wp-includes/shortcodes.php(273): preg_replace_callback()
    
    #11 /home/wp/disk/wordpress/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(559): do_shortcode()
    
    #12 /home/wp/disk/wordpress/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/section/section.php(1466): ShortcodeHelper::avia_remove_autop()
    
    #13 /home/wp/disk/wordpress/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_section->shortcode_handler()
    
    #14 /home/wp/disk/wordpress/wp-includes/shortcodes.php(433): aviaShortcodeTemplate->shortcode_handler_prepare()
    
    #15 [internal function]: do_shortcode_tag()
    
    #16 /home/wp/disk/wordpress/wp-includes/shortcodes.php(273): preg_replace_callback()
    
    #17 /home/wp/disk/wordpress/wp-includes/class-wp-hook.php(324): do_shortcode()
    
    #18 /home/wp/disk/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    
    #19 /home/wp/disk/wordpress/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php(117): apply_filters()
    
    #20 /home/wp/disk/wordpress/wp-content/plugins/wordpress-seo/src/integrations/watchers/indexable-post-watcher.php(209): Yoast\WP\SEO\Builders\Indexable_Link_Builder->build()
    
    #21 /home/wp/disk/wordpress/wp-includes/class-wp-hook.php(326): Yoast\WP\SEO\Integrations\Watchers\Indexable_Post_Watcher->build_indexable()
    
    #22 /home/wp/disk/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    
    #23 /home/wp/disk/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
    
    #24 /home/wp/disk/wordpress/wp-includes/post.php(4771): do_action()
    
    #25 /home/wp/disk/wordpress/wp-includes/post.php(4862): wp_insert_post()
    
    #26 /home/wp/disk/wordpress/wp-admin/includes/post.php(453): wp_update_post()
    
    #27 /home/wp/disk/wordpress/wp-admin/post.php(227): edit_post()
    
    #28 {main}
    
      thrown

    We use WordPress-Version 6.4.4 | Aktives Theme: Enfold Child (Version 1.0) | Aktuelles Plugin: WooCommerce (Version 8.9.2) | PHP-Version 8.1.28

    Any idea why this error occures? Thanks a lot for your help Marc

    #1448818

    In reply to: Theme Support

    Hey Paul,
    Thank you for your support, typically this may occur if you are using an old version, we are at v5.7.1 or if you have a custom class header.php or footer.php in your child theme, please check these.
    If you are unable to login to the support forum because you don’t have a activate support contract, please try going to your Theme Forest account and renew your support and then log in to the support forum and open a new thread.

    Best regards,
    Mike

    #1448778
    Adria
    Guest

    Hola,

    Tengo la web de un cliente hecha con vuestro theme.
    No podemos editar las páginas y me muestra este error:
    Deprecated: ¡La función get_page_by_title ha quedado obsoleta desde la versión 6.2.0! Usa WP_Query en su lugar. in /hosting/www/arenysinox.cat/public/wp-includes/functions.php on line 6078

    ¿Entiendo que si compramos de nuevo el theme y lo substituimos, se solucionaría el problema, verdad?

    #1448728

    In reply to: Blog categories

    Hey northorie,
    To change how may items are shown on each page go to WordPress ▸ Settings ▸ Reading ▸ Blog pages show at most and change the number:
    Enfold Support 6057
    To change the excerpt length, add this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1);
    function avia_change_postgrid_excerpt_length($length)
    {
       $length = 60;
       return $length;
    }

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    Please note that this is for characters including spaces, and if your posts are using manual excerpts then this won’t work, you will need to adjust the manual excerpts instead.

    Best regards,
    Mike

    Hi,
    Thank you for your patience, but the login to your site doesn’t work.
    I noticed that when I updated the PHP version from 7.4 to 8 that the same PHP Extensions were not enabled by default, perhaps this is what you are experiencing, try reviewing what PHP Extensions are enabled on your host compared with when you are using 7.3
    These are what are enabled on my server for PHP v8.1 and it runs without errors.
    PHP 8.1 extensions

    Best regards,
    Mike

    farrdesign79
    Participant

    Updating PHP to 8.1 from 7.3 breaks WP with this Enfold on InMotion WHM. There are no plugins, Layerslider is deactivated. I tried support from InMotion, with no luck.

    #1448559
    This reply has been marked as private.
    #1448523

    hi!
    copied from my wordpress:

    Theme Updates
    Once you have entered and verified your Envato Personal Token Key WordPress will check for updates every 12 Hours and notify you here, if one is available

    Your current Parent Theme (Enfold) Version Number is 5.7.1
    Your PHP version: 8.2.19

    my WordPress is 6.5.4

    #1448470
    wutec
    Participant

    Hello, I am currently creating a page with enfold. Among other things, I create content with the tab section. Now the following warning has appeared. I do not know why. Please help me here. Thank you

    Enclosed is the warning that appears in the backend and frontend:
    Warning: Array to string conversion in /home/…../themes/enfold/config-templatebuilder/avia-shortcodes/tab_section/tab_section.php on line 747

    #1447999

    Hi Kriesi Team,
    I have exact the same error as last November AGAIN ….
    Since I don’t know, what Nikko exactly did last November to get the Widgets-page running again, I have to contact you again and ask for help.

    Meanwhile version numbers changed to
    WordPress version 6.5.3
    Active theme: Enfold 5.7.1 child
    PHP version 8.1.28

    The error message I receive from the website is exactly the same as last November (see post #1425578).
    I recently added a new Post Category … maybe it has to do with that?

    #1447861

    this technique is called : infinite scroll – maybe that older post can help you on that:
    https://kriesi.at/support/topic/quick-way-to-add-infinite-scroll/#post-681490

    Edit: it still works.
    Download that little script: https://jscroll.com/#/installation
    and upload it to your child-theme js folder ( if there is none – create that child-theme subfolder )

    I load the script only for my test page (ID: 45777)
    put this to your child-theme functions.php:

    
    function my_custom_infinite_scoll() {
        if ( is_page(45777) ) {
            wp_enqueue_script( 'avia-child-jscroll', get_stylesheet_directory_uri().'/js/jscroll.min.js', array('jquery'), 2, true );
        }
    } 
    add_action('wp_enqueue_scripts', 'my_custom_infinite_scoll');

    and

    function infinite_scroll() {
    if ( is_page(45777) ) {
    ?>
    <script type="text/javascript">
    (function($) {
    $( ".content" ).jscroll({
    	loadingHtml: '<img src="/wp-content/uploads/anim-world.gif" alt="Loading" /> Loading...',
    	nextSelector: 'span.current + a',
    	contentSelector: '.article-grid',
    	autoTrigger: true,
    });
    
    })(jQuery);
    </script>
    <?php
    }
    }
    add_action('wp_footer', 'infinite_scroll', 999);

    In my case it is a blog element – give that custom class: article-grid to that element.
    Read the setting carefully ( with pagination – this nav is set to display none via css )

    see: https://webers-testseite.de/infinite-scroll/

    #1447834

    In reply to: several problems …

    Hi,
    Guenni007 is correct for #2, the “blog” option is not for category pages, if you want category/archive pages to be a grid then try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2); 
    function avia_change_category_blog_layout($layout, $context){
    if($context == 'archive') $layout = 'blog-grid';
    return $layout;
    }

    You can not have a custom layout for a category / archive page with a hero image at the top like https://sii-talents.de/aktuell/
    To add the hero image to the top of the category pages try this solution

    Best regards,
    Mike

    #1447719

    In reply to: Updating Failed error

    Hi Ismael,

    I was able to sort the issue after I changed the PHP version from 8.0 to 7.3.

    Appreciate your assistance. :)

    #1447608

    Topic: Updating Failed error

    in forum Enfold
    Renard
    Participant

    Hi team,

    I’ve encountered an issue with our homepage where I keep receiving an “Updating failed.” error message whenever I attempt to click the update button. Not sure if this is because I switched the PHP version from 7.2 to 8.0.

    Could someone please assist me with resolving this issue?

    Thank you.

    #1447543

    Hi,
    To show a different menu on one specific page, first make the menu that you wish and hover over the Delete Menu link and at the bottom of the page your browser should show the source of the link, looks for &menu=XX the XX will be a number, in my example it is 11
    Enfold Support 6013
    Next we need to know the page ID, so hover over the admin menu Edit Page in the admin toolbar, and at the bottom the browser should show the source link, look for ?post=XX again the XX will be a number, in my example it is 3792
    Enfold Support 6015
    Now we will add this code to the end of your child theme functions.php file in Appearance ▸ Editor or if you are not using a child theme you could use the WP Code plugin then add a new snippet, in the top right corner use the PHP snippet as the code type:
    use wpcode php snippet and activate
    and ensure that it is activated, then add this code and save.

    add_filter( 'wp_nav_menu_args', 'ppen_nav_menu_args' );
    function ppen_nav_menu_args( $args = '' ) {
    if($args['theme_location'] === 'avia') {
    if( is_page( 3792 ) ) {
    $args['menu'] = '11';
    }
    return $args;
    }
    }

    Now that page will have our new menu.

    Best regards,
    Mike

    #1447322

    In reply to: Mailchimp-Popup

    Hi,
    Thank you for your patience, in your shortcode it looks like you manually added class=’open-popup-link’, but the correct way to add a class in the shortcode is custom_class=’open-popup-link’ but this adds the class to the button and not the link in the button.
    So we will follow these steps.
    So this is what you add to your code block:

    [av_button label='Jealousy-Letter abonnieren' icon_select='yes-right-icon' icon='ue875' font='entypo-fontello' icon_hover='aviaTBaviaTBicon_hover' link='manually,#test-popup' custom_class='pu-link' link_target='' size='x-large' position='center' label_display='' title_attr='' size-text='' av-desktop-font-size-text='' av-medium-font-size-text='' av-small-font-size-text='' av-mini-font-size-text='' margin='' margin_sync='true' padding='' padding_sync='true' av-desktop-margin='' av-desktop-margin_sync='true' av-desktop-padding='' av-desktop-padding_sync='true' av-medium-margin='' av-medium-margin_sync='true' av-medium-padding='' av-medium-padding_sync='true' av-small-margin='' av-small-margin_sync='true' av-small-padding='' av-small-padding_sync='true' av-mini-margin='' av-mini-margin_sync='true' av-mini-padding='' av-mini-padding_sync='true' color_options='' color='theme-color-highlight' custom_bg='#444444' custom_font='#ffffff' btn_color_bg='theme-color' btn_custom_grad_direction='vertical' btn_custom_grad_1='#000000' btn_custom_grad_2='#ffffff' btn_custom_grad_3='' btn_custom_grad_opacity='0.7' btn_custom_bg='#444444' btn_color_bg_hover='theme-color-highlight' btn_custom_bg_hover='#444444' btn_color_font='theme-color' btn_custom_font='#ffffff' btn_color_font_hover='white' btn_custom_font_hover='#ffffff' border='solid' border_width='2' border_width_sync='true' border_color='#000000' border_radius='10' border_radius_sync='true' box_shadow='' box_shadow_style='0px,0px,0px,0px' box_shadow_color='' animation='' animation_duration='' animation_custom_bg_color='' animation_z_index_curtain='100' hover_opacity='' sonar_effect_effect='' sonar_effect_color='' sonar_effect_duration='1' sonar_effect_scale='' sonar_effect_opac='0.5' css_position='' css_position_location=',,,' css_position_z_index='' av-desktop-css_position='' av-desktop-css_position_location=',,,' av-desktop-css_position_z_index='' av-medium-css_position='' av-medium-css_position_location=',,,' av-medium-css_position_z_index='' av-small-css_position='' av-small-css_position_location=',,,' av-small-css_position_z_index='' av-mini-css_position='' av-mini-css_position_location=',,,' av-mini-css_position_z_index='' id='' template_class='' element_template='' one_element_template='' av_uid='av-1x42t1' sc_version='1.0' admin_preview_bg='']
    <div id="test-popup" class="white-popup mfp-hide">[av_mailchimp list='eifersuchtscoach' double_opt_in='true' on_send='' sent='Thank you for subscribing to our newsletter!' link='' color='' hide_labels='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' alb_description='' id='' custom_class='' template_class='' av_uid='av-8l32o' sc_version='1.0'][/av_mailchimp]</div>

    and this is your new popup code:

    function popup_inline() { ?>
    <script type="text/javascript">
    jQuery(window).load(function(){
           jQuery('.pu-link a').addClass('open-popup-link');
    	jQuery('.open-popup-link').magnificPopup({
    	  type:'inline',
    	  midClick: true // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href.
    	});
    });
    </script>
    <?php }
    
    add_action('wp_head', 'popup_inline');

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    This should now work for you.

    Best regards,
    Mike

    #1447259
    This reply has been marked as private.
    #1447213
    This reply has been marked as private.
    #1447203
    connect4consulting
    Participant

    Hi,

    Love the theme. Have used it for years. When I tried to update from PHP 7.4 to 8.0, I got a fatal error.

    Website details in private content.

    Thanks,
    Gabe

    #1447012

    Hi,

    Thank you for the info.

    The theme is not updated to the latest version 5.7.1. Please update the theme, then add this code in the functions.php file:

    function ava_g_tag_custom_script() { ?>
        <!-- Google Tag Manager -->
        <script>
        (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
        new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
        j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
        'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
        })(window,document,'script','dataLayer','GTM-TX8QJW27');
        </script>
        <!-- End Google Tag Manager -->
    
        <!-- Google Tag Manager (noscript) -->
        <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TX8QJW27"
        height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
        <!-- End Google Tag Manager (noscript) -->
    <?php }
    add_action( 'wp_head', 'ava_g_tag_custom_script', 99 );
    

    We also recommend installing a child theme so that you can place and preserve the code in the child theme’s functions.php file: https://kriesi.at/documentation/enfold/child-theme/

    Best regards,
    Ismael

    #1446874

    Following upon this. Yes, I am currently at 5.7.1. WordPress: 6.5.3, and PHP: 8.2.19

    `
    ### wp-core ###

    version: 6.5.3
    site_language: en_US
    user_language: en_US
    timezone: America/Chicago
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 3
    dotorg_communication: true

    ### wp-paths-sizes ###

    wordpress_path: /srv/users/preucil/apps/preucil/public
    wordpress_size: 54.88 MB (57541435 bytes)
    uploads_path: /srv/users/preucil/apps/preucil/public/wp-content/uploads
    uploads_size: 103.51 MB (108533120 bytes)
    themes_path: /srv/users/preucil/apps/preucil/public/wp-content/themes
    themes_size: 72.76 MB (76294269 bytes)
    plugins_path: /srv/users/preucil/apps/preucil/public/wp-content/plugins
    plugins_size: 103.19 MB (108205684 bytes)
    database_size: 38.44 MB (40304640 bytes)
    total_size: 372.77 MB (390879148 bytes)

    ### wp-active-theme ###

    name: Enfold Child (enfold-child)
    version: 1.0
    author: Kriesi
    author_website: http://kriesi.at
    parent_theme: Enfold (enfold)
    theme_features: core-block-patterns, avia_exclude_bbPress, avia_exclude_menu_exchange, avia_exclude_pojo_accessibility, avia_exclude_wp_accessibility, avia_exclude_relevanssi, avia_exclude_WooCommerce, avia_exclude_wpml, avia_exclude_instagram_feed, avia_exclude_leaflet_map, avia_mega_menu, avia_improved_backend_style, avia_option_pages_toggles, avia_sidebar_manager, automatic-feed-links, nav_menus, menus, widgets, post-formats, avia_post_meta_compat, force-post-thumbnails-in-widget, post-thumbnails, widgets-block-editor, block-templates, title-tag, editor-styles, editor-style, customize-selective-refresh-widgets, responsive-embeds, editor-color-palette, editor-font-sizes, avia_no_session_support
    theme_path: /srv/users/preucil/apps/preucil/public/wp-content/themes/enfold-child
    auto_update: Disabled

    ### wp-parent-theme ###

    name: Enfold (enfold)
    version: 5.7.1
    author: Kriesi
    author_website: https://kriesi.at
    theme_path: /srv/users/preucil/apps/preucil/public/wp-content/themes/enfold
    auto_update: Disabled

    • This reply was modified 1 year, 10 months ago by billbasler.
    #1446732
    OfficeShopNL
    Participant

    Hi All,

    We just updated our website, but now we have a crucial fault loading the theme. Below you can find the specific fault info, hope you can help..

    WordPress versie 6.5.3
    Actief thema: Enfold (versie 5.7.1)
    Huidige plugin: (versie )
    PHP versie 8.2.16

    Foutdetails
    ===========
    Een fout van het type E_ERROR werd veroorzaakt op regelnummer 106 van het bestand /var/www/vhosts/switch-pro.eu/shop.switch-pro.eu/wp-content/themes/enfold/functions.php. Foutmelding: Uncaught Error: Failed opening required ‘config-layerslider/config.php’ (include_path=’.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php’) in /var/www/vhosts/switch-pro.eu/shop.switch-pro.eu/wp-content/themes/enfold/functions.php:106
    Stack trace:
    #0 /var/www/vhosts/switch-pro.eu/shop.switch-pro.eu/wp-settings.php(663): include()
    #1 /var/www/vhosts/switch-pro.eu/shop.switch-pro.eu/wp-config.php(96): require_once(‘/var/www/vhosts…’)
    #2 /var/www/vhosts/switch-pro.eu/shop.switch-pro.eu/wp-load.php(50): require_once(‘/var/www/vhosts…’)
    #3 /var/www/vhosts/switch-pro.eu/shop.switch-pro.eu/wp-admin/admin.php(34): require_once(‘/var/www/vhosts…’)
    #4 {main}
    thrown

    #1446689
    manurimini
    Participant

    Hi
    A few days ago Mike provided me with a function to make sure that using the sticky menu on mobiles and tablets the anchors scroll correctly by adding the additional sticky menu of the ALB.
    https://kriesi.at/support/topic/alb-full-width-submenu-sticky-on-mobile/

    The code works perfectly but only takes into account two screen sizes: < 989 and >990.
    I would need an integration to be able to use it on three different screen sizes: <768 for mobiles < 989 for itablets and >990.
    I tried to write it myself but couldn’t do it. I basically can’t write the middle line of code which should be something that looks like else if ((width >768 <990)) {

    Below is Mike’s code

    function custom_change_offset() { ?>
      <script>
    (function($) {
    	var width = $(window).width();
        if ((width < 989)) {
      $('a[href*=#]:not([href=#])').click(function() {
        if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
    && location.hostname == this.hostname) {
    
          var target = $(this.hash);
          target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
          if (target.length) {
            $('html,body').animate({
              scrollTop: target.offset().top - 140 //offset
            }, 1000);
            return false;
          }
        }
      });
      //Executed on page load with URL containing an anchor tag.
      if($(location.href.split("#")[1])) {
          var target = $('#'+location.href.split("#")[1]);
          if (target.length) {
            $('html,body').animate({
              scrollTop: target.offset().top - 140 //offset
            }, 1000);
            return false;
          }
        }
        } 
        else if ((width > 990)) {
      $('a[href*=#]:not([href=#])').click(function() {
        if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
    && location.hostname == this.hostname) {
    
          var target = $(this.hash);
          target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
          if (target.length) {
            $('html,body').animate({
              scrollTop: target.offset().top - 150 //offset
            }, 1000);
            return false;
          }
        }
      });
      //Executed on page load with URL containing an anchor tag.
      if($(location.href.split("#")[1])) {
      	var targett = $('#'+location.href.split("#")[1]);
          if (targett.length) {
            $('html,body').animate({
              scrollTop: targett.offset().top - 150 //offset
            }, 1000);
            return false;
          }
        }
        }
    }(jQuery));
    </script>
      <?php
    }
    add_action( 'wp_footer', 'custom_change_offset', 99 );
    #1446669

    Hey Guenter,

    Thank you for the inquiry.

    You can try to override the entire avia_sc_toggle with your own modifications. In the modified code below, we adjusted the duration from 200 to 10000.

    function ava_custom_script_toggles()
    {
        ?>
        <script>
            (function ($)
            {
                $(document).ready(function ()
                {
                    if ($.fn.avia_sc_toggle)
                    {
                        $.fn.avia_sc_toggle = function (options)
                        {
                            var defaults =
                            {
                                single: '.single_toggle',
                                heading: '.toggler',
                                content: '.toggle_wrap',
                                sortContainer: '.taglist'
                            };
    
                            var win = $(window),
                                options = $.extend(defaults, options);
    
                            return this.each(function ()
                            {
                                var container = $(this).addClass('enable_toggles'),
                                    toggles = $(options.single, container),
                                    heading = $(options.heading, container),
                                    allContent = $(options.content, container),
                                    sortLinks = $(options.sortContainer + " a", container),
                                    preview = $('#av-admin-preview');
    
                                //	needed to avoid scroll to top when opening and closing toggles - can be removed when other solution found (readded @since 4.8.4.1)
                                var activeStyle = '',
                                    headingStyle = '';
    
                                heading.each(function (i)
                                {
                                    var thisheading = $(this),
                                        content = thisheading.next(options.content, container);
    
                                    function scroll_to_viewport()
                                    {
                                        //check if toggle title is in viewport. if not scroll up
                                        var el_offset = content.offset().top,
                                            scoll_target = el_offset - 50 - parseInt($('html').css('margin-top'), 10);
    
                                        if (win.scrollTop() > el_offset)
                                        {
                                            $('html:not(:animated),body:not(:animated)').animate({ scrollTop: scoll_target }, 200);
                                        }
                                    }
    
                                    if (content.css('visibility') != "hidden")
                                    {
                                        thisheading.addClass('activeTitle').attr('style', activeStyle);
                                    }
    
                                    thisheading.on('keydown', function (objEvent)
                                    {
                                        if (objEvent.keyCode === 13)  // if user presses 'enter'
                                        {
                                            thisheading.trigger('click');
                                        }
                                    });
    
                                    thisheading.on('click', function ()
                                    {
                                        if (content.css('visibility') != "hidden")
                                        {
                                            content.slideUp(10000, function ()
                                            {
                                                content.removeClass('active_tc').attr({ style: '' });
                                                win.trigger('av-height-change');
                                                win.trigger('av-content-el-height-changed', this);
    
                                                if (preview.length == 0)
                                                {
                                                    location.replace(thisheading.data('fake-id') + "-closed");
                                                }
                                            });
    
                                            thisheading.removeClass('activeTitle').attr('style', headingStyle);
    
                                        }
                                        else
                                        {
                                            if (container.is('.toggle_close_all'))
                                            {
                                                allContent.not(content).slideUp(200, function ()
                                                {
                                                    $(this).removeClass('active_tc').attr({ style: '' });
                                                    scroll_to_viewport();
                                                });
    
                                                heading.removeClass('activeTitle').attr('style', headingStyle);
                                            }
    
                                            content.addClass('active_tc');
    
                                            setTimeout(function ()
                                            {
                                                content.slideDown(200, function ()
                                                {
                                                    if (!container.is('.toggle_close_all'))
                                                    {
                                                        scroll_to_viewport();
                                                    }
    
                                                    win.trigger('av-height-change');
                                                    win.trigger('av-content-el-height-changed', this);
                                                });
    
                                            }, 1);
    
                                            thisheading.addClass('activeTitle').attr('style', activeStyle);
    
                                            if (preview.length == 0)
                                            {
                                                location.replace(thisheading.data('fake-id'));
                                            }
                                        }
                                    });
                                });
    
                                sortLinks.on('click', function (e)
                                {
                                    e.preventDefault();
    
                                    var show = toggles.filter('[data-tags~="' + $(this).data('tag') + '"]'),
                                        hide = toggles.not('[data-tags~="' + $(this).data('tag') + '"]');
    
                                    sortLinks.removeClass('activeFilter');
                                    $(this).addClass('activeFilter');
                                    heading.filter('.activeTitle').trigger('click');
                                    show.slideDown();
                                    hide.slideUp();
                                });
    
                                function trigger_default_open(hash)
                                {
                                    if (!hash && window.location.hash)
                                    {
                                        hash = window.location.hash;
                                    }
    
                                    if (!hash)
                                    {
                                        return;
                                    }
    
                                    var open = heading.filter('[data-fake-id="' + hash + '"]');
    
                                    if (open.length)
                                    {
                                        if (!open.is('.activeTitle'))
                                        {
                                            open.trigger('click');
                                        }
    
                                        window.scrollTo(0, container.offset().top - 70);
                                    }
                                }
    
                                trigger_default_open(false);
    
                                $('a').on('click', function ()
                                {
                                    var hash = $(this).attr('href');
                                    if (typeof hash != "undefined" && hash)
                                    {
                                        hash = hash.replace(/^.*?#/, '');
                                        trigger_default_open('#' + hash);
                                    }
                                });
    
                            });
                        };
                    }
                });
            })(jQuery);
        </script>
        <?php
    }
    add_action('wp_footer', 'ava_custom_script_toggles');
    

    Best regards,
    Ismael

    #1446530

    Hi,
    Unfortunately pseudo-elements can not be links so we will need to start over, so remove the other css. I couldn’t login so try to follow these steps.
    If you are not using a child theme you could use the WP Code plugin then add a new snippet, in the top right corner use the PHP snippet as the code type:
    use wpcode php snippet and activate
    and ensure that it is activated, then add this code and save.

    function custom_floatingBadge_script() { ?>
      <script>
    document.addEventListener('DOMContentLoaded', function() {
        var badge = document.createElement('div');
        badge.id = 'floatingBadge';
        badge.className = 'floating-badge';
        document.body.appendChild(badge);
    
        badge.addEventListener('click', function() {
            window.open('https://www.example.com', '_blank'); // Replace with your desired URL
        });
    });
    </script>
      <?php
    }
    add_action( 'wp_footer', 'custom_floatingBadge_script', 99 );

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted, and then change the link to suit.
    Then add this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    .floating-badge {
        position: fixed;
        right: 10px;
        bottom: 10px;
        width: 170px;
        height: 100px;
        background-image: url(https://www.idea-innovation-consulting.com/wp-content/uploads/2024/05/ISO_9001_farbe_de.png);
        z-index: 99;
        background-size: contain;
        background-repeat: no-repeat;
        cursor: pointer;
    }

    Best regards,
    Mike

    Hey Guenter,
    It looks like the avf_sidebar_position is a filter for either a “right side” or “left side” position, not for the oder of the dynamic sidebars.
    The only way I could find was to add a custom sidebar.php to your child theme by moving lines 135-139 to line 77
    Enfold Support 5924
    Otherwise perhaps a new filter could be added try submiting a Github Feature Request

    Best regards,
    Mike

    #1445997

    In reply to: Blogs slider

    Hi,
    Thank you for your patience I see that you have both v5.2.1 & v5.7.1 with the same Theme Name so I’m not sure how you have it setup to enable which parent theme is used, I see that v5.2.1 is currently loading. I also see that you have a custom header.php & footer.php in the child theme, we do not recommend adding these files to your child theme, it is the most common reason for errors when updating. Try removing these and see if this solves. You could replacing these with the header.php & footer.php from the v5.7.1 parent theme, but then you would need to manually update these with each update. I recommend removing these and any customizations you wish to make should be done in your child theme functions.php instead.
    If this doesn’t help then I would recommend looking at your custom avia-shortcodes files as it looks like you have created customized elements and I assume they were based on the older v5.2.1 elements:
    Enfold Support 5894
    The theme has changed a lot since then so you may need to review the elements from v5.7.1 and update your custom elements to suit.

    Best regards,
    Mike

    #1445591
    stephaniek46
    Participant

    I just updated my Website to php 8.0., bought and updated my theme to enfold version 5.7.1 (updated via ftp as described in previous threads) and WordPress Version 6.5.3. Now I have the following problem: I tried editing my pages with the Avia Layout Architect and when I click on an element to edit it, the pop up window of the layout architect is blank (no text or images shown). I have already cleared my cache several times, tried different browsers but the problem stays the same. I don*t have Gutenberg, but the plugin classical editor installed (as this was also mentioned in some related threads). Also, in some previous threads it was said to manually change the enfold theme via ftp (I just did that and thats when the problem showed up). I hope there is an easy fix for this issue that I am overlooking.
    Thank you!

    #1445588

    In reply to: Hide WMPL Flags

    ok – if there is no easy way. Just switch for a short moment to:
    General Layout : Top Header
    Go to “Header – Extra Elements and choose on Enfold WPML Language Flags (Global Setting) : hide …
    Switch back to your “Left Sidebar Header”
    Save the settings

    Now insert this to your child-theme functions.php:

    add_action('ava_main_header_sidebar', function() {
      echo do_shortcode("[wpml_language_selector_widget]");
    });

    And now style it via WPML – Languages – Custom language switchers

    DOM will look like this then:

    #1445573

    In reply to: Hide WMPL Flags

    on WPML – Languages – there is in the options : “Menu language switcher ” Add a new one.
    Then you see the options for that menu you choose

    if the switchers are not inside a menu – you can scroll down a bit and have : “Custom language switchers” mark it and customise it there.

    i do not have an enfold setting with header on the left and WPML – so i can not test it for you.
    if that position does not belong to these settings:

    try: https://kriesi.at/support/topic/wpml-language-switcher-8/#post-695476

    but: i think these filters and action hooks are deprecated now. on : class-avia-wpml.php lines 86 to 110 there are more options to influence. i think a mod should instruct you with these new “options”

    or read this for more info: https://wpml.org/documentation/theme-compatibility/enfold/#enfold-language-switcher

Viewing 30 results - 691 through 720 (of 16,890 total)