Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1494707

    For the past couple weeks I have had issues with images showing up on my Enfold theme websites. All are hosted with GoDaddy and as soon as I clear the cache and they are fine. This happening randomly several times a week. I have contacted the host and they have not solved.

    Is this a new issue with Enfold and if so how do I fix as I have dozens of Enfold websites.

    Thank you!

    #1494713

    Hey annameis,
    I assume that your issue is that some images are not showing until you clear your cache, is this your browser cache, WordPress cache, cache plugin, theme cache, or server cache?
    Are the images background images in your color sections? These are shown via CSS in the post_css function, depending on your cache time limits, this is typically not an issue with the theme, but you could try this function in your child theme functions.php file to disable:

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

    Then clear all of the above caches and check again. 

    Best regards,
    Mike

    #1494714

    Hi Mike –

    Yes correct – images in color sections are not showing across about dozen sites. I am using the Flush Cache provided by the host within WordPress.

    Yes I will try that.

    This has just suddenly become an issue – are you aware of a fix coming?

    Thanks for the reply!

    #1494738

    Hi,

    Thanks for the update. Problems with external caching solutions is not a theme problem, so we cannot fix it in Enfold.

    Best regards,
    Rikard

    #1494766

    I had this too annameis, quite a while ago I was told to add this php snippet and it fixed it.

    /**
    * 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 );

    #1494769
    This reply has been marked as private.
    #1494778

    Hi,

    Glad to know that the issue has been resolved! Please don’t hesitate to open another thread if you have more questions.

    Have a nice day.

    Best regards,
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.