Viewing 30 results - 2,551 through 2,580 (of 16,898 total)
  • Author
    Search Results
  • #1330824
    This reply has been marked as private.
    #1330757

    Hi,
    Thanks for the link to your site, have you tried removing your script above to see if that is the issue? I believe your script is more complicated that it needs to be, below I have linked to a test page where I have the header set to 100px:
    2021-11-28_004.jpg
    and the header behavior set as sticky and not shrinking:
    2021-11-28_005.jpg
    then I added your logo and this script to the end of my child theme functions.php file in Appearance ▸ Editor:

    function custom_script() { ?>
        <script>
    (function ($) { 
      $(window).scroll(function() {
        var width = $(window).width(), height = $(window).height();    
        var scroll = $(window).scrollTop();
          if (scroll >= 90 && width >= 768) {
        $('.av-logo-container > .inner-container').css({'overflow':'hidden'});
       } else {
        $('.av-logo-container > .inner-container').css({'overflow':'visible'});
       }
      });
    })(jQuery); 
    </script>
        <?php
    }
    add_action('wp_footer', 'custom_script');

    and this css in my General Styling ▸ Quick CSS field:

    .logo, .logo * {
        max-height: 269px!important;
        height: 269px!important;
        width: 131px!important;
    }
    

    now the logo behaves like yours on scroll and the anchor links I added to the page land correctly and not behind the header.
    Perhaps you could try this.

    Best regards,
    Mike

    #1330754

    Hey Corina,
    Thanks for the link to your site, my research finds that this is a known, and argued expected behavior for the Vimeo player when a video is a background video.
    I tested your video in a color section background & in a video element and found this a reasonable explanation and do not believe that it is a result of the Enfold element.
    I did come up with a possible solution that works on my test site and also seems to work on your site.
    The following script rewrites the iframe url after the video starts and breaks the loop, thus ending with the video on the first frame.
    If you would to try this, add this code to the end of your functions.php file in Appearance ▸ Editor:

    function custom_script() { ?>
        <script>
    (function($){
          setTimeout(function(){
          $("#top.home #av_section_1 iframe").attr("src", "//player.vimeo.com/video/650191459?portrait=0&byline=0&title=0&badge=0&loop=0&autopause=0&api=1&rel=0&player_id=player_5394_254066182_1922605071&color=ef5e95");
          },800);
    })(jQuery);
    </script>
        <?php
    }
    add_action('wp_footer', 'custom_script');

    The only other solution I can recommend would be to embed your video in a code block so that it is not a background video.

    Best regards,
    Mike

    #1330711

    In reply to: Menu order

    Hi,
    Thank you for the link to your site and the screenshot, there is not an official way to do this but I tried to work out a script for you, I wrote it to start at 1024px because you have so many menu items that at 768px they overlap, I recommend removing some items or making the burger menu show for larger screens.
    this is the expected results:
    2021-11-27_021.jpg
    Try adding this code to the end of your functions.php file in Appearance ▸ Editor:

    function custom_script() { ?>
        <script>
    (function($){
    var width = $(window).width();
    if ( width >= 1023) {
    $("#header ul.cart_dropdown").detach().insertAfter('#menu-item-3092').css({'display':'block'});
    $("#menu-item-search").detach().insertAfter('#menu-item-3092');
    } else {}
    })(jQuery);
    </script>
        <?php
    }
    add_action('wp_footer', 'custom_script');

    and this code in the General Styling ▸ Quick CSS field

    @media only screen and (min-width: 1023px) { 
    #top .av-main-nav ul#menu-item-shop a.cart_dropdown_link {
        margin: 0;
        left: 0;
        color: inherit;
        position: relative;
        width: auto;
        -webkit-transition: color 0.15s ease-out;
        transition: color 0.15s ease-out;
        padding: 0 20px;
        height: 70px;
        line-height: 70px;
        border:none;
    }
    #top .header_color .main_menu ul#avia-menu ul#menu-item-shop {
        background-color: transparent;
    }
    #top #avia-menu #menu-item-shop {
    	box-shadow: none;
    }
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1330636
    MidasPL
    Participant

    Hello,
    I use Enfold for many years with no problem. But since 2 days I foud it not working correct afther new instalation. Other templates work normal but whne I turn on Enfold there are such errors. Tryed different WP versions also different PHP from 7.2 to 8.0 but all same. Tryded on different hostings and same problem. Old instalations work ok, but can not install new. The erros is:

    Warning: PHP Startup: failed to open stream: No such file or directory in /autoinstalator/wordpressplugins/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php on line 646

    Warning: PHP Startup: Failed opening ‘external/JSqueeze.php’ for inclusion (include_path=’.:/:/usr/local/php74/lib/pear’) in /autoinstalator/wordpressplugins/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php on line 646

    Fatal error: Uncaught Error: Class ‘JSqueeze’ not found in /autoinstalator/wordpressplugins/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:648 Stack trace: #0 /autoinstalator/wordpressplugins/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php(515): aviaAssetManager->compress_content(‘/* \n\tthis preve…’, ‘js’, ‘wp-content/them…’) #1 /autoinstalator/wordpressplugins/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php(413): aviaAssetManager->get_file_content(‘wp-content/them…’, ‘js’, ‘http://idea.e-m…&#8217;) #2 /autoinstalator/wordpressplugins/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php(136): aviaAssetManager->get_file_data(‘js’, ‘avia-head-scrip…’, Object(WP_Scripts), Array) #3 /autoinstalator/wordpressplugins/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php(104): aviaAssetMa in /autoinstalator/wordpressplugins/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php on line 648

    Than You for help in advance

    #1330620

    In reply to: Small Footer issue

    Hey Tim,

    Thanks for reporting this.

    I think I have a fix.

    Please update ..\themes\enfold\footer.php

    with the content of

    https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_8_7_1/footer.php

    Do not forget to make a backup of the file for a fallback and clear server and browser cache.

    Best regards,
    Günter

    #1330597
    laluluny
    Participant

    Hi,

    ich bekomme bei ENFOLD folgende Fehlermeldung, wenn die Autorenseite öffnen möchte:
    I receive the following error w ENFOLD when I try to open the author’s page:

    Warning: include(/homepages/4/d144672631/htdocs/wordpress21/wp-content/themes/enfold-child-NEW): failed to open stream: Success in /homepages/4/d144672631/htdocs/wordpress21/wp-includes/template-loader.php on line 106

    Warning: include(): Failed opening ‘/homepages/4/d144672631/htdocs/wordpress21/wp-content/themes/enfold-child-NEW/’ for inclusion (include_path=’.:/usr/lib/php7.1′) in /homepages/4/d144672631/htdocs/wordpress21/wp-includes/template-loader.php on line 106

    Ich habe folgende Support-Antwort bereits gegooglet: https://kriesi.at/support/topic/warning-failed-to-open-stream/
    Leider ist sie schon etwas älter. Bei theme options > Import & Export sehe ich nichts entsprechendes…
    I already found the above thread – however it is a bit aged and does not give me any clues…

    Vielen Dank schon jetzt,
    Karin

    ColinWalton
    Participant

    I have tried setting up a Content Slider with two simple slides. For some reason the first slide not only has the text but also shows the title of the slide too. The first slide then slides away but the second one doesn’t display at all.

    Here is the one that isn’t working properly:

    Here is the identical pair of slides set up on another site which works perfectly:

    I have installed a fresh version of the Enfold theme on the dodgy one but still hasn’t fixed the problem. I have also tried using a blank page for the functions.php file which hasn’t fixed it either.

    Both websites are using this version of Enfold 4.8.7.1.

    Any ideas?

    #1330569
    Matty3mil
    Participant

    Hi we have had the fullscreen slider working on one of our clients sites but since doing an Enfold update this item gives the site a critical error. If I take off the slider the site is fine.

    The error reported is

    Error Details
    =============
    An error of type E_ERROR was caused in line 628 of the file /home/customer/www/adamaaronson.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/columns/columns.php. Error message: Uncaught Error: Call to undefined method Avia_Popup_Templates::get_border_styles_options() in /home/customer/www/adamaaronson.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/columns/columns.php:628
    Stack trace:
    #0 /home/customer/www/adamaaronson.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-template.class.php(1097): avia_sc_columns->register_dynamic_templates()
    #1 /home/customer/www/adamaaronson.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-template.class.php(99): aviaShortcodeTemplate->extra_config()
    #2 /home/customer/www/adamaaronson.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/columns/columns.php(128): aviaShortcodeTemplate->__construct(Object(AviaBuilder))
    #3 /home/customer/www/adamaaronson.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/template-builder.class.php(1732): avia_sc_columns->__co

    We have duplicated the site onto staging for you to view. If you add a fullscreen slider to the homepage you will see the whole site breaks

    #1330558

    Hi Nikko,

    This IS a staging site, a direct copy of the live one :-)
    You can do anything you want there, it’s well backed up. As long as you make sure you re-enable the Password Protected plugin when you’re done (dev site should not be exposed to the public)

    Let me elaborate a bit and save you some time. To see what I mean you can open a page, go to Classic Text View, save it. Next time you open it through a link to edit, it will open in the last used mode, so classic text view.
    I already described that quite clearly earlier.
    Also, it is the same on a standard new site with just the Enfold Shop Demo imported. The LAST USED view is opened when you edit a page again.

    What I need is for the Advanced Layout Editor to open by default / be set as default, that’s all.

    Enfold (as far as I know) does not provide the option to set the preferred editor for pages (and posts if necessary), like some other page builders do. I hereby would make that a real feature request, it would sit nicely in the General Settings, where now you can choose between Block and Classic only.

    I have this set in the child theme functions.php, and that works well enough, but ONLY for NEW pages.

    // ***** TEST #3 trigger ALB editor always on load, regardless of previous saving *****/
    // >>>>> THIS WORKS WELL, BUT ONLY FOR _NEW_ PAGES (HOW TO ADAPT FOR EXISTING?) <<<<<
    // make avia default on new posts
    // use #postdivrich_wrap for editor only, #post-body for (pretty much) everything
    // see https://kriesi.at/support/topic/always-open-advanced-layout-builder/#post-452117
    add_action('admin_head-post-new.php', 'trigger_alb_on_load');
    function trigger_alb_on_load(){
    	echo '<style>#postdivrich_wrap { display: none; }</style>';
    	?>
    	<script>		
    		(function($){
    			$(window).on('load', function () {
    				$("#avia-builder-button").trigger('click');
    				$("#postdivrich_wrap").css('display', 'inherit');
    			});
    		})(jQuery);
    	</script>
    	<?php
    	}
    add_action('admin_head-post-new.php', 'trigger_alb_on_load');

    Kind regards,
    Rob

    See: https://kriesi.at/support/topic/always-open-advanced-layout-builder/#post-452117

    • This reply was modified 4 years, 5 months ago by rob2701. Reason: Added clarification test imported demo site
    #1330524

    guess this will be part of next Update: 4.8.7.2
    it is in searchform.php if you change position of the two input lines like this:
    first sumit then text
    ( click to enlarge )

    it will do the job ( although it is not logic why )
    if you don’t want to wait – edit your searchform.php yourself and upload it to the child-theme root folder ( besides style.css )

    #1330506
    walhai
    Participant

    Hi,
    since a few days we get an error message from wordpress.
    I hope you can help.

    WordPress-Version 5.8.2
    Aktuelles Theme: Enfold Child (Version 1.0) Aktuelles Plugin: (Version ) PHP-Version 8.0.12

    Error-Details
    ==============
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 390 der Datei /home/.sites/148/site1392455/web/2021/wp-content/themes/enfold/includes/helper-privacy.php verursacht. Fehlermeldung: Uncaught ValueError: setcookie(): Argument #1 ($name) cannot contain “=”, “,”, “;”, ” “, “\t”, “\r”, “\n”, “\013”, or “\014″ in /home/.sites/148/site1392455/web/2021/wp-content/themes/enfold/includes/helper-privacy.php:390
    Stack trace:
    #0 /home/.sites/148/site1392455/web/2021/wp-content/themes/enfold/includes/helper-privacy.php(390): setcookie(‘,_PHPSESSID’, ‘false’, Array)
    #1 /home/.sites/148/site1392455/web/2021/wp-includes/class-wp-hook.php(303): av_privacy_class->handler_manage_cookies(”)
    #2 /home/.sites/148/site1392455/web/2021/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(1, Array)
    #3 /home/.sites/148/site1392455/web/2021/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #4 /home/.sites/148/site1392455/web/2021/wp-settings.php(600): do_action(‘wp_loaded’)
    #5 /home/.sites/148/site1392455/web/2021/wp-config.php(129): require_once(‘/home/.sites/14…’)
    #6 /home/.sites/148/site1392455/web/2021/wp-load.php(50): require_once(‘/home/.sites/14…’)
    #7 /home/.sites/148/site1392455/web/2021/wp-login.php(12): require(‘/home/.sites/14…’)
    #8 {main}
    thrown

    Thank you for any help.
    Regards Barbara

    #1330430
    zsuzsamoricz
    Participant

    Recently, I have been asked to upgrade an old site.
    It runs Enfold 4.1.1!!!!!

    I have managed to upgrade all parts of the site except for Enfold. Maybe it was a bad idea.
    But now the site runs php 7.4, wp 4.8.2

    How should I go by updating the theme?
    I have tried to upgrade first to Enfold 4.4.1 through uploading to FTP, but the images on my pages built by Enfold has disappeared.

    Please help me out here.

    So, what is the version of Enfold that runs with Gutenberg? Currently, I had to turn Gutenberg off to be able to edit pages and posts.

    Thanks.

    canoodle
    Participant

    Hallo,

    finde das nfold super,

    habe heute eine von wordpress (self hosted@hetzner level4 account) generierte mail erhalten welche sich liest:

    
    
    Fehler-Details
    ==============
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 390 der Datei /var/www/wp-content/themes/enfold/includes/helper-privacy.php verursacht. Fehlermeldung: Uncaught ValueError: setcookie(): Argument #1 ($name) cannot contain "=", ",", ";", " ", "\t", "\r", "\n", "\013", or "\014" in /var/www/wp-content/themes/enfold/includes/helper-privacy.php:390
    Stack trace:
    #0 /var/www/wp-content/themes/enfold/includes/helper-privacy.php(390): setcookie()
    #1 /var/www/wp-includes/class-wp-hook.php(303): av_privacy_class->handler_manage_cookies()
    #2 /var/www/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #3 /var/www/wp-includes/plugin.php(470): WP_Hook->do_action()
    #4 /var/www/wp-settings.php(600): do_action()
    #5 /var/www/wp-config.php(90): require_once('/usr/www/users/...')
    #6 /var/www/wp-load.php(50): require_once('/usr/www/users/...')
    #7 /var/www/wp-login.php(12): require('/usr/www/users/...')
    #8 {main}
      thrown

    🤔

    #1330262

    Hi Nikko,

    WP 5.8.2 and Enfold 4.8.7.1. Yes that works, IF the ALE was active when you started that link.
    But if before the default editor in text view was opened on an item, that is what will open with that link.
    So I need to know the correct way to access the ALE programmatically for it to open straight in ALE only.

    Added clarification:
    The access to ALE via link was just to illustrate the process, I would like to know if it’s possbile to open a page in ALE directly through PHP.

    Access link in private.

    Thanks for the help,
    Rob

    Added info:

    I found this post asking almost the same:
    https://kriesi.at/support/topic/bulk-enable-advanced-layout-builder-on-pages/
    So I added this coe from Mike to functions.php in the child theme (with updated deprecated function of course):

    // ***** TEST trigger ALB editor always on load, regardless of previous saving *****/
    function trigger_alb_on_load(){
    	?>
    	<script>
    	(function($){
    		$(window).on('load', function () {
    			$("#avia-builder-button").trigger('click');
    		});
    	})(jQuery);
    	</script>
    	<?php
    	}
    add_action('admin_head-post-new.php', 'trigger_alb_on_load');

    Bur unfortunately it doesn’t make a difference, it still respects/opens with the editor/view in which the page was last saved.

    • This reply was modified 4 years, 5 months ago by rob2701.
    Regina_2019
    Participant

    A new thread started by email request of Yigit on this support forum.

    Hi there,
    On Nov 22, 2021 I have purchased a new version of the Enfold theme (version 4.8.7.1) from the Envato Market website. (because I wasn’t able to update from Enfold version 4.5 to the latest version, despite the Update Now button in the older 4.5. version).

    After downloading, installing and activating the newer Enfold theme today I have a problem making changes on the homepage itself on my website. The homepage is continiously trying to load the info on the homepage without showing any information. (e.g. I use the ‘classic editor’ plugin).

    If I deactivate the classic editor plugin the site comes up with a message “there is a critical fault on this site”. It doesn’t make any difference when I deactivate all plugins. Very enoying so far and now being busy for days in a row trying to solve this issue.

    Therefore I was hoping that all update and homepage problems should be solved by purchasing the latest Enfold theme version. Unfortunally it doesn’t seem to work that way.

    I have retrieved a valid Envato Market token for future updates. (using the envato market plugin) and upload the envato market zip file.

    Further more: I use PHP version 7.4.25 from my hosting provider.

    Maybe you can help me with any good information to solve this Enfold theme problem I have. Looking forward to your reply.

    Best Regards,
    Frits Stel – Netherlands

    • This topic was modified 4 years, 5 months ago by Regina_2019.
    #1330178
    cacvaquero
    Participant

    Hello.
    I get the following notices when upgrading to version 4.8.7.1
    wordpress version: 5.8.2

    Notice: Undefined index: footer_option in /home/centralaz/staging.centralaz.edu/wp-content/themes/enfold/footer.php on line 30

    Notice: Undefined index: footer_behavior in /home/centralaz/staging.centralaz.edu/wp-content/themes/enfold/footer.php on line 32

    Notice: Undefined index: footer_behavior in /home/centralaz/staging.centralaz.edu/wp-content/themes/enfold/footer.php on line 270

    Notice: Trying to get property ‘item_id’ of non-object in /home/centralaz/staging.centralaz.edu/wp-content/themes/enfold/framework/php/auto-updates/class-pixelentity-theme-update.php on line 93

    Warning: Cannot modify header information – headers already sent by (output started at /home/centralaz/staging.centralaz.edu/wp-content/themes/enfold/framework/php/auto-updates/class-pixelentity-theme-update.php:93) in /home/centralaz/staging.centralaz.edu/wp-admin/admin-header.php on line 9

    #1330163
    sarah_pask
    Participant

    Hi,

    Enfold version 4.8.6 installed.
    Trying to update to 4.8.7.1.
    PHP (7.2.34)

    Tried updating the theme via the CMS but it hangs on maintenance mode.

    Tried updating the theme via FTP but I get a critical error.
    When viewing the site in safe mode it says: Enfold: This theme failed to load properly and was paused within the admin back end.
    When trying to resume the theme it fails again and says the same thing.

    The only way to get the site back is to restore the old theme to v4.8.6.

    If you could take a look that would be great!

    Thanks

    #1330102

    Hi,
    Thank you for the login, since you said your plan is to omit the overlay for smaller screens my test found that the layout you have begins to show well for 1024px so I used that as the breakpoint, so this script checks for a minimum width of 1023px and a scroll of 20px from the top on the home page only. The css below hides the element on smaller screens.
    I added this code to the end of your functions.php file in Appearance ▸ Editor:

    function custom_home_overlay() { ?>
        <script>
    (function ($) { 
      $(window).scroll(function() {
        var width = $(window).width(), height = $(window).height();    
        var scroll = $(window).scrollTop();
          if (scroll > 20 && width >= 1023) {
        $('#top.home #overlay').css({ 'display': 'none'});
    	  }
    	  if (scroll < 20 && width >= 1023) {
        $('#top.home #overlay').css({ 'display': 'block'});
    	  }
      });
     })(jQuery);
    </script>
        <?php
    }
    add_action('wp_footer', 'custom_home_overlay');

    and this to your Quick CSS

    @media only screen and (max-width: 1023px) { 
    	#top.home #overlay {
    		display: none;
    	}
    }

    please clear your browser cache and check.


    @Guenni007
    thank you for your idea, I didn’t try it because we were already down this path 🙂

    Best regards,
    Mike

    #1330072

    Hi,

    Thanks for the update. We’ve had other users report problems with that file in the current version, could you try replacing it with this please? https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_8_7_1/includes/avia_blog.php. We can do it for you if you share FTP login details with us.

    Best regards,
    Rikard

    Hi,

    would be nicer to have a snippet solution.

    Did you see filter ‘avf_post_featured_image_link’ around line 100 of loop-index.php?

    https://github.com/KriesiMedia/enfold-library/blob/master/actions%20and%20filters/Layout/avf_post_featured_image_link.php

    Best regards,
    Günter

    Hi,

    I think I found the problem. When creating the merged files we change relative urls in enfold.css to absolute urls.

    I added to config-templatebuilder\avia-template-builder\php\class-asset-manager.php line 677:

    
    			/**
    			 * e.g. WPML needs relative paths when using directories for languages
    			 * 
    			 * @since 4.8.7.2
    			 */
    			if( current_theme_supports( 'custom_uploaded_fonts_relative_url' ) )
    			{
    				return $content;
    			}
    

    Now after merging files you find in avia-merged-styles-974f232210bc9596190f218f629b8b53—619b7b9d06faf.css the relative urls:

    
    ....
    
    @font-face{
    font-family:'poppins';
    src:url('/wp-content/uploads/avia_fonts/type_fonts/poppins/poppins-black.ttf') 
    format('truetype');
    font-style:normal;
    font-weight:900;
    ont-display:auto
    } 
    
    @font-face{
    font-family:'poppins';
    src:url('/wp-content/uploads/avia_fonts/type_fonts/poppins/poppins-blackitalic.ttf') 
    format('truetype');
    font-style:italic;
    font-weight:900;
    font-display:auto
    }
    
    ........
    

    Can you check with the other language please.

    Best regards,
    Günter

    #1329923

    In reply to: Fatal error on website

    This reply has been marked as private.
    #1329882

    Hi,

    Thank you for the update.

    Looks like WordPress automatically strips html tags including line breaks before saving the excerpt and the content. You may need to add the following snippet in the functions.php file to allow certain tags in the excerpt.

    
    function wpse_allowedtags() {
         return '<script>,<style>,,<em>,<i>,<ul>,<ol>,<li>,<a>,,<img>,<video>,<audio>'; 
    }
    
    if ( ! function_exists( 'wpse_custom_wp_trim_excerpt' ) ) : 
    
        function wpse_custom_wp_trim_excerpt($wpse_excerpt) {
        $raw_excerpt = $wpse_excerpt;
            if ( '' == $wpse_excerpt ) {
    
                $wpse_excerpt = get_the_content('');
                $wpse_excerpt = strip_shortcodes( $wpse_excerpt );
                $wpse_excerpt = apply_filters('the_content', $wpse_excerpt);
                $wpse_excerpt = str_replace(']]>', ']]>', $wpse_excerpt);
                $wpse_excerpt = strip_tags($wpse_excerpt, wpse_allowedtags()); /*IF you need to allow just certain tags. Delete if all tags are allowed */
    
                //Set the excerpt word count and only break after sentence is complete.
                    $excerpt_word_count = 75;
                    $excerpt_length = apply_filters('excerpt_length', $excerpt_word_count); 
                    $tokens = array();
                    $excerptOutput = '';
                    $count = 0;
    
                    // Divide the string into tokens; HTML tags, or words, followed by any whitespace
                    preg_match_all('/(<[^>]+>|[^<>\s]+)\s*/u', $wpse_excerpt, $tokens);
    
                    foreach ($tokens[0] as $token) { 
    
                        if ($count >= $excerpt_length && preg_match('/[\,\;\?\.\!]\s*$/uS', $token)) { 
                        // Limit reached, continue until , ; ? . or ! occur at the end
                            $excerptOutput .= trim($token);
                            break;
                        }
    
                        // Add words to complete sentence
                        $count++;
    
                        // Append what's left of the token
                        $excerptOutput .= $token;
                    }
    
                $wpse_excerpt = trim(force_balance_tags($excerptOutput));
    
                    $excerpt_end = ' <a href="'. esc_url( get_permalink() ) . '">' . '&nbsp;&raquo;&nbsp;' . sprintf(__( 'Read more about: %s &nbsp;&raquo;', 'wpse' ), get_the_title()) . '</a>'; 
                    $excerpt_more = apply_filters('excerpt_more', ' ' . $excerpt_end); 
    
                    $wpse_excerpt .= $excerpt_more; /*Add read more in new paragraph */
    
                return $wpse_excerpt;   
    
            }
            return apply_filters('wpse_custom_wp_trim_excerpt', $wpse_excerpt, $raw_excerpt);
        }
    
    endif; 
    
    remove_filter('get_the_excerpt', 'wp_trim_excerpt');
    add_filter('get_the_excerpt', 'wpse_custom_wp_trim_excerpt');
    

    Best regards,
    Ismael

    #1329859

    Topic: Fatal error on website

    in forum Enfold
    leprodukte
    Participant

    Hello!

    Our Enfold theme is broken since tonight. We have just received the following message from wordpress:

    WordPress caught an error with your theme, Enfold.
    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.8.2
    Current theme: Enfold (version 4.8.7.1)
    Current plugin: (version )
    PHP version 7.4.25

    Since it is a company presence we would be happy about quick help!

    Thanks!
    David

    #1329855
    David Eskens
    Guest

    Dear Sir or Madam,

    unfortunately, we have just noticed that our company website is no longer working without errors. WordPress reports an error in the Enfold theme:

    Error Details
    =============
    An error of type E_COMPILE_ERROR was caused in line 259 of the file /mnt/web513/b1/40/510931740/htdocs/STRATO-apps/wordpress_05/app/wp-content/themes/enfold/framework/php/inc-autoconfig.php. Error message: require(): Failed opening required ‘/mnt/web513/b1/40/510931740/htdocs/STRATO-apps/wordpress_05/app/wp-content/themes/enfold/framework/php/function-set-avia-ajax.php’ (include_path=’.:/opt/RZphp74/includes’)

    Please send us a short feedback

    Kind regards
    David Eskens

    #1329852

    Hi,
    Thank you, I see that you tried to add this css to hide the added menu items:

    .responsive #top #wrap_all #header #av-burger-menu-ul > li.menu-item-1134.av-active-burger-items {
        display: none;
    }

    and they are hidden after a second but on initial opening of the burger menu they are shown, this is because the burger flyout menu is created on click and is not present on page load so there is a lag between the menu creation and the browser applying the css.
    So let’s scrap that idea and try this instead, remove those menu items, and add this code to the end of your functions.php file in Appearance ▸ Editor:

    function custom_menulink_script() { ?>
        <script>
    (function($) {
      var custommenulink = $('<a class="custommenulink" href="/tr/">TR</a><a class="custommenulink" href="/en/">EN</a>');
        $(custommenulink).insertBefore('.menu-item-avia-special');
    })(jQuery);
    </script>
        <?php
    }
    add_action('wp_footer', 'custom_menulink_script');

    please adjust the link url in the above code.
    and add this code in the General Styling ▸ Quick CSS field:

    a.custommenulink {
        line-height: 80px;
        color: #fff;
        padding: 0 13px;
        font-weight: 600;
    }
    a.custommenulink:hover {
        color: #fff;
        text-decoration: none;
    }
    .js_active.html_burger_menu #avia-menu .av-burger-menu-main {
    	float: right;
    }
    @media only screen and (min-width: 768px) { 
    #avia-menu a.custommenulink {
        line-height: 90px;
    	}
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1329745
    Monika
    Participant

    Hello,

    perhaps you can help me.
    I build several Websites, and with each I have this one specific Issue.
    Google Page Speed check shows me, that there is a big problem with
    “Ressourcen beseitigen, die das Rendering blockieren”
    “Ressourcen blockieren den First Paint Ihrer Seite. Versuchen Sie, wichtiges JS und wichtige CSS inline anzugeben und alle nicht kritischen JS und Stile aufzuschieben.”

    I activated all important Performace settings in Enfold, installed a Cache Plugin and added this Code to “functions.php”:

    function remove_head_scripts() {
        remove_action(‚wp_head‘, ‚wp_print_scripts‘);
        remove_action(‚wp_head‘, ‚wp_print_head_scripts‘, 9);
        remove_action(‚wp_head‘, ‚wp_enqueue_scripts‘, 1);
        add_action(‚wp_footer‘, ‚wp_print_scripts‘, 5);
        add_action(‚wp_footer‘, ‚wp_enqueue_scripts‘, 5);
        add_action(‚wp_footer‘, ‚wp_print_head_scripts‘, 5);
    }
    add_action(‚wp_enqueue_scripts‘, ‚remove_head_scripts‘);
    
    remove_action(‚wp_head‘, ‚print_emoji_detection_script‘, 7);
    remove_action(‚wp_print_styles‘, ‚print_emoji_styles‘ );

    Why does the mobile Website still performs so bad?

    Cheers
    Monika

    #1329677

    Hey sky19er,

    Thank you for the inquiry.

    It might be due do this line (1297) in the enfold/config-templatebuilder/avia-shortcodes/magazine/magazine.php file, which truncates and removes any line breaks in a text or string.

    $excerpt = ! empty( $entry->post_excerpt ) ? $entry->post_excerpt : avia_backend_truncate( $entry->post_content, apply_filters( 'avf_magazine_excerpt_length', 60 ), apply_filters( 'avf_magazine_excerpt_delimiter', ' ' ), '…', true, '' );
    

    Unfortunately, it is not possible to modify the excerpt via filter or hook, so editing the magazine.php file might be necessary in this case.

    Or you could define the excerpt of the posts manually instead of relying on the default post content, which is where the summary is taken.

    Best regards,
    Ismael

    #1329651
    ariane1001
    Participant

    Hello Rikard, others,

    I’ve got , on at least 4 different sites, critical error after updating and below is one of the logs.
    Same error as in https://kriesi.at/support/topic/critical-error-when-trying-to-edit-homepage/#post-1328788,

    Since they are all live sites I have searched to find a solution
    I used the solution from this post https://kriesi.at/support/topic/critical-error-9/#post-1327504 and replaced enfold\includes\admin\option_tabs\avia_blog.php with the content of https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_8_7_1/includes/avia_blog.php

    I believe it’s not an incident because more and more people have the same problem and I think you should solve it in the next update.

    Best regards,
    Ariane

    Error details
    ===========
    Een fout van het type E_ERROR werd veroorzaakt op regelnummer 311 van het bestand /home/deb45050n6/domains/lexdigitalis.nl/public_html/wp-content/themes/enfold/includes/admin/option_tabs/avia_blog.php. Foutmelding: Uncaught ValueError: Unknown format specifier “S” in /home/deb45050n6/domains/lexdigitalis.nl/public_html/wp-content/themes/enfold/includes/admin/option_tabs/avia_blog.php:311
    Stack trace:
    #0 /home/deb45050n6/domains/lexdigitalis.nl/public_html/wp-content/themes/enfold/includes/admin/option_tabs/avia_blog.php(311): sprintf()
    #1 /home/deb45050n6/domains/lexdigitalis.nl/public_html/wp-content/themes/enfold/includes/admin/register-admin-options.php(293): include(‘/home/deb45050n…’)
    #2 /home/deb45050n6/domains/lexdigitalis.nl/public_html/wp-content/themes/enfold/framework/php/class-superobject.php(246): include(‘/home/deb45050n…’)
    #3 /home/deb45050n6/domains/lexdigitalis.nl/public_html/wp-content/themes/enfold/framework/php/class-superobject.php(197): avia_superobject->_create_option_arrays()
    #4 /home/deb45050n6/domains/lexdigitalis.nl/public_html/wp-content/themes/enfold/framework/php/class-superobject.php(146): avia_superobject->init()
    #5 /home/deb45050n6/domains/lexdigitalis.nl/public_html/wp-content/themes/enfold/framework/php/class-superobject.php(482): avia_superobject::instance()
    #6 /home/deb45050n6/domains/lexdigitalis.nl/public_html/wp-content/themes/enfold/framework/avia_framework.php(108): AviaSuperobject()
    #7 /home/deb45050n6/domains/lexdigitalis.nl/public_html/wp-content/themes/enfold/functions.php(196): require_once(‘/home/deb45050n…’)
    #8 /home/deb45050n6/domains/lexdigitalis.nl/public_html/wp-settings.php(546): include(‘/home/deb45050n…’)
    #9 /home/deb45050n6/domains/lexdigitalis.nl/public_html/wp-config.php(108): require_once(‘/home/deb45050n…’)
    #10 /home/deb45050n6/domains/lexdigitalis.nl/public_html/wp-load.php(50): require_once(‘/home/deb45050n…’)
    #11 /home/deb45050n6/domains/lexdigitalis.nl/public_html/wp-admin/admin.php(34): require_once(‘/home/deb45050n…’)
    #12 /home/deb45050n6/domains/lexdigitalis.nl/public_html/wp-admin/index.php(10): require_once(‘/home/deb45050n…’)
    #13 {main}
    thrown

Viewing 30 results - 2,551 through 2,580 (of 16,898 total)