Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1445564

    I can’t figure out what’s going on. When I view source on a page, there are a few resources which have a hard return after the domain and as a result they’re not loading. For example:

    var avia_framework_globals = avia_framework_globals || {};
        avia_framework_globals.frameworkUrl = 'https://domain.com
    /wp-content/themes/enfold/framework/';
        avia_framework_globals.installedAt = 'https://domain.com
    /wp-content/themes/enfold/';
        avia_framework_globals.ajaxurl = 'https://domain.com/wp-admin/admin-ajax.php';

    There’s also this one with the same issue:

    @font-face {font-family: 'entypo-fontello'; font-weight: normal; font-style: normal; font-display: auto;
    src: url('https://domain.com
    /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/fonts/entypo-fontello.woff2') format('woff2'),
    url('https://domain.com
    /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/fonts/entypo-fontello.woff') format('woff'),
    url('https://domain.com
    /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/fonts/entypo-fontello.ttf') format('truetype'),
    url('https://domain.com
    /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/fonts/entypo-fontello.svg#entypo-fontello') format('svg'),
    url('https://domain.com
    /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/fonts/entypo-fontello.eot'),
    url('https://domain.com
    /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/fonts/entypo-fontello.eot?#iefix') format('embedded-opentype');

    One final bit of weirdness that may or may not be related is that I can’t get the theme to detect that there is a new version of Enfold available. The site is using Enfold 5.0, and when I log into WordPress and go to Enfold > Theme Options > Theme Update it says: No Updates available. You are running the latest version! (5.0) Successful check on 2024/05/01 12:24.

    Any idea what’s going on here?

    #1445633

    Hey 10amCreativeMedia,

    Did you register you theme license? https://kriesi.at/documentation/enfold/theme-registration/. If the updates should not come through after that, then please using this plugin: https://envato.com/market-plugin/

    Best regards,
    Rikard

    #1445663

    Thanks Rikard, the theme is now updated to 5.7.1 and that has fixed most of the weirdness. I’m still missing a few resources though. Here’s the URL structure of the images that aren’t showing up:
    https://domain.com/wp-content/uploads/dynamic_avia/avia_posts_css/https:/domain.com/wp-content/uploads/2015/10/image.jpg

    As far as I can tell, the missing images are all background images that are in CSS files stored in the /dynamic_avia/avia_posts_css/ folder.

    Any idea what’s going on with those?

    #1445894

    Hi,

    Thanks for the update. What happens if you activate the option to delete old CSS and JS files under Enfold->Performance? If that should not help, then you might need to disable the post CSS file generation with this in functions.php:

    /**
     * Filter to skip css file generation.
     * You can add logic to skip for certain pages/posts only.
     * 
     * @since 4.8.6.1
     * @param boolean $create
     * @return boolean					true | false or anything else to skip generation of css file
     */
    function custom_avf_post_css_create_file( $create )
    {
    	return false;
    }
    
    add_filter( 'avf_post_css_create_file', 'custom_avf_post_css_create_file', 10, 1 );

    Best regards,
    Rikard

    #1446075

    Deleting old CSS and JS files worked. Thanks for your help Rikard! You can mark this thread as resolved.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Weird issue where some resources have a hard return in the middle of them’ is closed to new replies.