Viewing 30 results - 331 through 360 (of 16,890 total)
  • Author
    Search Results
  • #1481586
    christian.wien
    Participant

    Hello!

    The following global setting via style.css and/or functions.php is required

    1) All links in the text should be underlined
    2) No underlining on the following elements and pages

      Footer page (page entered as footer)
      Pages with WooCommerce components: Category, product, shopping cart
      Menus
      Buttons
      Headlines (H1-H6)

    How can I implement this?

    Examples:
    https://www.pflanzenkuebel.eu/
    https://www.pflanzenkuebel.eu/shop/agb/
    https://www.pflanzenkuebel.eu/shop/pflanzkuebel/pflanzkuebel-27×35/

    Best regards, Christian

    #1481585

    I Have this same problem on two projects with Enfold theme:

    First one:
    Your current Enfold Theme Version Number is 6.0.6
    Your PHP version: 8.4.4

    Second one:
    Your current Enfold Theme Version Number is 6.0.6
    Your PHP version: 8.0.30

    Problem apeears after update WP from 6.7.2 to 6.8.

    Temporarily I change option i theme options:
    From: Use Block Editor
    To: Use Classic Editor

    This problem is only with pages with signature: Advanced Layout Builder.
    Without this block editor works properly (on WP 8.2)

    How to repait it?

    #1481508
    idijomar
    Participant

    Advanced Layer Builder for Enfold is no longer visible. I am using a child theme. My current Parent Theme (Enfold) version number is 6.0. 6 and PHP version: 7.4. 33. I have Enfold running on both staging area and production (problem in both environments). I have purchased a license, can I simply perform a theme update on both environments (staging and production). And is a theme update a solution for the problem (non-appearance of ALB)?

    Best,
    Marjo

    #1481506
    paddyodor
    Participant

    Hi,

    Received this automated message from WordPress after updating to Enfold version 7.1
    The Site is all there – it just does not go to the home page…. I can login into the site fine. Here is the Email
    ======================================================================================
    Hii!

    WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with your theme, Enfold.

    First, visit your website (http://www.kinvaratidytowns.ie/) and check for any visible issues. Next, visit the page where the error was caught (http://www.kinvaratidytowns.ie/wp-admin/admin-ajax.php) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

    http://www.kinvaratidytowns.ie/wp-login.php?action=enter_recovery_mode&rm_token=cfgJIAh1iBE0T1ojBrdtVT&rm_key=kotIhouhgizMTs5labe446

    To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

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

    Error Details
    =============
    An error of type E_ERROR was caused in line 169 of the file /var/www/web/wp-content/themes/enfold-old/framework/php/auto-updates/class-avia-theme-updater.php. Error message: Uncaught Error: Failed opening required ‘class-avia-envato-base-api.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /var/www/web/wp-content/themes/enfold-old/framework/php/auto-updates/class-avia-theme-updater.php:169
    Stack trace:
    #0 /var/www/web/wp-content/themes/enfold-old/framework/php/auto-updates/class-avia-theme-updater.php(206): Avia_Theme_Updater->get_envato_api()
    #1 /var/www/web/wp-includes/class-wp-hook.php(326): Avia_Theme_Updater->handler_pre_set_site_transient_update_themes(Object(stdClass))
    #2 /var/www/web/wp-includes/plugin.php(205): WP_Hook->apply_filters(Object(stdClass), Array)
    #3 /var/www/web/wp-includes/option.php(2635): apply_filters(‘pre_set_site_tr…’, Object(stdClass), ‘update_themes’)
    #4 /var/www/web/wp-includes/update.php(846): set_site_transient(‘update_themes’, Object(stdClass))
    #5 /var/www/web/wp-includes/class-wp-hook.php(322): wp_update_themes()
    #6 /var/www/web/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #7 /var/www/web/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #8 /var/www/web/wp-admin/includes/class-theme-upgrader.php(510): do_action(‘upgrader_proces…’, Object(Theme_Upgrader), Array)
    #9 /var/www/web/wp-admin/includes/ajax-actions.php(4320): Theme_Upgrader->bulk_upgrade(Array)
    #10 /var/www/web/wp-includes/class-wp-hook.php(324): wp_ajax_update_theme(”)
    #11 /var/www/web/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
    #12 /var/www/web/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #13 /var/www/web/wp-admin/admin-ajax.php(192): do_action(‘wp_ajax_update-…’)
    #14 {main}
    thrown
    ===================================================================

    Thank you in advance,

    #1481439
    Thomas Duclert
    Guest

    Hello from Paris,
    I am newly in charge of ekip.com using Enfold 4.5.7 version.
    I need to upgrade to the latest version of Enfold to solve PHP version purpose (from 7.4 to 8.2)
    Upgrading from 4.5.7 to 7.1 will it change the layout of this website ?
    Thanks
    Thomas

    #1481422
    Jakob Schmitt
    Guest

    These dreprecated notices are spamming my logs. Please fix them. I am usings the latest Enfold Theme version 7.1 with PHP version 8.4.5:

    Deprecated: aviaFrameworkwidgetsavia_instagram_widget::update_cache(): Implicitly marking parameter $cache as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/framework/php/widgets/widget-classes/class-avia-instagram.php on line 204

    Deprecated: aviaBuilderbaseaviaElementStylingBase::__construct(): Implicitly marking parameter $shortcode as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-element-styling-base.php on line 144

    Deprecated: aviaBuilderbaseaviaElementStylingRules::__construct(): Implicitly marking parameter $shortcode as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-element-styling-rules.php on line 35

    Deprecated: aviaBuilderbaseaviaElementStylingResponsive::__construct(): Implicitly marking parameter $shortcode as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-element-styling-responsive.php on line 42

    Deprecated: aviaBuilderbaseaviaElementStylingResponsive::add_responsive_font_sizes(): Implicitly marking parameter $sc_context as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-element-styling-responsive.php on line 167

    Deprecated: aviaBuilderbaseaviaElementStylingResponsive::add_responsive_styles(): Implicitly marking parameter $sc_context as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-element-styling-responsive.php on line 322

    Deprecated: aviaBuilderbaseaviaSubItemQueryBase::__construct(): Implicitly marking parameter $sc_context as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-sub-item-query-base.php on line 81

    Deprecated: aviaShortcodeTemplate::get_popup_element_by_id(): Implicitly marking parameter $source as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php on line 465

    Deprecated: aviaElementStyling::__construct(): Implicitly marking parameter $shortcode as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-styling.php on line 21

    Deprecated: avia_masonry::__construct(): Implicitly marking parameter $sc_context as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php on line 48

    Deprecated: avia_product_slider::__construct(): Implicitly marking parameter $sc_context as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-product-slider.php on line 48

    Deprecated: avia_slideshow::__construct(): Implicitly marking parameter $sc_context as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-slideshow.php on line 62

    Deprecated: avia_content_slider::__construct(): Implicitly marking parameter $sc_context as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/contentslider/contentslider.php on line 847

    Deprecated: avia_partner_logo::__construct(): Implicitly marking parameter $sc_context as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/logoslider/logoslider.php on line 951

    Deprecated: avia_magazine::__construct(): Implicitly marking parameter $sc_context as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/magazine/magazine.php on line 695

    Deprecated: avia_accordion_slider::__construct(): Implicitly marking parameter $sc_context as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_accordion/slideshow_accordion.php on line 1088

    Deprecated: avia_feature_image_slider::__construct(): Implicitly marking parameter $sc_context as nullable is deprecated, the explicit nullable type must be used instead in /var/www/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_feature_image/slideshow_feature_image.php on line 861

    Hey kalla77,

    Thank you for the inquiry.

    Add an image and an audio element, apply the ID “playImage” to the image element and “audioClip” to the embedded audio element, then add this script to trigger playback when the image is clicked.

    add_action( 'wp_footer', 'av_image_audio_script' );
    function av_image_audio_script() {
        ?>
        <script>
          document.addEventListener("DOMContentLoaded", function () {
            const image = document.getElementById("playImage");
            const audio = document.getElementById("audioClip");
    
            if (image && audio) {
              image.addEventListener("click", function () {
                audio.play();
              });
            }
          });
        </script>
        <?php
    }
    

    If you can create a test page, we’ll try to check it further.

    Best regards,
    Ismael

    #1481218

    What version they are updating from? 7.x ?
    My Enfold Installation run on most on php8.3 some are running allready 8.4.4

    #1481104

    Hi,
    I disabled your Enfold Theme Options ▸ Header ▸ Header Layout ▸ Header Title and Breadcrumbs ▸ Display only title and added this to your code to the end of your child theme functions.php file in Appearance ▸ Editor:

    add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 50, 1);
    function avf_header_setting_filter_mod($header_settings) {
        if (is_tax() || is_archive()) {
            $header_settings['header_title_bar'] = "title_bar";
        }
        return $header_settings;
    }

    to only show the title on your category pages.
    and I added this css:

    .category .container_wrap_first {
    	border: none;
    }
    .category .title_container {
    	text-align: center;
    	padding-top: 50px;
    	background-color: #f2f0eb !important;
    }
    .category .title_container h1 a {
    	font-weight: 600 !important;
    	line-height: 1.3em;
    	font-size: 30px;
    }

    so compared to one of you posts:
    Screen Shot 2025 04 09 at 5.23.29 PM
    your category title looks like this:
    Screen Shot 2025 04 09 at 5.25.07 PM
    But note that they are both H1, I don’t see H2 like you asked.

    Best regards,
    Mike

    #1481088

    Ismael,

    Thank you very much for your solution. I have added your shortcode generator in functions.php of the child-theme.

    function av_wpbs_wpml_cb() {
        $lang = apply_filters('wpml_current_language', null);
        $id = 1;
        $language = 'en';
    
        switch ($lang) {
            case 'nl':
                $id = 1;
                $language = 'nl';
                break;
            case 'en':
                $id = 1;
                $language = 'en';
                break;
            case 'fr':
                $id = 1;
                $language = 'de';
                break;
            default:
                $id = 1;
                $language = 'nl';
                break;
        }
    
        return do_shortcode('[wpbs id="' . esc_attr($id) . '" language="' . esc_attr($lang) . '" show_prices="yes" title="no" legend="yes" legend_position="side" display="1" year="0" month="0" start="1" dropdown="yes" jump="no" history="1" tooltip="1" highlighttoday="no" weeknumbers="no" show_first_available_date="no" form_id="1" form_position="bottom" auto_pending="yes" selection_type="multiple" selection_style="split" minimum_days="7" maximum_days="0" booking_start_day="6" booking_end_day="6" show_date_selection="no"]');
    	
    }
    add_shortcode('av_wpbs_wpml', 'av_wpbs_wpml_cb');

    Then added the shortcode to a text block:
    [av_wpbs_wpml]

    Test URL:
    https://villasari.de/nl/test-shortcode/

    I get this error:
    Fatal error: Uncaught TypeError: ksort(): Argument #1 ($array) must be of type array, null given in /var/www/vhosts/villasari.de/httpdocs/wp-content/plugins/multilingual-tools-2.2.6/inc/class-mltools-shortcode-attribute-filter.php:86 Stack trace: #0 /var/www/vhosts/villasari.de/httpdocs/wp-content/plugins/multilingual-tools-2.2.6/inc/class-mltools-shortcode-attribute-filter.php(86): ksort() #1 /var/www/vhosts/villasari.de/httpdocs/wp-content/plugins/multilingual-tools-2.2.6/inc/class-mltools-shortcode-attribute-filter.php(66): MLTools_Shortcode_Attribute_Filter->add_tag() #2 /var/www/vhosts/villasari.de/httpdocs/wp-includes/class-wp-hook.php(326): MLTools_Shortcode_Attribute_Filter->do_shortcode_tag_filter() #3 /var/www/vhosts/villasari.de/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters() #4 /var/www/vhosts/villasari.de/httpdocs/wp-includes/shortcodes.php(447): apply_filters() #5 [internal function]: do_shortcode_tag() #6 /var/www/vhosts/villasari.de/httpdocs/wp-includes/shortcodes.php(273): preg_replace_callback() #7 /var/www/vhosts/villasari.de/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(580): do_shortcode() #8 /var/www/vhosts/villasari.de/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/textblock/textblock.php(541): ShortcodeHelper::avia_apply_autop() #9 /var/www/vhosts/villasari.de/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1329): avia_sc_text->shortcode_handler() #10 /var/www/vhosts/villasari.de/httpdocs/wp-includes/shortcodes.php(434): aviaShortcodeTemplate->shortcode_handler_prepare() #11 [internal function]: do_shortcode_tag() #12 /var/www/vhosts/villasari.de/httpdocs/wp-includes/shortcodes.php(273): preg_replace_callback() #13 /var/www/vhosts/villasari.de/httpdocs/wp-includes/class-wp-hook.php(324): do_shortcode() #14 /var/www/vhosts/villasari.de/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters() #15 /var/www/vhosts/villasari.de/httpdocs/wp-content/themes/enfold/template-builder.php(102): apply_filters() #16 /var/www/vhosts/villasari.de/httpdocs/wp-includes/template-loader.php(106): include('...') #17 /var/www/vhosts/villasari.de/httpdocs/wp-blog-header.php(19): require_once('...') #18 /var/www/vhosts/villasari.de/httpdocs/index.php(17): require('...') #19 {main} thrown in /var/www/vhosts/villasari.de/httpdocs/wp-content/plugins/multilingual-tools-2.2.6/inc/class-mltools-shortcode-attribute-filter.php on line 86

    Any clue?

    #1481081

    FYI the log is filling up for magazine and post slider. Here’s the post slider example:

    KILLED QUERY (16570 characters long generated in /nas/content/live/wels/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/postslider/postslider.php:1542): SELECT SQL_CALC_FOUND_ROWS wp_posts.ID#012#011#011#011#011#011 FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id)#012#011#011#011#011#011 WHERE 1=1 AND ( #012 wp_term_relationships.term_taxonomy_id IN (94)#012) AND ((wp_posts.post_type = ‘alb_custom_layout’ AND (wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘tribe-ea-success’ OR wp_posts.post_status = ‘tribe-ea-failed’ OR wp_posts.post_status = ‘tribe-ea-schedule’ OR wp_posts.post_status = ‘tribe-ea-pending’ OR wp_posts.post_status = ‘tribe-ea-draft’ #012OR wp_posts.post_status = ‘private’ #012OR wp_posts.post_status = ‘sent’)) OR (wp_posts.post_type = ‘ame_ac_changeset’ AND (wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘tribe-ea-success’ OR wp_posts.post_status = ‘tribe-ea-failed’ OR wp_posts.post_status = ‘tribe-ea-schedule’ OR wp_posts.post_status = ‘tribe-ea-pending’ OR wp_posts.post_status = ‘tribe-ea-draft’ #012OR wp_posts.post_status = ‘private’ #012OR wp_posts.post_status = ‘sent’)) OR (wp_posts.post_type = ‘attachment’ AND (wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘tribe-ea-success’ OR wp_posts.post_status = ‘tribe-ea-failed’ OR wp_posts.post_status = ‘tribe-ea-schedule’ OR wp_posts.post_status = ‘tribe-ea-pending’ OR wp_posts.post_status = ‘tribe-ea-draft’ #012OR wp_posts.post_status = ‘private’ #012OR wp_posts.post_status = ‘sent’)) OR (wp_posts.post_type = ‘avia_framework_post’ AND (wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘tribe-ea-success’ OR wp_posts.post_status = ‘tribe-ea-failed’ OR wp_posts.post_status = ‘tribe-ea-schedule’ OR wp_p

    Hi all,

    We’ve tried disabling PHP-FPM as directed, but that hasn’t resolved the issue either.

    Thanks for your help. We’ve had to go with a workaround unfortunately (removing the contact form altogether), in the absence of any solution.

    It must be related to server config in some way, and the way the Enfold contact form and Google Captcha work – as we don’t have the issue if we remove either of these variables.

    Moderators: Kindly remove the brand identifying screenshot in the previous post and the mention of the company name in your post on March 17, 2025 at 10:52 am.

    Thank you!

    Hey simog72,

    Thank you for the inquiry.

    This option is not available by default, but you can modify the sort_buttons function in enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php.

    Please note that this type of modification is beyond the scope of our support. For additional assistance, you may consider hiring a freelance developer or contact Codeable.

    https://kriesi.at/contact/customization

    Best regards,
    Ismael

    SCHMUTZ Falco
    Guest

    Hi,

    We’ve encountered a PHP Fatal Error in the Enfold theme, causing our WordPress installation to crash intermittently. The issue originates from an unsupported operation (string + int) in the postslider.php file:

    File Path:
    /themes/enfold/config-templatebuilder/avia-shortcodes/postslider/postslider.php

    Line 1447:

    $params[‘offset’] = $params[‘offset’] + ( ( $this->current_page – 1 ) * $params[‘items’] );

    Suggested fix:
    Explicitly cast parameters to integers to avoid type errors:

    $params[‘offset’] = (int)$params[‘offset’] + ((int)($this->current_page – 1) * (int)$params[‘items’]);

    Please consider including this adjustment in your next update to ensure greater stability across varying page configurations.

    Thanks

    #1480868

    Hey drilledits47,
    If I understand your issue, you are trying to upload the theme to your site, but you get the error “The link you followed has expired.”
    If you are sure that the PHP ZipArchive Extension is enabled on your site, and you are sure that you have downloaded the installable WP version from your Theme Forest account, then please link to the zip file via DropBox or similar in the Private Content area that you are uploading to your site so we can check.
    Another typical cause for this error is that your “Upload max filesize” is smaller than the theme zip file size, you can check in WordPress ▸ Tools ▸ Site Health ▸ Server the current version 7.1 is 21.3 mb
    Perhaps a admin login would help us examine.

    Best regards,
    Mike

    #1480860

    In reply to: preloader issues

    on header.php the original line is:

    $preloader = avia_get_option( 'preloader' ) == 'preloader' ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';
    

    did you removed ( or commented out ) that line – and replaced it ?

    try :

    if (is_page(array(1147,945))) { 
    	$preloader = 'av-preloader-active av-preloader-enabled';
    } else {
    	$preloader = 'av-preloader-disabled';
    }

    PS – it is just a different way to write the array – you can use yours aswell.

    But: maybe it is better to have that option in enfold activated globaly – to have the oportunity to style it – and then remove that setting on all other pages then your array is set to if not logic.

    if (!is_page(array(1147,945) )){ 
    	$preloader = 'av-preloader-disabled';
    } else {
    	$preloader = 'av-preloader-active av-preloader-enabled';
    }
    Guenni007
    Participant

    on an older post there is no working solution for it.
    https://kriesi.at/support/topic/change-color-body-style-on-one-page/
    If I look at the differences in the DOM, I notice that it essentially depends on the html classes: html_stretched, html_boxed and html_av-framed-box. These classes are set in the header.php according to the settings of the Enfold options. ( html_stretched, html_boxed and html_av-framed-box ) on body they are set without html_ )
    There are some filters – but nothing could bring the solution. (see old topic).

    A child theme header.php, on the other hand, is quickly created because a file of that name in the child theme root directory is automatically used instead of the parent theme file.

    If you only want to use the framed layout for a specific page, it is easier to use the reverse method – set the framed layout setting globally and change it to boxed or stretched for all other pages.

    Long story short. Upload to your child-theme route directory a header.php copy and edit it.
    search for that line ( around line 26) :

    $style = $avia_config['box_class'];
    

    if you set the stretched layout – and want to have for a specifc page a boxed layout –
    or you have set the boxed layout and want only one page to be in stretched layout – replace it by:

    if (is_page(array(27))) { 
    	$style = 'boxed'; // or 'stretched'
    } else {
    	$style = $avia_config['box_class'];
    }

    now – as mentioned above it is not easy to get for only some pages a framed layout. So here we go the other way :
    Set on Enfold options page a framed layout as global setting – and change the layout to all others that are not that page:

    if (!is_page(array(27))) { 
    	$style = 'stretched';
    } else {
    	$style = $avia_config['box_class'];
    }
    

    now every page now is stretched except the page 27

    see here example page : https://clean.webers-testseite.de/impressum/ this page is framed – all others are stretched.

    #1480851

    Topic: preloader issues

    in forum Enfold
    Munford
    Participant

    hi
    I just moved my new site from a subdomain to my root. I was seeing an error:
    Warning: Undefined variable $preloader in /customers/a/3/6/c9w13mh8q/webroots/fa765f73/wp-
    Warning: Undefined variable $preloader in /customers/a/3/6/c9w13mh8q/webroots/fa765f73/wp-content/themes/enfold-child/header.php on line 266

    I had a header in my child theme that is using this code you gave me to limit the preloader to 2 pages only around line 40:

    if (is_page([1147, 945])) {
        $preloader = avia_get_option('preloader') === "preloader" 
            ? 'av-preloader-active av-preloader-enabled' 
            : 'av-preloader-disabled';

    }

    this was working ok on the subdomain but now it looks like all the pages that DON’T have the preloader are throwing that error which is also blocking the footer from loading on those pages. I took the header.php out of my child theme (I noticed it said not to add it to a child theme?) and have disabled the preloader, but it would be great to just have it on the front page if possible if I decide to use it.

    I also just added wp-rocket to my site since the videos were really loading slowly. It made it faster but sometimes the pages don’t load at all unless I stop and go back and forward again. Not sure if you can reproduce that. I am also seeing an error that on mobile the footer doesn’t load on the front page in any browser. There’s a video that loads at the top of the page but even when it’s fully loaded the whole footer section is gone. It’s fine on all the other pages. Not sure if that is due to a setting in wp rocket (I enabled mobile caching) or something else. I didn’t see that issue before I moved the site and added wp-rocket.

    thanks for your help
    Nancy

    • This topic was modified 1 year ago by Munford.
    • This topic was modified 1 year ago by Munford.
    • This topic was modified 1 year ago by Munford.
    #1480845

    Hi,
    Your site is reporting that the address is not secure “https” and that the server is redirecting the request for this address in a way that will never complete.
    Are you sure that you changed both URLs? Perhaps one did not update correctly. Did you create the https certificate?
    You could ask your webhost to update the certificate and ensure that it is for both the “www” domain and the non “www” domain, ie: a certificate for:
    www.test.com
    test.com
    is two different lines in the certificate
    Nonetheless, since you didn’t have any content on this site, I recommend the easiest path is deleting the WordPress install, ask the webhost to update the PHP version and these:
    Screen Shot 2025 04 05 at 7.26.33 AM
    then install WordPress again, ensuring that all info is for “https”, then add the theme and your demo install should work fine.

    Best regards,
    Mike

    #1480817

    Hey Getersa,
    It looks like you have a Mixed Content: was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘/wp-admin/admin-ajax.php’. This request has been blocked; the content must be served over HTTPS.” error.
    Your WordPress ▸ Settings ▸ General ▸ Site Address and WordPress ▸ Settings ▸ General ▸ WordPress Address are set to “http”, try changing to “https”
    Screen Shot 2025 04 05 at 7.19.38 AM
    Your site is running on an outdated version of PHP (7.2.34-35+0~20220929.76+debian11~1.gbp2866f7), which will not be supported by WordPress. Ask your webhost to update to PHP v8
    Screen Shot 2025 04 05 at 7.22.41 AM
    Also ask your webhost to update all of these settings:
    Screen Shot 2025 04 05 at 7.26.33 AM
    to these:
    Screen Shot 2025 04 05 at 7.28.27 AM

    Best regards,
    Mike

    #1480816

    In reply to: Add notification bar

    Hi,
    Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function custom_message_banner_script() { ?>
      <script>
    (function($){
      $('#top #header_meta > .container').each(function() {
      	var messageTitle = 'FREE delivery within 60 miles';
      	var messageBanner = $('<p class="message-banner">'+ messageTitle +'</p>').css({'text-align':'center','margin-top':'0','background-color':'red','margin':'0','z-index':'1','position':'relative','color':'#fff'});
      	$(messageBanner).insertBefore('#header_meta');
    });
    })(jQuery);
    </script>
      <?php
    }
    add_action( 'wp_footer', 'custom_message_banner_script', 99 );

    adjust the colors to suit. This is the result for transparent desktop headers:
    Screen Shot 2025 04 05 at 7.03.19 AM
    and scrolled desktop headers:
    Screen Shot 2025 04 05 at 7.05.19 AM
    and mobile headers:
    Screen Shot 2025 04 05 at 7.06.48 AM

    Best regards,
    Mike

    #1480695

    Hi,

    We added the changes in the functions.php file to prevent the scroll. Regarding the sender form, please contact the plugin developers.

    function inline_popup_enabler(){ ?>
        <script>
        (function($){
            $(window).on('load', function() {
    			$('.inline_popup').addClass('no-scroll');
                $('.inline_popup').magnificPopup({
                    type: 'inline',
                    midClick: true,
                    callbacks: {
    					beforeOpen: function () {
    					  $('body').css("overflow-y", "hidden");
    					},
    					close: function() {
    					  $('body').css("overflow-y", "auto");
    					},
                        open: function() {
                            (function (s, e, n, d, er) {
                                s['Sender'] = er;
                                s[er] = s[er] || function () {
                                    (s[er].q = s[er].q || []).push(arguments);
                                }, s[er].l = 1 * new Date();
                                var a = e.createElement(n),
                                    m = e.getElementsByTagName(n)[0];
                                a.async = 1;
                                a.src = d;
                                m.parentNode.insertBefore(a, m);
                            })(window, document, 'script', 'https://cdn.sender.net/accounts_resources/universal.js', 'sender');
                            
    						if ($('.sender-form-field iframe').length > 0) {
    							console.log("sender form initialized");
    						} else {
    							sender('4f4c8522254761');
    						}   
                        }
                    }
                });
            });
        })(jQuery);
        </script>
    <?php }
    add_action('wp_footer', 'inline_popup_enabler');
    

    Best regards,
    Ismael

    #1480524
    Munford
    Participant

    any ideas about this:
    I am using this in my header.php to only have my preloader on 2 pages:\

    
    	if(is_page(1147)) $preloader	= avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';
    if(is_page ( 945)) $preloader	= avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';

    I tried: is_page( array( but that returned a php error. I’m not sure that is the best way to target 2 pages?

    This is working fine, but there seems to be a flash (especially in chrome) when the other pages load – maybe because the preloader background color is set to black? Is there a way to have them load a bit softer? Sometimes I see it loading on other pages as well, depending on the browser.

    I have taken the preloader off page 945 so you can see how that page loads – it just started showing a black background also on the logo area: https://imgur.com/a/aKqXz33. It also seems to shift a bit, which is why I added the preloaded to that page. If those issues were fixed, I would remove it and only have it on the front page (1147).

    thanks
    Nancy

    #1480507

    Hi,

    Thank you for the update.

    The image size settings were not being applied because of the post_thumbnail_size filter in the functions.php file. We adjusted the condition a bit.

    if( !is_singular('post') && is_page(1307) ) {
    

    (removed screenshot)

    Best regards,
    Ismael

    Hey Elena,

    Thank you for the inquiry.

    You can add this in the includes > loop-index.php file around line 471:

    echo '<span class="post-meta-infos">';
    

    Create a copy in your child theme, then do the modifications. You can also use the avf_post_metadata_array filter.

    Example:

    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

    #1480504

    Hi,

    I don’t understand why the size of the model image (enfold gym) is 1500 x 720 and the actual height of the page banner is 420…

    Please note that the section size depends on the content, not the background image. We recommend uploading images at least the same size as the demo image, with a 16:9 aspect ratio. However, if you’re trying to focus on a specific part of the image, this will require a lot more adjustments. You may need to use css to adjust the background position and, as recommended, disable the parallax and fixed effects. We also noticed that the part you’re trying to focus on is not vertically or horizontally aligned in the actual image, so you may need to adjust this as well.

    And regarding the image quality, the theme already sets this to highest quality possible (100 or 100%) but if you need to adjust it, you can add this filter 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 = 100; return $quality;}
    

    Best regards,
    Ismael

    #1480491

    Hi,
    When I check your site, this category widget is created by a plugin, to move it’s position please ask the plugin developer for a PHP function to do so.
    Screen Shot 2025 03 30 at 2.37.06 PM

    Best regards,
    Mike

    #1480425
    Munford
    Participant

    HI
    I am using this in my header.php to only have my preloader on 2 pages:\

    	if(is_page(1147)) $preloader	= avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';
    if(is_page ( 945)) $preloader	= avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';

    I tried: is_page( array( but that returned a php error.
    This is working fine, although it shifts a bit before the page loads, and there seems to be a flash (especially in chrome) when the other pages load – maybe because the preloader background color is set to black? Is there a way to have them load a bit softer?
    I have taken the preloader off page 945 so you can see how that page loads – it just started showing a black background also on the logo area: https://imgur.com/a/aKqXz33. It also seems to shift a bit, which is why I added the preloaded to that page. If those issues were fixed, I would remove it and only have it on the front page (1147).

    Also I just saw that the video on page 945 is not loading on Safari. Can you check that out?

    thanks
    Nancy

    • This topic was modified 1 year ago by Munford.
    #1480419
    Feuerwehr Stuppach
    Participant

    Hallo!
    Habe heute das Enfold Theme gekauft und gleich installiert.
    Leider bekomme ich es nicht richtig zum laufen.

    Wenn ich eine neue Seite anlegen möchte, kommt in der console immer folgende Meldung:

    Uncaught TypeError: $(...).pointer is not a function
        wp_help_pointer_open https://www.xxxx.at/wp-admin/post-new.php?post_type=page:486
        <anonymous> https://www.xxxx.at/wp-admin/post-new.php?post_type=page:473
        each jQuery
        <anonymous> https://www.xxxx.at/wp-admin/post-new.php?post_type=page:472
        jQuery 2
    post-new.php:486:35

    Die Seite im Browser bleibt dann immer weiß.
    Ich habe auch schon probiert eine ganz neue WordPress Installation zu nehmen und dann alles frisch zu installieren. Leider auch ohne Erfolg.

    Apache2 PHP 8.2.28 mit allen notwendigen Plugins für die Classis-Wordpress-Installation.

    Bitte um Hilfe!

    Liebe Grüße, Alex

    #1480389

    In reply to: Icon List Blank

    Hey Lee Germeroth,
    I see that you are using v6.0.9 with a child theme.
    I don’t see any errors in your console log, does your child theme have a header.php or footer.php? If so please remove.
    Otherwise please update and include a admin login in the Private Content area so we can examine.
    If you can’t update with your token please follow these steps:
    To update you will need to 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

Viewing 30 results - 331 through 360 (of 16,890 total)