Skip to content
HorusWP

HorusWP

  • Themes
  • Plugins
  • Sites
  • Hosting
  • Blog
  • About us
Login
HorusWP
HorusWP

WP247 Body Classes free WordPress plugin

Description

Add unique classes to the body tag for easy styling based on post attributes (post type, slug, and ID) and various WordPress “is” functions: wp_is_mobile() is_home() is_front_page() is_blog() is_admin() is_admin_bar_showing() is_404() is_super_admin() is_user_logged_in() is_search() is_archive() is_author() is_category() is_tag() is_tax() is_date() is_year() is_month() is_day() is_time() is_single() is_sticky() $post->post_type $post->name $post->ID wp_get_post_categories() (Page/Post Categories) wp_get_post_tags() (Page/Post Tags) $user->nicename $user->id $archive->slug (e.g. Category slug, Tag slug, etc.) $archive->id (e.g. Category id, Tag id, etc.) Add classes based on user scrolling through the page. You can check things like: is-scroll-top (at the top of the page – synonym for is-not-scroll) is-not-scroll-top (not at the top of the page – synonym for is-scroll) is-scroll (not at the top of the page – synonym for is-not-scroll-top) is-not-scroll (at the top of the page – synonym for is-scroll-top) is-scroll-top-px (has not reached the scroll start value for scroll measurement by pixels) is-scroll-top-vh (has not reached the scroll start value for scroll measurement by viewport height) is-scroll-top-dh (has not reached the scroll start value for scroll measurement by document height) is-scroll-10-px (scrolled down 10 pixels) is-scroll-8-vh (scrolled down 8% of the viewport height) is-scroll-5-dh (scrolled down 5% of the document height) is-scroll-mid-px (has reached the scroll start value but not the scroll limit for scroll measurement by pixels) is-scroll-mid-vh (has reached the scroll start value but not the scroll limit for scroll measurement by viewport height) is-scroll-mid-vh (has reached the scroll start value but not the scroll limit for scroll measurement by document height) is-scroll-max-px (has reached the scroll limit for scroll measurement by pixels) is-scroll-max-vh (has reached the scroll limit for scroll measurement by percent of viewport height) is-scroll-max-dh (has reached the scroll limit for scroll measurement by percent of document height) Add classes based on the results from mobiledetect.net’s Mobile_Detect script. This script parses the value
mobile post type post-categories post-category scroll

Features


Cost:

Free

Provider:

wp247

Popularity:

Low

WPMarket

Previous
Next

Sites using

WP247 Body Classes free WordPress plugin

About us

Business intelligence for WordPress developers

Company

Privacy Policy

Terms & Conditions

Impressum

Contact Info

Made with ❤ in Germany

+49 0000 00000

hola@horuswp.com

© 2025 HorusWP

Scroll to top
Change Location
Find awesome listings near you!
  • Themes
  • Plugins
  • Sites
  • Hosting
  • Blog
  • About Us
Login Account