Okay
  Public Ticket #2894554
Force Salient Theme to NOT adding attributes to <body… tag
Closed

Comments

  •  3
    soulsurf started the conversation

    Hello, we have to build microsites / landingpages for a marketing campaign for our client. The deployment is in a way where we only can paste our websites code from within < head > … < /head > and < body > … < /body > to their system.

    As soon as I use any effect on a page, Salient is adding attributes to < body > like < body data-rsssl=1 class="home page-template-default page page-id-9980 material wpb-js-composer js-comp-ver-6.6.0 vc_responsive" data-footer-reveal="false" data-footer-reveal-shadow="none …

    But since I can not deploy the code including < body … > but only the stuff within < head > … < /head > and within < body > … < /body > the effects do not work anymore.

    Any idea how I can avoid to have attributes added to <body or to have them added to some div instead somewhere WITHIN the header or body?

    Thank you Florian

  •  1,077
    ThemeNectar replied

    Hey Florian,

    Unfortunately, Salient is built in such a way where attributes on the body are required for the CSS/JS to work correctly. Depending on what settings/elements you're using would require various tweaks to the underlying assets to accommodate placing the body attributes on a top-level wrapping div.