Viewing 30 results - 511 through 540 (of 16,890 total)
  • Author
    Search Results
  • #1471520
    Annedesign
    Participant

    Hi,
    Depricated function error suddenly showing in front end header of https://www.hearapukeruabay.nz/:

    Deprecated: Function wp_targeted_link_rel is deprecated since version 6.7.0 with no alternative available. in /home/hearapu/public_html/wp-includes/functions.php on line 6114

    Deprecated: Function wp_targeted_link_rel_callback is deprecated since version 6.7.0 with no alternative available. in /home/hearapu/public_html/wp-includes/functions.php on line 6114

    I have never seen this in over 30 installs of Enfold over many years.

    Everything is up to date and debugging is turned off in Enfold. At my host’s suggestion, I used a plug-in to see where the errors are – apparently Enfold. See screenshots.

    So 2 questions – how do I get rid of these from the front end and what needs to be done – is there an issue to fix?

    Thanks,
    Anne

    #1471506

    In reply to: Footer and menu

    Thanks for your suggestion Guenni007.
    Let’s see if I understood correctly. You recommend duplicating the footer.php file from the theme to the child and modifying the code of lines 311-317 and adding that of lines 11-15, right?
    And the remaining code?
    #footer, #socket, #footer-page {
    z-index: 1000;
    }
    #footer-page {
    position: relative;
    }
    Where should it be inserted? I don’t find it inside the file https://pastebin.com/JUyUhwDs

    #1471400
    wlashack
    Participant

    Hello,
    after installing ENFOLD theme into my WordPress it keeps displaying infobox that “Enfold Child template uses outdated copies of Woocommerce templates”. The list is quite huge (see below). Woocommerce suggest to contact the author of a theme for actual versions, which I am doing here.
    Can you help, please? Thanks.

    ===========================================
    enfold-child/woocommerce/checkout/form-checkout.php,
    enfold-child/woocommerce/emails/admin-cancelled-order.php verze 2.5.0 je neaktuální. Verze jádra je 4.1.0,
    enfold-child/woocommerce/emails/admin-failed-order.php verze 2.5.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/admin-new-order.php verze 2.5.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/customer-completed-order.php verze 2.5.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/customer-invoice.php verze 2.5.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/customer-new-account.php verze 1.6.4 je neaktuální. Verze jádra je 6.0.0,
    enfold-child/woocommerce/emails/customer-note.php verze 2.5.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/customer-on-hold-order.php verze 2.5.0 je neaktuální. Verze jádra je 7.3.0,
    enfold-child/woocommerce/emails/customer-processing-order.php verze 2.5.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/customer-refunded-order.php verze 2.5.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/customer-reset-password.php verze 2.0.0 je neaktuální. Verze jádra je 9.3.0,
    enfold-child/woocommerce/emails/email-addresses.php verze 3.2.1 je neaktuální. Verze jádra je 8.6.0,
    enfold-child/woocommerce/emails/email-customer-details.php,
    enfold-child/woocommerce/emails/email-downloads.php verze 3.2.0 je neaktuální. Verze jádra je 3.4.0,
    enfold-child/woocommerce/emails/email-footer.php verze 2.3.0 je neaktuální. Verze jádra je 7.4.0,
    enfold-child/woocommerce/emails/email-header.php verze 2.4.0 je neaktuální. Verze jádra je 7.4.0,
    enfold-child/woocommerce/emails/email-order-details.php verze 3.2.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/email-order-items.php verze 3.2.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/email-styles.php verze 2.3.0 je neaktuální. Verze jádra je 9.3.0,
    enfold-child/woocommerce/emails/plain/admin-cancelled-order.php verze 2.5.0 je neaktuální. Verze jádra je 4.1.0,
    enfold-child/woocommerce/emails/plain/admin-failed-order.php verze 2.5.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/plain/admin-new-order.php verze 2.5.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/plain/customer-completed-order.php verze 2.5.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/plain/customer-invoice.php verze 2.5.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/plain/customer-new-account.php verze 2.0.0 je neaktuální. Verze jádra je 6.0.0,
    enfold-child/woocommerce/emails/plain/customer-note.php verze 2.5.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/plain/customer-on-hold-order.php verze 2.5.0 je neaktuální. Verze jádra je 7.3.0,
    enfold-child/woocommerce/emails/plain/customer-processing-order.php verze 2.5.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/plain/customer-refunded-order.php verze 2.5.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/plain/customer-reset-password.php verze 2.3.0 je neaktuální. Verze jádra je 9.3.0,
    enfold-child/woocommerce/emails/plain/email-addresses.php verze 3.2.1 je neaktuální. Verze jádra je 8.6.0,
    enfold-child/woocommerce/emails/plain/email-customer-details.php verze 2.5.0 je neaktuální. Verze jádra je 3.4.0,
    enfold-child/woocommerce/emails/plain/email-downloads.php verze 3.2.0 je neaktuální. Verze jádra je 3.4.0,
    enfold-child/woocommerce/emails/plain/email-order-details.php verze 3.2.0 je neaktuální. Verze jádra je 3.7.0,
    enfold-child/woocommerce/emails/plain/email-order-items.php verze 3.2.0 je neaktuální. Verze jádra je 5.2.0

    #1471308

    In reply to: WP 6.7 Upgrade

    maybe it is just the fact that the new WP 6.7 switches back to block editor as standard.
    Goto Enfold – Theme Options – Select your Editor : and switch back to classic Editor.

    or is the problem that you want to use the block editor – but had no enfold elements anymore?

    By the way. I can see the button at the top to activate the advanced layout editor – but the active click area is only on the half right. (as if only this part of the standard editor button area is active)
    It is that field on the left that overlaps the Enfold button.

    ______________
    not necessary:
    it starts with ALB editor even in Block Editor Mode if you got this in your child-theme functions.php:

    function trigger_alb_on_load(){
    ?>
    <script>
    (function($){
        $(window).on('load', function(){
          setTimeout(function() {
            $("#avia-builder-button").trigger('click');
          }, 300);
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('admin_head-post-new.php', 'trigger_alb_on_load');
    
    #1471306
    OmarSG
    Participant

    Hi, I upgrade to WP 6.7 and me website https://www.bokalind.is and I get error both on head of webside and in for each product
    they have send to me email,with this:
    #0 /var/www/virtual/bokalind.is/htdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/product_snippets/product_snippet_tabs.php(141): wc_clear_notices()
    #1 /var/www/virtual/bokalind.is/htdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1178): avia_sc_product_tabs->shortcode_handler()
    #2 /var/www/virtual/bokalind.is/htdocs/wp-includes/shortcodes.php(434): aviaShortcodeTemplate->shortcode_handler_prepare()

    If you go to https://bokalind.is/vara/ensk-islensk-ordabok-soren-sorensson/ that are selling enlish-icelandic dictionary I have 25 notice like that:
    Deprecated: Function wp_targeted_link_rel is deprecated since version 6.7.0 with no alternative available. in /var/www/virtual/bokalind.is/htdocs/wp-includes/functions.php on line 6114
    Deprecated: Function wp_targeted_link_rel_callback is deprecated since version 6.7.0 with no alternative available. in /var/www/virtual/bokalind.is/htdocs/wp-includes/functions.php on line 6114
    Deprecated: Function wp_targeted_link_rel_callback is deprecated since version 6.7.0 with no alternative available. in /var/www/virtual/bokalind.is/htdocs/wp-includes/functions.php on line 6114
    This is in all sales products
    I have try to go back to WP 6.2.2 but it was not possible – What should I do?
    Regards
    Omar SG

    #1471278

    follow up – this was the answer from my hosting service:

    As per techs, this is due to a recent update in WordPress core. WordPress 6.7, recently released, changes the way translations are loaded, aligning with best practices for internationalization. This shift affects how and when translation strings should be triggered, aiming to prevent potential issues that arise from loading translations too early. Most plugins haven’t adapted to this.

    A quick fix is to deactivate debug mode in the wp-config.php file by turning it off as shown below:-
    define( ‘WP_DEBUG’, false );

    that fixed the issue.

    • This reply was modified 1 year, 4 months ago by Munford.
    #1471220
    xeovision
    Participant

    Hi,
    i got this erros from this morning: https://fxfimmobilien.ch

    Notice: Die Funktion _load_textdomain_just_in_time wurde fehlerhaft aufgerufen. Das Laden der Übersetzung für die Domain avia_framework wurde zu früh ausgelöst. Das ist normalerweise ein Hinweis auf Code im Plugin oder Theme, der zu früh läuft. Übersetzungen sollten mit der Aktion init oder später geladen werden. Weitere Informationen: Debugging in WordPress (engl.). (Diese Meldung wurde in Version 6.7.0 hinzugefügt.) in /var/www/vhosts/immobiliarix.ch/fxfimmobilien.ch/wp-includes/functions.php on line 6114

    Any idea how to fix this?

    #1471145

    First : how about your WordPress Version – does it need an update too?
    if there is a big difference – a major Update in WordPress too … make a Backup of your Installation – and maybe prepare your theme allready for that newest WP – see: Unfortunately, the theme is no longer set as sticky regarding the adaptation to newer php versions / WordPress versions. But that is not necessary and can be done afterwards
    What php Version you are running on your system – there are a few changes that need to be taken into account. Especially the changes from php7.x to php8.x and the implementation of jQuery 3.x …

    I have never had any problems with WPML updates and Enfold updates. However, I agree with you that plugins that interfere with many areas of a theme always carry update risks.
    That’s why I already have a good backup plugin installed for most sites for other reasons. Even the free version of Duplicator is a very good program.
    This program creates a complete backup in two files. A zip file with the contents, and an installation file for restoring the backup. Btw. this can also be used for migration.
    So if major updates are planned, I create a Duplicator backup beforehand and can then make the updates without losing the status quo.

    ________________

    Updating the theme – additionally you can update the theme by ftp upload : https://kriesi.at/support/topic/some-hints-and-advice-to-update-enfold/#post-1056107

    Uploading the new theme takes a little time; if all goes well, the page will only be offline for the small amount of time that it will be renamed. You have the old installation as fallback. (there is no overwriting of the old theme)

    Update via ftp.

    • download installable newest Enfold : unzip the file – you will have an enfold folder now
    • Rename that downloaded newest version to enfold-new
    • Upload that enfold-new folder to the themes folder
    • Rename your (existing) enfold folder to f.e. enfold-old / in your ftp client (f.e. filezilla)
    • Rename your enfold-new folder to enfold / again: in your ftp client (f.e. filezilla)
    • Go to dashboard – enfold(-child) – and refresh your merged/cached files on performance tab
    • Check if all your theme and existing settings work to your full satisfaction.
    • Yes – then stop here
    • No – delete or rename back the enfold folder back to enfold-new
    • rename the enfold-old folder back to enfold

    Hi,

    Thank you for the info.

    Please looks for the av_video_assets_required function in enfold\includes\helper-assets.php file and replace it with the following code. Let us know of the result.

    /**
     * Checks the entries for the current page for av_video, av_audio, <audio>, <video> and background video elements.
     *
     * @since 4.3
     * @added_by Kriesi
     * @param array $assets
     */
    function av_video_assets_required() {
        global $posts;
    
        // Check if we are editing a LearnDash topic and return early if true
        if ( is_admin() ) {
            $screen = get_current_screen();
            if ( $screen && $screen->post_type === 'sfwd-topic' ) {
                return false;
            }
        }
    
        $used = false;
    
        if ( ! is_array( $posts ) ) {
            return $used;
        }
    
        /**
         * https://kriesi.at/support/topic/mediaelement-loading-on-every-page/
         * Default values https://  https:// are regarded as video => extended $regex
         *
         * @since 5.6.7
         */
        $regex = "!\[av_blog|\[av_postslider|\[av_video|\[av_audio|\[av_player|\[audio|<audio|<video|video\=\'http[s]?:\/\/[^']?\S{2,}\'|video\=\"http[s]?:\/\/[^\"]?\S{2,}\"!im";
    
        foreach ( $posts as $post ) {
            $matches = array();
            $found = preg_match_all( $regex, $post->post_content, $matches, PREG_OFFSET_CAPTURE );
    
            if ( ! empty( $found ) ) {
                $used = true;
                break;
            }
    
            $format = get_post_format( $post->ID );
    
            if ( $format == 'audio' || $format == 'video' ) {
                $used = true;
                break;
            }
        }
    
        return $used;
    }
    

    You can also set the Enfold > Performance > Self Hosted Videos And Audio Features (WP-Mediaelement Scripts) to “Always load media features” to avoid the check above.

    Best regards,
    Ismael

    #1470961

    Hi,
    I’m not able to login to your staging site as it is htaccess password protected:
    Screen Shot 2024 11 09 at 9.06.28 AM
    Your PHP code from WPMUdev is to “remove” the flags, but it is not working, but you write that you don’t want to remove the flags, so it is best to remove the code.
    As for updating the theme, your live site says:
    Updates: enabled - token has changed and not verified
    try re-verifing the token at Enfold Theme Options ▸ Theme Update ▸ Enter a valid Envato private token
    Screen Shot 2024 11 09 at 9.25.27 AM
    If this doesn’t help then manually update using the following steps, as I recall v5.3.1.1 had an issue with the token, so you may have to manually update.
    Please test this on your staging site, or make a full server backup of your live site.
    To update your version of Enfold, download the latest installable WP version from your Theme Forest account and upload it to your WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New
    WordPress_Appearance_Themes_Add-Themes_Add-New.jpg
    after you choose the zip file and click install, you will see a This theme is already installed message because you are updating, you can continue
    Installing_theme_from_uploaded_file_This_theme_is_already_installed.jpg
    then you will see the Theme updated successfully message.
    Theme_updated_successfully.jpg

    Best regards,
    Mike

    Assuming you refer to functions.php – then our site would not work! we have code in functions.php to enable the learning management system learndash to operate and to avoid conflicts between woocommerce shop and ENFOLD. We have not made any changess in this for some time. The problem of false SQL detection and helper-assets is very recent

    This is the code in the functions.php – do you see anything that may cause problems?:
    <?php

    /*
    * Add your own functions here. You can also copy some of the theme functions into this file.
    * WordPress will use those functions instead of the original functions then.
    */

    /*
    * Remove fields from woocommerce checkout page
    * /
    /**
    Remove all possible fields by removing the commented out areas
    **/
    function wc_remove_checkout_fields( $fields ) {

    // Billing fields
    //
    /*
    unset( $fields[‘billing’][‘billing_company’] );
    unset( $fields[‘billing’][‘billing_email’] );
    unset( $fields[‘billing’][‘billing_phone’] );
    unset( $fields[‘billing’][‘billing_state’] );
    unset( $fields[‘billing’][‘billing_first_name’] );
    unset( $fields[‘billing’][‘billing_last_name’] );
    unset( $fields[‘billing’][‘billing_address_1’] );
    unset( $fields[‘billing’][‘billing_address_2’] );
    unset( $fields[‘billing’][‘billing_city’] );
    unset( $fields[‘billing’][‘billing_postcode’] );
    */

    // Shipping fields
    /*
    unset( $fields[‘shipping’][‘shipping_company’] );
    unset( $fields[‘shipping’][‘shipping_phone’] );
    unset( $fields[‘shipping’][‘shipping_state’] );
    unset( $fields[‘shipping’][‘shipping_first_name’] );
    unset( $fields[‘shipping’][‘shipping_last_name’] );
    unset( $fields[‘shipping’][‘shipping_address_1’] );
    unset( $fields[‘shipping’][‘shipping_address_2’] );
    unset( $fields[‘shipping’][‘shipping_city’] );
    unset( $fields[‘shipping’][‘shipping_postcode’] );
    */
    // Order fields
    unset( $fields[‘order’][‘order_comments’] );

    return $fields;
    }
    add_filter( ‘woocommerce_checkout_fields’, ‘wc_remove_checkout_fields’ );

    /** Added 22 Feb 2021 by Alex to enable SMTP email usage
    *
    * This function will connect wp_mail to your authenticated
    * SMTP server. This improves reliability of wp_mail, and
    * avoids many potential problems.
    *
    * For instructions on the use of this script, see:
    * https://butlerblog.com/easy-smtp-email-wordpress-wp_mail/
    *
    * Values for constants are set in wp-config.php
    */
    add_action( ‘phpmailer_init’, ‘send_smtp_email’ );
    function send_smtp_email( $phpmailer ) {
    $phpmailer->isSMTP();
    $phpmailer->Host = SMTP_HOST;
    $phpmailer->SMTPAuth = SMTP_AUTH;
    $phpmailer->Port = SMTP_PORT;
    $phpmailer->Username = SMTP_USER;
    $phpmailer->Password = SMTP_PASS;
    $phpmailer->SMTPSecure = SMTP_SECURE;
    $phpmailer->From = SMTP_FROM;
    $phpmailer->FromName = SMTP_NAME;
    }

    /* Replace logo based on ‘promotion code’ – Jelmer*/
    add_action( ‘wp_head’, ‘logo_css’, 0 );
    function logo_css() {
    $user = wp_get_current_user();
    $user_info = get_userdata($user->ID);
    $code = $user->promotion_code;
    if( strcasecmp($code, ‘RightBrains’) == 0){
    echo “<style>span.logo{display:none;}</style></head>”;
    echo “<style>div.inner-container{background:url(https://axveco.com/wp-content/uploads/2020/04/rsz_1rightbrains.png) no-repeat;}</style></head>”;
    }
    if( strcasecmp($code, ‘Polaris’) == 0){
    echo “<style>span.logo{display:none;}</style></head>”;
    echo “<style>div.inner-container{background:url(https://axveco.com/wp-content/uploads/2020/04/rsz_polaris.jpg) no-repeat;}</style></head>”;
    }
    if( strcasecmp($code, ‘Nyenrode’) == 0){
    echo “<style>span.logo{display:none;}</style></head>”;
    echo “<style>div.inner-container{background:url(https://axveco.com/wp-content/uploads/2020/03/Logo-Small.png) no-repeat;}</style></head>”;
    }
    if( strcasecmp($code, ‘StrategyWorks’) == 0){
    echo “<style>span.logo{display:none;}</style></head>”;
    echo “<style>div.inner-container{background:url(https://axveco.com/wp-content/uploads/2020/09/SWSA-LOGO-3-1-e1600615027209.png) no-repeat;}</style></head>”;
    }
    if( strcasecmp($code, ‘EXIN’) == 0){
    echo “<style>span.logo{display:none;}</style></head>”;
    echo “<style>div.inner-container{background:url(https://axveco.com/wp-content/uploads/2021/02/Screenshot-2021-02-25-at-16.18.48.png) no-repeat;}</style></head>”;
    }
    if( strcasecmp($code, ‘Beeckestijn’) == 0){
    echo “<style>span.logo{display:none;}</style></head>”;
    echo “<style>div.inner-container{background:url(https://axveco.com/wp-content/uploads/2020/05/Beeckestijn.png) no-repeat;}</style></head>”;
    }
    if( strcasecmp($code, ‘HQAI2021’) == 0){
    echo “<style>span.logo{display:none;}</style></head>”;
    echo “<style>div.inner-container{background:url(https://axveco.com/wp-content/uploads/2020/05/Screenshot-2020-05-01-at-13.53.02.png) no-repeat;}</style></head>”;
    }
    if( strcasecmp($code, ‘Assurant2020’) == 0){
    echo “<style>span.logo{display:none;}</style></head>”;
    echo “<style>div.inner-container{background:url(https://axveco.com/wp-content/uploads/2020/05/rsz_assurant-logo.png) no-repeat;}</style></head>”;
    }
    if( strcasecmp($code, ‘Computrain’) == 0){
    echo “<style>span.logo{display:none;}</style></head>”;
    echo “<style>div.inner-container{background:url(https://axveco.com/wp-content/uploads/2021/02/CT-Small-Logo.png) no-repeat;}</style></head>”;
    }
    if( strcasecmp($code, ‘NCOI’) == 0){
    echo “<style>span.logo{display:none;}</style></head>”;
    echo “<style>div.inner-container{background:url(https://axveco.com/wp-content/uploads/2021/02/NCOI-Small-Logo.png) no-repeat;}</style></head>”;
    }
    if( strcasecmp($code, ‘NCD’) == 0){
    echo “<style>span.logo{display:none;}</style></head>”;
    echo “<style>div.inner-container{background:url(https://axveco.com/wp-content/uploads/2021/03/NCD-Kleiner.png) no-repeat;}</style></head>”;
    }
    if( strcasecmp($code, ‘Randstad’) == 0){
    echo “<style>span.logo{display:none;}</style></head>”;
    echo “<style>div.inner-container{background:url(https://axveco.com/wp-content/uploads/2021/04/Randstad.png) no-repeat;}</style></head>”;
    }
    if( strcasecmp($code, ‘GK2021’) == 0){
    echo “<style>span.logo{display:none;}</style></head>”;
    echo “<style>div.inner-container{background:url(https://axveco.com/wp-content/uploads/2021/04/GK-Logo-small-1.jpg) no-repeat;}</style></head>”;
    }
    }

    /* ‘Edit profile’ redirects to profile page – Jelmer*/
    add_action( ‘load-profile.php’, ‘Redirect_profile_axveco’);
    function Redirect_profile_axveco (){
    if( ! current_user_can( ‘manage_options’ ) )
    exit( wp_safe_redirect( “https://axveco.com/en/profile/&#8221; ) );
    }

    /* Redirect wp-login to loginwp screen – Jelmer*/
    add_filter( ‘login_url’, ‘my_login_page’, 10, 3 );
    function my_login_page( $login_url, $redirect, $force_reauth ) {
    $login_page = “https://axveco.com/en/loginwp/&#8221; ;
    $login_url = add_query_arg( ‘redirect_to’, $redirect, $login_page );
    return $login_url;
    }

    /* Shows headers promotion code in the admin user table – Jelmer*/
    add_filter(‘manage_users_columns’, ‘add_promotion_code_column’);
    function add_promotion_code_column($columns) {
    $columns[‘promotion_code’] = ‘Promotion Code’;
    return $columns;
    }
    /* Shows content promotion code in the admin user table – Jelmer */
    add_action(‘manage_users_custom_column’, ‘show_user_promotion_code_column_content’, 10, 3);
    function show_user_promotion_code_column_content($value, $column_name, $user_id) {
    $user = get_userdata( $user_id );
    if ( ‘promotion_code’ == $column_name )
    return $user->promotion_code;
    return $value;
    }

    /*Archive category page layout JP https://kriesi.at/support/topic/category-archive-page-change-layout-to-show-excerpt
    add_filter(‘avf_blog_style’,’avia_change_category_blog_layout’, 10, 2);
    function avia_change_category_blog_layout($layout, $context){
    if($context == ‘archive’) $layout = ‘single-big’;
    return $layout;
    }*/

    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;
    }

    add_action(‘wp_footer’, ‘add_custom_tooltip’);
    function add_custom_tooltip(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(‘a’).removeAttr(‘title’);
    jQuery(‘img’).removeAttr(‘title’);
    });
    </script>
    <?php
    }

    /*
    * This function is required to display the location map on the contact us page
    * if removed then the map does not display – API key is from Theme Google services
    */
    add_action(‘wp_footer’, ‘gmaps_workaround’);
    function gmaps_workaround(){
    ?>
    <!–Google Maps JavaScript API –>
    <script src=”https://maps.googleapis.com/maps/api/js?key=AIzaSyCWwtEsgQqGTvuqmzrZMapkbyzqyxCKZBw”
    type=”text/javascript”></script>
    <script type=”text/javascript”>
    jQuery(document).ready(function($){
    setTimeout(function(){
    $(‘#s_pdf_frame’).attr( ‘src’, function ( i, val ) { return val; });
    }, 100);
    });
    </script>
    <?php
    }

    // add_action(‘avia_builder_mode’, “builder_set_debug”);
    function builder_set_debug()
    {
    return “debug”;
    }

    /*
    * this funciton has been updated – see above post in header
    * the original code is: $meta[‘page’][] = ‘events’;
    *
    * Adds PageBuilder to LearnDash Post Typs
    * this is to enable the Advanced Builder in LearnDash – Alex
    * see post at https://kriesi.at/support/topic/learndash-plugin/
    *
    }*/
    add_filter(‘avf_builder_boxes’, ‘add_builder_to_posttype’);
    function add_builder_to_posttype($metabox)
    {
    foreach($metabox as &$meta)
    {
    if($meta[‘id’] == ‘avia_builder’ || $meta[‘id’] == ‘layout’)
    {
    /* original code: $meta[‘page’][] = ‘events’; instead add the name of the custom post type here*/
    $meta[‘page’][] = ‘sfwd-courses’;
    $meta[‘page’][] = ‘sfwd-lessons’;
    $meta[‘page’][] = ‘sfwd-topic’;
    $meta[‘page’][] = ‘sfwd-quiz’;
    }
    }
    return $metabox;
    }

    /*
    * After installing Woocommerce bookings, the events table function was no longer needed
    * I cannot determine whether ‘Events’ post type here is related to events…
    */
    add_action( ‘init’, ‘create_post_type’ );
    function create_post_type() {
    register_post_type( ‘Events’,
    array(
    ‘labels’ => array(
    ‘name’ => __( ‘Events’ ),
    ‘singular_name’ => __( ‘Event’ )
    ),
    ‘public’ => true,
    ‘has_archive’ => false,
    ‘hierarchical’ => true,
    ‘supports’ => array( ‘title’, ‘editor’)
    )
    );

    register_taxonomy(
    ‘event_categories’, //The name of the taxonomy. Name should be in slug form (must not contain capital letters or spaces).
    ‘events’, //post type name
    array(
    ‘hierarchical’ => true,
    ‘label’ => ‘Categories’, //Display name
    ‘query_var’ => true
    )
    );
    }
    /*
    * Goal here is to disable woocommerce from opening the default shop page which is incompatible with
    * our ENFOLD Child theme and appears to be the cause of the Internal Server Error intermittent failure
    * We log that the event has occurred, disbale woocommerce and then redirect to a safe page
    */
    function custom_woocommerce_redirect_shop_page() {
    if (is_shop()) {
    // Send an email to log that this event has occured

    // Get the current user info
    $current_user = wp_get_current_user();
    $username = $current_user->user_login;
    //$is_logged_in = is_user_logged_in() ? ‘Yes’ : ‘No’;

    // Send email notification if logged in (not logged in generates a hit every minute)
    if (is_user_logged_in()) {
    $to = (Email address hidden if logged out) ‘;
    $subject = ‘WooCommerce Shop Page Disable invoked’;
    $message = ‘The WooCommerce shop page open was attempted and has been disabled.’;
    $message .= ‘<br>User: ‘ . $username;
    //$message .= ‘<br>Logged in: ‘ . $is_logged_in;
    $headers = array(‘Content-Type: text/html; charset=UTF-8’);

    wp_mail($to, $subject, $message, $headers);
    }
    // Remove the default WooCommerce content for the shop page
    remove_action(‘woocommerce_archive_description’, ‘woocommerce_taxonomy_archive_description’, 10);
    remove_action(‘woocommerce_archive_description’, ‘woocommerce_product_archive_description’, 10);
    remove_action(‘woocommerce_before_main_content’, ‘woocommerce_output_content_wrapper’, 10);
    remove_action(‘woocommerce_after_main_content’, ‘woocommerce_output_content_wrapper_end’, 10);
    remove_action(‘woocommerce_sidebar’, ‘woocommerce_get_sidebar’, 10);

    // Set up a target page to redirect to
    $alternative_shop_page = “https://axveco.com/en/your-next-step/&#8221; ;

    // Redirect to our own next steps page
    wp_redirect($alternative_shop_page);

    exit;
    }
    }
    add_action(‘template_redirect’, ‘custom_woocommerce_redirect_shop_page’);

    /*
    * End of functions.php
    */
    ?>

    #1470924
    peterolle
    Participant

    I was checking the error log and found this.

    PHP Fatal error:  Uncaught Error: Object of class WP_Error could not be converted to string in /wp-content/themes/enfold/functions-enfold.php:655
    
    Stack trace:
    #0 /wp-content/themes/enfold/search.php(17): avia_title(Array)
    #1 /wp-includes/template-loader.php(106): include('/home/user/p...')
    #2 /wp-blog-header.php(19): require_once('/home/user/p...')
    #3 /index.php(17): require('/home/user/p...')
    #4 {main}
      thrown in /wp-content/themes/enfold/functions-enfold.php on line 655
    

    So it can be fixed in the next update.

    #1470910
    rvga
    Participant

    Hi guys,
    I’ve followed Josue’s replies and install his code in my function.php.
    Unfortunately I got 4 warnings in my page where i put the short code: [sc_post_meta]
    Warning: Undefined variable $the_id in /home/clients/ca7e2af87e8817d7beea16693c3493d9/sites/esprit_colo/wp-content/themes/enfold-child/functions.php on line 46
    Warning: Undefined variable $the_id in /home/clients/ca7e2af87e8817d7beea16693c3493d9/sites/esprit_colo/wp-content/themes/enfold-child/functions.php on line 48
    Warning: Undefined variable $the_id in /home/clients/ca7e2af87e8817d7beea16693c3493d9/sites/esprit_colo/wp-content/themes/enfold-child/functions.php on line 48
    Warning: Undefined variable $the_id in /home/clients/ca7e2af87e8817d7beea16693c3493d9/sites/esprit_colo/wp-content/themes/enfold-child/functions.php on line 56
    Where am I wrong?
    I don’t know how to fix that.
    Any help will be appreciated.
    Thx

    P.S I’m currently with an old version 4.8.8 (I will upgrade it later) maybe it is an explanation…

    • This topic was modified 1 year, 5 months ago by rvga.
    adowdalls
    Participant

    Can you help with this?

    We currently have a problem that we get SQL detection false positives when we enter text while editing a blog. This causes an error and while investigating that problem we observe this error being generated by the ENFOLD Child Theme. We updated to 6.0.6 and still get this error

    [Fri Nov 08 12:53:01.560984 2024] [error] [pid 1716378] mod_proxy_fcgi.c(911): [client 93.123.39.107:0] AH01071: Got error ‘PHP message: PHP Warning: Attempt to read property “post_content” on null in /data/sites/web/axvecocom/www/wp-content/themes/enfold/includes/helper-assets.php on line 374; PHP message: PHP Warning: Attempt to read property “ID” on null in /data/sites/web/axvecocom/www/wp-content/themes/enfold/includes/helper-assets.php on line 382’

    #1470883

    Hi,

    Sorry for the late response. Looks like the image with the size 495×279 is still being selected on smaller screens. Please try to add this code in the functions.php file to remove the size in the srcset attribute.

    function avf_remove_specific_image_size_from_srcset( $sources, $size_array, $image_src, $image_meta, $attachment_id ) {
        foreach ( $sources as $source => $source_data ) {
            if ( strpos( $source, '495x279' ) !== false ) {
                unset( $sources[$source] );
            }
        }
        return $sources;
    }
    add_filter( 'wp_calculate_image_srcset', 'avf_remove_specific_image_size_from_srcset', 10, 5 );
    

    You can also disable the srcset completely by toggling the Enfold > Performance > Responsive Images option or by adding this code in the functions.php file:

    add_filter( 'wp_calculate_image_srcset', '__return_false' );
    

    Best regards,
    Ismael

    #1470809

    Hey ColinWalton,

    Thank you for the inquiry.

    This might be related to the following thread:

    // https://kriesi.at/support/topic/avia-builder-only-slightly-visible-appear-far-right/#post-1467634

    Please try using the provided code in the functions.php file:

    function ava_custom_admin_styles() {
        echo '
        <style>
            #postbox-container-2 { clear: left; }
            .index-php #postbox-container-2 { clear: none; }
        </style>
        ';
    }
    add_action('admin_head', 'ava_custom_admin_styles');
    

    Best regards,
    Ismael

    #1470806

    Hey MysticMimi,

    Thank you for the inquiry.

    1.) There is no option for this by default, but you can try this code in the functions.php fil:

    add_filter('avia_post_slide_query', 'avia_post_slide_query_mod');
    
    function avia_post_slide_query_mod($query)
    {
        $query['orderby'] = 'date';
        $query['order'] = 'DESC';
    
        return $query;
    }
    

    2.) We discussed this here: https://kriesi.at/support/topic/trying-to-build-blog-with-grid-layout/#post-1470721

    Best regards,
    Ismael

    #1470732

    Hi,

    wait . . . is this latest stuff for me? ie should I try that last block of code?



    @gatehealing
    : Sorry for the confusion. For single post, you may have to directly modify the includes > loop-index.php or use this filter in the functions.php file.

    add_filter('avf_post_metadata_array', function($meta, $context) {
        global $post;
    
        if($context == 'loop-index') {
            $updated_date = get_the_modified_date('F j, Y', $post->ID); 
            $meta['updated_date'] = '<span class="blog-updated-date minor-meta">Updated on: ' . $updated_date . '</span>';
        }
    
        return $meta;
    }, 10, 2);

    Best regards,
    Ismael

    #1470635

    Hi,


    @gatehealing
    : We get the same error when we add the code in the functions.php file. Have you tried adding this via SFTP?

    how do i hamper the masonry-gallery to do that too. – i see that switch( $entry->post_type ) on line 1049 but can not bring it to a working snippet inclusion ( by case post or portfolio ).


    @Guenni007
    : What do you mean? The callback for the avf_masonry_loop_prepare filter that you posted above seems to be correct.

    Best regards,
    Ismael

    #1470630

    Hey Yannick77,

    Thank you for the inquiry.

    Did you add these fields manually? How did you do it? Please try disabling the modifications in the functions.php file, except for the function or filter that adds the extra fields.

    Best regards,
    Ismael

    #1470616

    Hi,

    Thank you for the update.

    Did you copy the code from your email? Please try to restore the previous functions.php file, copy the code directly from this forum, then paste it to the functions.php file. Let us know if this works for you.

    Thank you for the info @Gueni007.

    Best regards,
    Ismael

    #1470469

    Hi,
    Your site health setting are limited to 300 for PHP time limit & PHP time limit
    Screen Shot 2024 11 02 at 7.34.50 AM
    Try increasing both of these.

    Best regards,
    Mike

    #1470349

    Hello,

    As mentioned above, I’m using the layout builder for custom posts.
    Link wordpress
    https://nexway.com/wp-admin/post.php?post=447047&action=edit
    Link preview

    I dont’t understand your last question

    Thanks

    #1470299

    In reply to: Left side bar menu

    Hi,

    Thank you for the update.

    We added this code in the functions.php file around line 52:

    add_action('ava_after_main_menu', 'ava_header_sidebar_custom_text');
    function ava_header_sidebar_custom_text() {
        echo "
        <div class='av-sidebar-header-text'>
            <p><strong>Psychologenpraktijk Sterk</strong></p>
            <p>Hogezoom 15</p>
            <p>4328 EE Burgh-Haamstede</p>
            <p><strong>Email:</strong> <a href='mailto: (Email address hidden if logged out) '> (Email address hidden if logged out) </a></p>
            <p><strong>Tel.nr:</strong> <a href='tel:+31654356557'>06-54356557</a></p>
        </div>
        ";
    }

    Then added this css code:

    .av-sidebar-header-text {
        padding: 20px 40px;
    }

    We noticed that you’re not using a child theme. In order to preserve this modification during updates, we recommend activating a child theme and placing the code in its functions.php file instead.

    Best regards,
    Ismael

    #1470296

    Hey whdsolutions,

    Thank you for the inquiry.

    There is no option for this by default, but you can try this code in the functions.php file:

    function av_search_and_category_dropdown() {
        if (is_shop() || is_product_category() || is_product_taxonomy()) {
            echo '<div class="av-mobile-search-category-dropdown">';
            ?>
            <form role="search" method="get" class="woocommerce-product-search" action="<?php echo esc_url(home_url('/')); ?>">
                <div style="display: flex; flex-direction: column;">
                    <select name="product_cat" id="product_cat" style="width: 100%;">
                        <option value=""><?php _e('Select Category', 'woocommerce'); ?></option>
                        <?php
                        $categories = get_terms('product_cat');
                        foreach ($categories as $category) {
                            echo '<option value="' . esc_attr($category->slug) . '">' . esc_html($category->name) . '</option>';
                        }
                        ?>
                    </select>
                    <input type="text" placeholder="<?php _e('Search products...', 'woocommerce'); ?>" name="s" id="s" />
                    <input type="hidden" name="post_type" value="product" />
                    <button type="submit"><?php _e('Search', 'woocommerce'); ?></button>
                </div>
            </form>
            <?php
            echo '</div>';
        }
    }
    add_action('woocommerce_before_shop_loop', 'av_search_and_category_dropdown');
    
    function av_prevent_single_product_redirect($query) {
        if (!is_admin() && $query->is_main_query() && $query->is_search() && is_search()) {
            $query->set('post_type', array('product'));
            $query->set('posts_per_page', 12); 
        }
        remove_action('template_redirect', 'wc_template_redirect'); 
    }
    add_action('pre_get_posts', 'av_prevent_single_product_redirect');
    

    Then add this css code to only display the form on mobile view:

    
    /* Hide search and category dropdown on larger screens */
    .av-mobile-search-category-dropdown {
        display: none;
    }
    
    /* Show on mobile screens only */
    @media (max-width: 768px) {
        .av-mobile-search-category-dropdown {
            display: block;
            padding: 10px;
            background-color: #f9f9f9;
        }
    }

    Best regards,
    Ismael

    #1470151

    I checked the error logs on the domain providers console and found many error logs, the last one is this:
    [Tue Oct 29 18:07:13.855383 2024] [access_compat:error] [pid 998105:tid 998628] [remote 89.160.57.33:65093] AH01797: client denied by server configuration: /home/focusart/bkkovotrade.sk/wp-login.php, referer: https://kriesi.at/

    Tomorrow I will contact the provider to solve this. Didn´t find anything blocking in .htaccess file.

    #1470142

    Hi,
    Your WordPress ▸ Tools ▸ Site Health says that you have custom rules have been added to your .htaccess file, perhaps you have a redirect rule added?
    I also see that your PHP version is outdated: v7.4, try updating to v8
    I note that the issue doesn’t seem to be the links, none of your pages can be loaded directly, they all redirect to your homepage, perhaps your method of loading the hidden IP address is causing this, try making your site visible without the hosts file customization and see if the issue is solved.

    Best regards,
    Mike

    #1469871

    Topic: Saving didn’t work.

    in forum Enfold
    julestephan87
    Participant

    HI Support,

    I am new to Enfold – I tried PHP7.3, 8.2 and 8.3 always with the same result. I can not save anything.

    Best regards
    Dennis

    #1469816

    Hi,

    Thank you for the update.

    We tried to copy the shortcode from the staging site to a new page, but the error generated by the WP ERP plugin still occurs. Also, the editor reverts to the default editor after updating the page. Can you reproduce this issue? (see the private field.)

    load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-hooks&ver=e827396fc34e6c62a26ca19ef49468b3:2 Uncaught TypeError: a(…).tipTip is not a function
    at Object.initTipTip (erp.min.js?ver=1.13.3:1:4772)
    at Object.initialize (erp.min.js?ver=1.13.3:1:4721)
    at HTMLDocument. (erp.min.js?ver=1.13.3:1:14523)
    at e (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-hooks&ver=e827396fc34e6c62a26ca19ef49468b3:2:27028)
    at load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-hooks&ver=e827396fc34e6c62a26ca19ef49468b3:2:27330

    Have you tried recreating this page from scratch?

    Best regards,
    Ismael

    #1469814

    Hi,

    Thank you for the update.

    There is no option for this by default but you can modify the script provided by @Guenni007 above to only apply on Image elements with a specific class name such as “av-no-title-hover”. You can apply the class name in the Image elements’ Advanced > Developer Settings > Custom CSS Class field.

    function temporary_removal_title_tags(){
    ?>
    <script>
      window.onload = function() {
          var elements = document.querySelectorAll('.av-no-title-hover a[title], .av-no-title-hover img[title]');
          for (var i = 0; i < elements.length; i++) {
              var element = elements[i];
              element.onmouseover = function() {
                  this.setAttribute("data-tooltip", this.title);
                  this.title = "";
              };
              element.onmouseout = function() {
                  this.title = this.getAttribute("data-tooltip");
              };
              element.onmousedown = function() {
                  this.title = this.getAttribute("data-tooltip");
              };
          }
      };
    </script>
    <?php
    }
    add_action('wp_footer', 'temporary_removal_title_tags');
    

    Best regards,
    Ismael

Viewing 30 results - 511 through 540 (of 16,890 total)