Miva Merchant Development by Scot's Scripts

JQUERY: Add CSS Class to Body Tag

Miva Random Code Trivia

Want to start an online store? We work with you from start to finish, from commerce platform to design to SEO.
Experience counts, and we have a lot.

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)
SEO Audit & Inquiries • News & Updates • SEO for Miva Merchant

JQUERY: Add CSS Class to Body Tag

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.

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


<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

css jquery