Viewing 30 results - 271 through 300 (of 16,888 total)
  • Author
    Search Results
  • #1485575

    hi sorry for late reply.
    as i havent checked it for many days.
    I am using litespeed server. Theme iversion 7.1 s is on default settings
    I try to check by using child theme https://sunlithenergy.com/index.php/blog/blog-grid/
    same problem.
    Your theme support litespeed swerver and cache?

    #1485574
    This reply has been marked as private.

    Hey hostworks,

    Thank you for the inquiry.

    You’ll find the main wrapper that contains all the content in the themes/enfold/header.php file, so creating or overriding the template in your child theme is the cleanest approach. Look for this code around line 279:

    
    <div id='main' class='all_colors' data-scroll-offset='<?php echo avia_header_setting( 'header_scroll_offset' ); ?>'>
    
    

    Let us know if you have more questions.

    Best regards,
    Ismael

    #1485467

    Hey Jake,
    While I don’t expect any issues with updating from v3.85 to v7.1.1, I recommend creating a full site backup with your web host backup tool, not a plugin, as good practice.
    If they are not using a a Child Theme check the functions.php for any customizations that they may have added, it will be lost in the update. If they are using a child theme, and have any customized php files like header.php or footer.php or any element php files, save these to your computer and remove them from the server before updating. With a version this old they will cause errors, you will need to copy the new version of the files and make the changes to them before adding them to the child theme.
    Typically a good practice is to create a staging site first and update it and then compare the two sites for any difference, if this works fine then update the live site.
    If you have any further questions please register to our support forum here and create a new thread and we will gladly try to help you.
    You have asked your question through the contact form which is not for support requests.
    Thank you for your understanding and for using Enfold.

    Best regards,
    Mike

    #1485356

    In reply to: 7 Spalten Mega Menu

    Hi,

    Try to replace the content of the class-responsive-mega-menu.php file with the following code:

    https://pastebin.com/s3N87rGC

    Let us know the result.

    View post on imgur.com

    Best regards,
    Ismael

    can you put this to your child-theme functions.php:

    
    function admin_head_mod() {
    echo '<style type="text/css">
      #avia_quick_css .avia_description {float: none;margin-bottom: 20px !important;padding-left: 0 !important;width: 98%}
      #avia_quick_css .avia_control {float: left;max-width: 98% !important;width: 98% !important}
      .avia_footer_links li {float: left;padding-right: 20px}
      .avia_footer .avia_footer_save {float: left}
      .avia_reset {display: none !important } 
      #avia_options_page { max-width: 3000px!important}
      #avia_options_page textarea {border: 3px solid #2271b1;min-height: 500px; height: unset}
    </style>';
    }
    add_action('admin_head', 'admin_head_mod');
    

    i think there is now an option to hide the reset button – but it is inside this code too.

    Hi,

    Thanks for reaching out.

    The theme automatically increases the image quality to 100%, but the WordPress default is only 82%. This can be adjusted by using the following filters in the functions.php file:

    add_filter("avf_jpeg_quality", "avf_set_quality_mod", 9999, 1); 
    add_filter("avf_wp_editor_set_quality", "avf_set_quality_mod", 9999, 1); 
    function avf_set_quality_mod($quality) { $quality = 60; return $quality;}
    

    We recommend setting this to 70 or lower, then install an image compression plugin such as ShortPixel or Smush to further reduce file size and optimize the images. You may need to regenerate the thumbnails after the quality adjustment.

    https://wordpress.org/plugins/force-regenerate-thumbnails/

    Best regards,
    Ismael

    #1485019
    Paul McMahon
    Guest

    Hi, Firstly apologies about sending you questions this way but as I do not have a licence number I cannot register. Secondly, Thank you for responding to my question yesterday Subject: Wp Installation and Licence. I doubled the amount of memory allocated in php.ini and the dashbostad now works, thank you. But the site runs Enfold V4.7.6.3 and I see Enfold is now at V7. Do I need the licence number for the update?
    Thanks
    Paul McMahon

    cobaltsapphire
    Participant

    My website fogelcapital.com is showing a critical error message and then I got an email that says the following:

    “In this case, WordPress caught an error with your theme, Enfold.
    First, visit your website (https://fogelcapital.com/) and check for any visible issues. Next, visit the page where the error was caught (https://fogelcapital.com/wp-admin/admin-ajax.php) and check for any visible issues.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.8.1
    Active theme: Enfold (version 7.1.1)
    Current plugin: (version )
    PHP version 8.3.21

    Error Details
    =============
    An error of type E_COMPILE_ERROR was caused in line 9 of the file /home2/pfwbtqmy/public_html/website_6a3a6c27/wp-content/themes/enfold/includes/loop-menu.php. Error message: Cannot declare class _keys, because the name is already in use”

    The interesting part is that the site I built on the temporary domain https://fcm.cobaltsapphire.com/ is not displaying the same error or having any problems with the theme.

    #1484983
    Rabe, Matthias
    Guest

    Guten Abend,
    wir verwendeten bis zur Enfold Version 7.0 immer das 7 Spalten mega menu. Nun finden wir diese helper-responsive-megamenu.php nicht mehr.
    Wo finden wir diese nun ? Oder bitte eine Anweisung was wir machen müssen um wieder ein 7 Spalten Mega menu zu haben. Vielen Dank und entschuldigt, wenn ich so diese Anfrage einreiche. Grüße
    Matti

    #1484973
    Paul McMahon
    Guest

    HI,I’ve taken over the management of a website that uses your Enfold theme. I’ve been working the site for a few years now and more or less everything has been ok until recently. Now when I login to the worpress dashboard I sometimes get the dashboard displayed but as soon as I try to progress beyond that point I get a “There has been a critical error on this website. Please check your site admin email inbox for instructions.”. The site is running Enfold V 4.7.6.3 under WP version 6.4.5. Unfortunately as I did not build the site in the first place I do not have the licence number unless it is stored somewhere in the MySQL database. If I download and install a later version of Enfold will I have to provide the licence number during the installation? The website (www.aeromechanisms.com is working fine, I just can’t edit it.

    The error log reports the following:
    [02-Jun-2025 09:21:15 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/meaams/public_html/wp-content/plugins/woocommerce/src/Admin/API/Reports/PerformanceIndicators/Controller.php on line 571
    [02-Jun-2025 09:21:15 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/meaams/public_html/wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php on line 90
    [02-Jun-2025 09:21:15 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/meaams/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1072
    [02-Jun-2025 09:36:20 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/meaams/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 929
    [02-Jun-2025 09:36:20 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/meaams/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 929
    [02-Jun-2025 09:36:21 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/meaams/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 929
    [02-Jun-2025 09:48:43 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/meaams/public_html/wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/AbstractSchema.php on line 98
    Thanks
    Paul McMahon

    #1484899

    Hey syberknight-tb,
    Unfortunately, we don’t have an element that will achieve this for you in the theme, while there are many plugins that may work for you, when I check some of them they don’t quite match, but if you spend more time testing each one you may find one.
    I was able to create something that may work for you using javascript and HTML in a shortcode, on mobile it shows 1 1/2 team member cards with prev & next arrows and loop when you click to the end:
    Screen Shot 2025 05 31 at 9.41.31 AM
    on tablet it shows 2 1/2 cards:
    Screen Shot 2025 05 31 at 9.43.47 AM
    and on desktop it shows 3 1/2 cards:
    Screen Shot 2025 05 31 at 9.45.40 AM
    As is it holds 8 cards, you can add more or have less, you will need to edit the HTML to add your images and text, hopefully you will be able to do this:
    Screen Shot 2025 05 31 at 9.50.45 AM
    Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor, 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 the code below and save.

    function team_carousel_shortcode() {
        ob_start(); ?>
        
        <div class="carousel-container">
            <button id="prevBtn">←</button>
            <div class="carousel">
                <div class="carousel-track">
                    <!-- START: Team Members -->
            <div class="card"> <img src="/people-2-2-300x300.jpg" alt="Member 1"><p>Member 1<br>A short bio for the team member</p></div>
            <div class="card"> <img src="/people-2-2-300x300.jpg" alt="Member 2"><p>Member 2<br>A short bio for the team member</p></div>
            <div class="card"> <img src="/people-2-2-300x300.jpg" alt="Member 3"><p>Member 3<br>A short bio for the team member</p></div>
            <div class="card"> <img src="/people-2-2-300x300.jpg" alt="Member 4"><p>Member 4<br>A short bio for the team member</p></div>
            <div class="card"> <img src="/people-2-2-300x300.jpg" alt="Member 5"><p>Member 5<br>A short bio for the team member</p></div>
            <div class="card"> <img src="/people-2-2-300x300.jpg" alt="Member 6"><p>Member 6<br>A short bio for the team member</p></div>
            <div class="card"> <img src="/people-2-2-300x300.jpg" alt="Member 7"><p>Member 7<br>A short bio for the team member</p></div>
            <div class="card"> <img src="/people-2-2-300x300.jpg" alt="Member 8"><p>Member 8<br>A short bio for the team member</p></div>
            <!-- END: Team Members -->
                </div>
            </div>
            <button id="nextBtn">→</button>
        </div>
    
        <style>
        .carousel-container {
            position: relative;
            width: 80%;
            overflow: visible;
            margin: auto;
        }
    
        .carousel {
            overflow: hidden;
            width: 100%;
        }
    
        .carousel-track {
            display: flex;
            transition: transform 0.5s ease-in-out;
        }
    
        .card {
            box-sizing: border-box;
            padding: 10px;
            background: #e8e8e8;
            margin: 5px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
    
        @media only screen and (max-width: 767px) { 
            .card { flex: 0 0 62%; }
        }
    
        @media only screen and (min-width: 768px) and (max-width: 1800px) { 
            .card { flex: 0 0 38%; }
        }
    
        @media only screen and (min-width: 1801px) { 
            .card { flex: 0 0 28%; }
        }
    
        .card p {
            color: #000;
         }
    	.card img {
            width: 100%;
            height: auto;
            object-fit: cover;
            border-radius: 100%;
        }
    
        #nextBtn, #prevBtn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: #000;
            border: 2px solid #000;
            padding: 10px;
            cursor: pointer;
            z-index: 10;
        }
    
        #prevBtn { left: -50px; }
        #nextBtn { right: -50px; }
        </style>
    
        <script>
        document.addEventListener('DOMContentLoaded', function () {
            const track = document.querySelector('.carousel-track');
            const cards = document.querySelectorAll('.card');
            const prevBtn = document.getElementById('prevBtn');
            const nextBtn = document.getElementById('nextBtn');
    
            let currentIndex = 0;
            let cardWidth = cards[0].offsetWidth + 20;
    
            function updateCarousel() {
                const shift = currentIndex * cardWidth;
                track.style.transform = translateX(-${shift}px);
            }
    
            function moveToNext() {
                currentIndex++;
                if (currentIndex >= cards.length) {
                    currentIndex = 0;
                }
                updateCarousel();
            }
    
            function moveToPrev() {
                currentIndex--;
                if (currentIndex < 0) {
                    currentIndex = cards.length - 1;
                }
                updateCarousel();
            }
    
            nextBtn.addEventListener('click', moveToNext);
            prevBtn.addEventListener('click', moveToPrev);
    
            window.addEventListener('resize', () => {
                cardWidth = cards[0].offsetWidth + 20;
                updateCarousel();
            });
        });
        </script>
    
        <?php
        return do_shortcode(ob_get_clean());
    }
    add_shortcode('team_carousel', 'team_carousel_shortcode');

    Then add this shortcode in a code block element on your page: [team_carousel]
    Feel free to adjust the colors in the css in the code.

    Best regards,
    Mike

    #1484848

    Hey Sonia,

    Sorry for the delay. The theme automatically sets the quality of uploaded images to 100%, but this should not be the reason why the generated files are larger than the originals. Did you install any plugins related to images or compression?

    If necessary, you can reset the image quality to the WordPress default by adding this code to the functions.php file.

    add_filter("avf_jpeg_quality", "avf_set_quality_mod", 9999, 1);
    add_filter("avf_wp_editor_set_quality", "avf_set_quality_mod", 9999, 1);
    function avf_set_quality_mod($quality) { $quality = 70; return $quality;}
    

    You may need to regenerate the thumbnails afterward.

    https://wordpress.org/plugins/force-regenerate-thumbnails/

    Make sure to create a site backup or restore point before regenerating the thumbnails.

    Best regards,
    Ismael

    #1484728
    aron8778
    Participant

    Hi,

    I have Enfold 7.1 running PHP 8.4.7 through Siteground and the masonry gallery is not appearing plus, mega menu not appearing correctly and other things not working right like the normal gallery.

    I have disabled plugins and checked
    Reinstalled the theme and checked

    If you see the link attached, scroll down on homepage under – Our Driveway Solutions For Nottingham
    Also hover over the mega menu
    Also check the gallery on the link provided, this doesnt load and when you click on the image it opens from the media library

    Can someone please help as I am not sure what else I can do now?
    Thanks
    Aron

    Elisa
    Guest

    Hello Kriesi team,

    I’m facing a somewhat delicate situation with a WordPress site that needs to be updated. Currently, the site is running a rather old version of WordPress (4.8.5) with your Enfold theme installed in version 4.0.7, all running on PHP 7.2.

    My goal is to update the site to the latest version of WordPress, the latest version of Enfold, and also upgrade PHP to version 8.2. However, I’m aware that doing this directly may lead to compatibility issues and failures due to the large gap between versions.

    That’s why, before purchasing a new license for your Enfold theme, I’d like to know whether buying it would give me access to previous theme versions as well (intermediate versions between 4.0.7 and the latest), so I can carry out a gradual and controlled update process, minimizing the risk of issues. I would also appreciate any guidance you could provide on how many intermediate versions I should use, and at which stages, following the successive WordPress updates.

    Thank you very much for your attention. I look forward to your reply so I can make an informed decision.

    Best regards

    #1484647

    Hey Sven,
    Your site is reporting a 404 error (file not found) for your icon fonts:
    Screen Shot 2025 05 25 at 6.51.50 AM
    This affects your social icons and the other icons on your page:
    Screen Shot 2025 05 25 at 7.07.21 AM
    It looks like the only fonts loading are from this location: /wp-content/uploads/themepunch/gfonts/ which may be from a plugin, or perhaps your WP Rocket plugin is causing the fonts to not load.
    The first step is to disable all of your plugins and check again. If this doesn’t help leave all of your plugins disabled and include a admin login so we can examine.
    I see that you are using a child theme, if you have a old copy of header.php or footer.php in your child theme, please remove these, as this is the top reason for errors after updating.

    Best regards,
    Mike

    #1484614

    Hi,
    Thank you for your patience, when I test your snippet above I find that the quotes have been converted to curly quotes which break the code.
    If I correct them first, they work correctly in the code block element:
    Screen Shot 2025 05 24 at 12.25.29 PM
    Screen Shot 2025 05 24 at 12.41.37 PM
    when using a code snippet like this the code block element is the correct element to use because the PayPal snippet is calling a function from the PayPal site which will run in the backend editor where you don’t want it to. The visual mode of the text editor will run the code, but the code block element will not.
    If you really want to use the text block element, then use the code tab and do not switch to the visual tab. Here I show that this works, in the code tab you see the code and the preview shows the button:
    Screen Shot 2025 05 24 at 12.52.08 PM
    at this point click “save” and not the visual tab and the button is shown in the editor, which means that WordPress is running the code in the text element in the backend.
    Now you can update the page and view the frontend:
    Screen Shot 2025 05 24 at 12.57.48 PM
    This is the corrected code snippet that I used:

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
    <input type="hidden" name="cmd" value="_s-xclick" />
    <input type="hidden" name="hosted_button_id" value="H87UB2HDHP3GS" />
    <table>
    <tr>
    <td>
    <input type="hidden" name="on0" value="Options for Brondanw & Nantclwyd only"/>
    Options for Brondanw & Nantclwyd only
    </td>
    </tr>
    <tr>
    <td>
    <select name="os0">
    <option value="Member">
    Member £17.00 GBP
    </option>
    <option value="Guest">
    Guest £19.00 GBP
    </option>
    <option value="2 Members">
    2 Members £34.00 GBP
    </option>
    <option value="1 Member + 1 Guest">
    1 Member + 1 Guest £36.00 GBP
    </option>
    <option value="Child under 16">
    Child under 16 £10.00 GBP
    </option>
    </select>
    </td>
    </tr>
    </table>
    <input type="hidden" name="currency_code" value="GBP" />
    <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" title="PayPal – The safer, easier way to pay online!" alt="Add to Cart" />
    </form>

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    To prevent your code snippet from changing if you want to edit the text block element in the future, such as adding text around the button, we will create a shortcode for your button, by adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function paypal_button_shortcode() {
        ob_start(); ?>
        
        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
            <input type="hidden" name="cmd" value="_s-xclick" />
            <input type="hidden" name="hosted_button_id" value="H87UB2HDHP3GS" />
            <table>
                <tr>
                    <td>
                        <input type="hidden" name="on0" value="Options for Brondanw & Nantclwyd only" />
                        Options for Brondanw & Nantclwyd only
                    </td>
                </tr>
                <tr>
                    <td>
                        <select name="os0">
                            <option value="Member">Member £17.00 GBP</option>
                            <option value="Guest">Guest £19.00 GBP</option>
                            <option value="2 Members">2 Members £34.00 GBP</option>
                            <option value="1 Member + 1 Guest">1 Member + 1 Guest £36.00 GBP</option>
                            <option value="Child under 16">Child under 16 £10.00 GBP</option>
                        </select>
                    </td>
                </tr>
            </table>
            <input type="hidden" name="currency_code" value="GBP" />
            <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" title="PayPal – The safer, easier way to pay online!" alt="Add to Cart" />
        </form>
    
        <?php
        return ob_get_clean();
    }
    add_shortcode('paypal_button', 'paypal_button_shortcode');
    

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    Then in your text block element use this shortcode [paypal_button]
    Screen Shot 2025 05 24 at 1.16.48 PM
    in the backend you will only see the shorcode:
    Screen Shot 2025 05 24 at 1.16.48 PM
    and on the frontend the button shows:
    Screen Shot 2025 05 24 at 1.20.15 PM

    Best regards,
    Mike

    #1484592

    Topic: difference on 2 pages

    in forum Enfold
    schweg33
    Participant

    Hello together
    I got a script from Guenni007:
    Enter the command (Ctrl + F ) in the content in a line in html
    and then open this command with a mouse click.
    Insert the snippset in the Function.php and a script in Quick CSS
    I have done this on this page:
    Link 01 see below:
    I search for “Batliner” and the name is found 34 times.
    Link 02 see below:
    I search for “Batliner” and the name is not found once.
    I search for “Bat” and the name is found 34 times.
    What is the difference between these two pages, I just can’t find it.
    best regards Franz

    #1484565

    Hi,

    Will that happen wherever Masonry appears?

    Yes, for some reason, it executes a function intended for Woocommerce. Try editing the file at enfold/config-templatebuilder/avia-shortcode-legacy/av-helper-masonry.php and look for the following code around line 1273:

    if ( function_exists( 'WC' ) ) {
    	avia_wc_clear_catalog_ordering_args_filters();
    	$avia_config['woocommerce']['disable_sorting_options'] = false;
    }

    Replace it with:

    if ( function_exists( 'WC' ) && ! class_exists( 'BigCommerce' ) ) {
    	avia_wc_clear_catalog_ordering_args_filters();
    	$avia_config['woocommerce']['disable_sorting_options'] = false;
    }

    Let us know if the issue persists.

    Best regards,
    Ismael

    #1484540
    panoptic2012
    Participant

    Hello,

    I’m trying to run a BigCommerce store using the Enfold theme, but there’s a critical error that’s giving the white screen of death when I try to view the homepage. The back-end stays up and running, but when the BigCommerce plugin is active, the site doesn’t exist. I’d love to keep using the Enfold theme and would hate to have to use something else for this site. Any help would be greatly appreciated!

    WordPress version 6.8.1
    Active theme: Enfold Child (version 1.0) Current plugin: (version ) PHP version 8.2.18

    Error Details
    =============
    An error of type E_ERROR was caused in line 1602 of the file /home1/enginendo/public_html/cjm/wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php. Error message: Uncaught Error: Call to undefined function avia_wc_clear_catalog_ordering_args_filters() in /home1/enginendo/public_html/cjm/wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php:1602
    Stack trace:
    #0 /home1/enginendo/public_html/cjm/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php(753): avia_masonry->query_entries(Array, false)
    #1 /home1/enginendo/public_html/cjm/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php(810): avia_sc_masonry_entries->get_element_styles(Array)
    #2 /home1/enginendo/public_html/cjm/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1178): avia_sc_masonry_entries->shortcode_handler(Array, ”, ‘av_masonry_entr…’, Array)
    #3 /home1/enginendo/public_html/cjm/wp-includes/shortcodes.php(434): aviaShortcodeTemplate->shortcode_handler_prepare(Array, ”, ‘av_masonry_entr…’)
    #4 [internal function]: do_shortcode_tag(Array)
    #5 /home1/enginendo/public_html/cjm/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(av_but…’, ‘do_shortcode_ta…’, ‘[av_slidesho…’)
    #6 /home1/enginendo/public_html/cjm/wp-includes/class-wp-hook.php(324): do_shortcode(‘[av_slidesho…’)
    #7 /home1/enginendo/public_html/cjm/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘[av_slidesho…’, Array)
    #8 /home1/enginendo/public_html/cjm/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php(137): apply_filters(‘the_content’, ‘

    #1484538
    NicomIT
    Participant

    I am getting a flood of deprecation warnings in my error_log file and it is slowing down our server’s performance, especially noticeable when editing posts and pages.

    It appears the offending functions are:
    av_icon_char
    av_icon_class
    av_icon_string

    I cannot find information on what the correct replacements are. Is this something you can help me with?

    Here are some samples of how we are currently using these functions.

    av_icon_char
    $icon = av_icon_char( ‘search’ );

    av_icon_string
    $class = av_icon_class( ‘search’ );

    av_icon_string
    ‘ id=’scroll-top-link’ <?php echo av_icon_string(‘scrolltop’); ?>><span class=”avia_hidden_link_text”><?php _e(‘Scroll to top’, ‘avia_framework’);?></span>

    Here are some examples from the error_log file:

    [21-May-2025 18:26:12 UTC] PHP Deprecated: Function av_icon_char is deprecated since version 7.0! Use No longer used by Enfold instead. in /home/maritimetravel/public_html/wp-includes/functions.php on line 6121
    [21-May-2025 18:26:12 UTC] PHP Deprecated: Function av_icon_class is deprecated since version 7.0! Use No longer used by Enfold instead. in /home/maritimetravel/public_html/wp-includes/functions.php on line 6121
    [21-May-2025 18:26:12 UTC] PHP Deprecated: Function av_icon_char is deprecated since version 7.0! Use No longer used by Enfold instead. in /home/maritimetravel/public_html/wp-includes/functions.php on line 6121
    [21-May-2025 18:26:12 UTC] PHP Deprecated: Function av_icon_class is deprecated since version 7.0! Use No longer used by Enfold instead. in /home/maritimetravel/public_html/wp-includes/functions.php on line 6121

    Our error_log file grows about 200 MB per day.

    Can you please direct me on how we can update our child theme to address these deprecation warnings?

    Hi Ismael,

    I do have the problem on multiple installs right now. The editor can “edit_posts” and I still get the error …

    You find the login details in private.

    The settings are:
    • Deactivated ALB for everyone exept admin
    • Code in functions.php to allow it for admin AND editor
    • Without “remove_filter” because change in 2021 (see above)
    • Both have “edit_posts” capability
    • Error occurs only in Enfold 7

    Hope you find a solution. Thanks in advance!

    Best regards,
    Daniel

    #1484525
    NBSGMBH
    Participant

    Hallo,

    unsere Seite ist total zerpflügt. Enold Version 7.1, PHP 8.3.21
    Brauche dringend Hilfe.
    Vielen Dank, Martin

    Hello, our site is totally ploughed up. Enold version 7.1, PHP 8.3.21
    Need urgent help.
    Many thanks, Martin

    • This topic was modified 10 months, 2 weeks ago by NBSGMBH.
    spooniverse
    Participant

    Dear support members, hi @Ismael,

    in 2021 I got a helpful piece of code that is misbehaving in the latest version of the theme right now. See this thread and post #858672.

    It ist still working to load the ALB for defined user roles (in this example editor and administrator), while the option in the theme settings is set to restrict the ALB only for admins:

    function ava_enable_alb_for_editor() {
    	add_filter('avf_allow_drag_drop', 'avia_disable_alb_drag_drop_mod', 40, 1);
    }
    add_action('init', 'ava_enable_alb_for_editor');
    
    function avia_disable_alb_drag_drop_mod( $disable )
    {
        $user = wp_get_current_user();
        $allowed_roles = array('editor', 'administrator', 'author');
    	$check = array_intersect( $allowed_roles, $user->roles );
    
    	if( ! empty( $check ) )
    	{
    		$disable = avia_get_option('lock_alb', 'disabled') != "lock_alb" ? true : false;
    	}
    
    	return $disable;
    }

    I can access the ALB as administrator and as editor, so this part of the code is alright. Perfect! But as editor I can’t load a template from the template dropdown in the upper right corner. Everything else is editable and finde, but as I want to load an ALB template I get an error message:

    An error has occurred
    Error retrieving content – please reload the page and try again

    Seems to be a rights problem. If I delete the code above from functions.php I can’t access the ALB as editor. If I furthermore toggle the option to access the ALB for everybody I can use the ALB as editor and load ALB templates from the dropdown. But: I want only admins and editors to use ALB (and ALB templates).

    Any ideas why the behaviour of the code changed and I can’t access the ALB templates anymore?

    I appreciate your help!

    Kind regards,
    Daniel

    #1484414

    Hey envis,
    You should upload only the webp images and add them to the galleries and other elements. I tested this on the different galleries, masonry, featured images, color section background image, blog post element, ect. There is no need to upload two versions of each image, just use the webp format directly.
    Assuming that you are only uploading jpg images and then using a plugin to convert them to webp copies, you could add this code to the end of your child theme functions.php file in Appearance ▸ Editor to show the webp version if the file name and location is exactly the same, the draw back to this approach is that you have twice as many images on your server with only half being used. This also won’t rewrite CSS background images in external CSS files — only inline styles and HTML output, so if you are using CSS File Compression And Merging, or another caching plugin and have background images such as a background image in a color section or a masonry element it may not work. In my tests once I cleared the css and cache it worked for me except the gallery short code like [gallery link="file" columns="5" ids="4350,870,868,864,862"] the gallery and other elements did work.

    add_filter('wp_get_attachment_image_src', function($image, $attachment_id, $size) {
        $webp_path = preg_replace('/\.(jpe?g|png)$/i', '.webp', get_attached_file($attachment_id));
        $webp_url = preg_replace('/\.(jpe?g|png)$/i', '.webp', $image[0]);
    
        if (file_exists($webp_path)) {
            $image[0] = $webp_url;
        }
    
        return $image;
    }, 10, 3);
    //for background images
    // Replace image URLs with .webp if the .webp version exists
    function enfold_replace_with_webp($buffer) {
        // Replace src="...jpg|png" and url('...jpg|png') with .webp if available
        return preg_replace_callback(
            '/(?:src|url)\s*=\s*["\']([^"\']+\.(?:jpe?g|png))["\']|url\(\s*["\']?([^"\')]+\.(?:jpe?g|png))["\']?\s*\)/i',
            function($matches) {
                $original_url = $matches[1] ?: $matches[2];
                if (!$original_url) return $matches[0];
    
                $parsed_url = wp_parse_url($original_url);
                if (empty($parsed_url['path'])) return $matches[0];
    
                $img_path = $_SERVER['DOCUMENT_ROOT'] . $parsed_url['path'];
                $webp_path = preg_replace('/\.(jpe?g|png)$/i', '.webp', $img_path);
                $webp_url = preg_replace('/\.(jpe?g|png)$/i', '.webp', $original_url);
    
                if (file_exists($webp_path)) {
                    // Return updated string (preserving whether it was src= or url())
                    if ($matches[1]) {
                        return str_replace($original_url, $webp_url, $matches[0]);
                    } else {
                        return 'url("' . $webp_url . '")';
                    }
                }
    
                return $matches[0];
            },
            $buffer
        );
    }
    
    // Start output buffering early
    function enfold_start_webp_buffering() {
        ob_start('enfold_replace_with_webp');
    }
    add_action('template_redirect', 'enfold_start_webp_buffering');
    

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    Also note that your server media handling editor needs to also support webp files, mine is WP_Image_Editor_GD, which is default for WordPress:
    Screen Shot 2025 05 18 at 5.02.43 PM
    If you are not able to directly use the webp images in your elements, this could be the cause.

    Best regards,
    Mike

    #1484291

    Hello,

    Is there already a solution for the problem? The burger is visible, but clicking it on any device doesn’t open the menu.
    I alos tried various changes in settings but nothing helps.

    Versions:
    Enfold 7.1
    Wordpress 6.8.1
    PHP 8.3.19 (ea-php83)

    Kind Regards,

    Teun van Wijck

    Hi,

    Deprecated: Function avia_font_manager::frontend_icon is deprecated since version 7.0! Use Use

    Did you modify any shortcodes in the child theme? It’s possible they are still using a deprecated function. You should also check the child theme’s functions.php file. We can’t access the file anymore because the Appearance > Theme File Editor is no longer available.

    We also recommend testing this on a different host, as it’s possible the issue is server-related. Try cloning the site to a server hosted by another company or platform.

    Best regards,
    Ismael

    Good morning, Ismael,

    Thank you for the solution to the select warning; it seems to have resolved the issue. We do have an online test environment, but it is not a clone of the live version—only a local site that is a copy.

    What do you suggest I should test?

    Thank you!
    #edit 1
    Update regarding the deprecation warnings: When I deactivate Yoast, they are gone. I’ll pass that problem to the plugin author.

    That sadly leaves us with the core problem, which still persists: the slow editing for content elements with icon features.
    sill a thing

    #edit 2
    some more digging on the local test environment i found this:

    Deprecated: Function avia_font_manager::frontend_icon is deprecated since version 7.0! Use Use avia_font_manager::get_frontend_icon instead instead. in C:\**local-path**\wp-includes\functions.php on line 6121

    • This reply was modified 10 months, 4 weeks ago by ekf_wp.
    • This reply was modified 10 months, 4 weeks ago by ekf_wp.
    #1484007

    In reply to: Ctrl + F in html

    Many thanks Guenni007

    Thank you very much for your presentation:

    I have now installed everything according to your instructions
    Test page: https://wuensche.li/
    in the functions.php
    and
    in the quick css
    How do I now make the button appear on the imprint page?

    Many thanks
    Best regards
    Frank

    Hi,
    When I check my single post using the Default (Business) blog style, the Tags show at the bottom of the page without the filter above:
    Screen Shot 2025 05 10 at 1.07.11 PM
    To move them in line with the categories and other meta try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function move_tag_meta_inline_with_other_meta_on_single_posts() { ?>
      <script>
    document.addEventListener('DOMContentLoaded', function() {
        if (document.querySelector('.single-post')) {
            const blogTags = document.querySelector('.blog-tags');
            const blogCategories = document.querySelector('.blog-categories');
            
            if (blogTags && blogCategories) {
                const strongTag = blogTags.querySelector('strong');
                if (strongTag && strongTag.textContent === 'Tags:') {
                    strongTag.replaceWith(strongTag.textContent);
                }
                
                const separator = document.createElement('span');
                separator.className = 'text-sep';
                separator.textContent = '/';
                
                blogCategories.insertAdjacentElement('afterend', separator);
                separator.insertAdjacentElement('afterend', blogTags);
            }
        }
    });
    </script>
      <?php
    }
    add_action( 'wp_footer', 'move_tag_meta_inline_with_other_meta_on_single_posts', 99 );

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    Screen Shot 2025 05 10 at 1.13.38 PM

    Best regards,
    Mike

Viewing 30 results - 271 through 300 (of 16,888 total)