Docs: Body Tag Classes

The section- classes

There are 7 top level sections (8 if you include "section-admin")

.section-shop
.section-login
.section-account
.section-order
.section-purchase
.section-about
.section-contact

Within the shop section there are also subsection body classes:

.subsection-category
.subsection-subcategory
.subsection-shop
.subsection-grouping

Within the shop section there are also category classes and the unique page ID:

#page-chocolate-fish
.category-chocolate-fish

is the user logged in or not

.logged-in
.logged-out

Does the user have any items in cart

.cart-empty
.cart-full

Is the user an administrator

.admin

Is the user logged in as a wholesaler

.wholesale

What country ID is the user in

.country-121

Every site has a unique vendor_id

This may be useful for multi-store mode where multiple sites share the same template.

.vendor-802

If the user is logged in: their unique vendo user ID

.vendo-user-2

Session vars such as mode, language, browser etc.

.mode-multistore
.lang-en
.browser-firefox
.browserversion-3
.platform-macintosh
.pageviews-15

 

Revisions history (12)    ( hide | show )     Templates > Body Tag Classes

×