• Resolved gokberktalu

    (@gokberktalu)


    I don’t know what happened but I noticed that my Asgaros Forum is semi-broken. I’ve checked everything and later found out that when I deactivate Autoptimize, everything works fine but when I activate it, it’s loads up broken and normally everything was supposed to be 1024px full-width contained (including the header).

    What could be the problem? I also asked the support for Asgaros, but they couldn’t find the problem. I’m using Astra free + Elementor Pro + Cloudflare

    The page I need help with: [log in to see the link]

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter gokberktalu

    (@gokberktalu)

    Just tried it. Nothing changed.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, looks like the problem is the fact that the normal autoptimized CSS is loaded very late due to the title tag missing in the head. Try using this code snippet to tell AO to inject the CSS elsewhere (i.e. not relative to the title tag);

    
    add_filter('autoptimize_filter_css_replacetag','asgaros_css_replacetag',10,1);
    function asgaros_css_replacetag($replacetag) {
    	return array("<head>","after");
    	}

    the better fix would be to ensure asgoros adds a title tag ??

    frank

    Thread Starter gokberktalu

    (@gokberktalu)

    Where do I put the code snippet inside AO?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    No, not inside AO. The easiest & safest way to code snippets is using the code snippets plugin.

    Thread Starter gokberktalu

    (@gokberktalu)

    It seems to have solved the problem when I use incognito mode.

    I’ll let the developer of Asgaros know about the issue you mentioned. Hopefully they’ll patch this up ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    great! adding a title tag should not prove too difficult for any developer ??

    feel free to leave a review of the plugin and support here!

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Autoptimize breaking Asgaros Forum?’ is closed to new replies.