Miva Merchant Development by Scot's Scripts

JQUERY: Add CSS Class to Body Tag

Miva Knowledge Base
JQUERY: Add CSS Class to Body Tag

WARNING:

This information is offered "AS IS" for internal reference only. Use at your own risk.
Does AI actually understand your Miva Merchant store? Our smart JSON-LD schema generator makes sure it does. Contact us to get started. (more info)

JQUERY: Add CSS Class to Body Tag

Scot Ranney • December 22, 2023 (updated: January 16, 2024)


THIS CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED;
THE AUTHOR DISCLAIMS ALL LIABILITY FOR ANY DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR STORE DISRUPTIONS ARISING FROM ITS USE.


<mvt:comment>
#
# single-column may be Levels, but the idea is the same for all
#
</mvt:comment>

<script>
	$(document.body).addClass('single-column');
</script>

Also used for the tinted background for modals and other things.


https://www.scotsscripts.com/mvblog/jquery-add-css-class-to-body-tag.html

mvkb_css mvkb_jquery