I have SXA
site pages and I need to clear the extra Sitecore
html
tags (script,link).
Specification:
Sitecore SXA 10.2
Can anyone provide any help ?
Sitecore Stack Exchange is a question and answer site for developers and end users of the Sitecore CMS and multichannel marketing software. It only takes a minute to sign up.
Sign up to join this communityBefore you do anything, first find out why you have duplicated </body>
, </html>
tags. Looks suspicious.
Manipulate HTML once tags are rendered by modifying/creating your own version of
\Views\SxaLayout\SxaLayout.cshtml
btw.
some SXA <script>
elements are rendered before </body>
and that's expected.