Viewing 1 replies (of 1 total)
  • Plugin Author Frank Goossens

    (@futtta)

    you can use the API to change the “injection point” ronald; e.g.

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

    the array to return should contain a tag name (“</head>” in this case) and the replacement manner, which can be “before”, “after” or “replace”.

    hope this helps,
    frank

Viewing 1 replies (of 1 total)
  • The topic ‘Autoptimize moves inline css after Metadata (Title, Description, Viewport, etc..’ is closed to new replies.