Skip to content

Takes the classes following the open tag and appends them to the class property on the body element.

Notifications You must be signed in to change notification settings

jasoncomes/Body-Class-Liquid-Tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

body_class

Takes the classes following the open tag and appends them to the class property on the body element.

Usage

{% body_class class anotherclass %}

Parameters

  • Name values space delimited

Return

  • collection-{collection}
  • template-{layout}
  • page-{slug}
  • additional body classes added in tag.

Example

Input

{% body_class class anotherclass %}

Output

<body class="colection-pages template-default page-about class anotherclass">

About

Takes the classes following the open tag and appends them to the class property on the body element.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages