Plugin Support
qtwrk
(@qtwrk)
Hi,
unfortunately it can’t , it’s hard-coded position
usually it looks for <meta charset= as anchor to add code , maybe you can try move this on your theme file to manipulate the position.
Best regards,
Is there any filter I can use easier bro.
For example this
add_filter('o_optm_ucss_inline','uncss_inline_replacetag',10,1);
function uncss_inline_replacetag($replacetag) {
return array('</head>','before');
}
add_filter(‘litespeed_optm_html_head’, function($con) {return “your content”.$con;});
Thank you, Did you mean this.
add_filter('litespeed_optm_html_head', function($con) {return "<meta property='og:type' content='product' />".$con;});
But is it possible to move <style id=”litespeed-ucss”>… </style> before the </head> tag bro. Because my SEO header plugin needs to be rendered before litespeed-ucss.
Example: <style id=”litespeed-ucss”>… </style></head>
Use add_filter('litespeed_optm_html_after_head','__return_true'); w/ v4.4.2-a4+.
add_filter('litespeed_optm_html_after_head','__return_true');
You mean will be updated in the new version?
Thank you @hailite.
Its already on dev branch. You can try Beta Test.
@hailite
Oh what a great day, after waking up I tested your beta.
Surprised when using this new filter the style has moved down. Very good looking good when the seo tags are on top.
Thanks!