WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: wp247-body-classes (Used by 9 domains)

WP247 Body Classes

👤 wescleveland 📦 v2.2.0

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
  • $user->roles
  • $user->allcaps
  • $archive->slug (e.g. Category slug, Tag slug, etc.)
  • $archive->id (e.g. Category id, Tag id, etc.)

Add post specific classes to the body tag in the post editor. Use any class name you want to uniquely style an individual post or a set of posts.

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 passed by the browser in the HTTP_USER_AGENT string. Consequently, mobile detection is more of an art than a science and, unfortunately, is not perfect. You can check things like:

  • is-mobile
  • is-tablet
  • is-phone
  • Mobile Operating System
  • Mobile Browser
  • Type of tablet
  • Type of phone

This plugin adds classes to the html body tag indicating:

  • whether or not the requesting device is a mobile device (.is-mobile or .is-not-mobile)

  • the type of post being viewed (.is-? where ? is the post type (page, post, whetever special post types are defined) ).
    E.g. .is-page or .is-post

  • the slug of the post being viewed (.is-?-! where ? is the post type and ! is the post slug).
    E.g. a post with slug “hello-world’ would have class .is-post-hello-world

  • the ID of the post being viewed (.is-?-# where ? is the post type and # is the post ID).
    E.g. a post with ID “1” would have class .is-page-1

  • whether or not the requested page shows archived results (.is-archive or .is-not-archive)

    If the page being displayed is an archive

    • the type of archive being viewed (.is-? where ? represents the type of archive (author, category, date, tag) )
      E.g. .is-author

    • the slug of the archive being viewed (.is-?-! where ? is the archive type and ! is the archive slug)
      E.g. a category with slug “uncategorized’ would have class .is-category-uncategorized

    • the ID of the archive being viewed (.is-?-# where ? is the archive type and # is the archive ID)
      E.g. a category with ID “1” would have class .is-category-1

  • How far down the page the viewer has scrolled in pixels or as a percentage of viewport height or as a percentage of document height

  • Post specific class(es) that are set in the post editor

Use these classes in your styling to provide a better browsing experience for your viewers.

Custom Body Classes

Create your own Custom Body Classes by adding your PHP code in the “Custom Body Classes” section.

Here’s an example. Not sure why we would want to do it, but suppose we want to do some custom styling when the page is being displayed to someone that can manage WordPress options. We might enter something like:

if (current_user_can('manage_options')) $classes[] = 'user-can-manage-options';

Then we can use the body.user-can-manage-options qualifier in our CSS styling.

Example

Suppose you have a large h1 top margin that you want to eliminate on mobile devices to avoid a lot of white space. After activating the wp247-body-classes plugin and indicating that the .is-mobile class is desired, all you need to do is add this line to your CSS:

body.is-mobile h1 {
margin-top: 0;
}

Suppose you have a sticky header but want to shrink it by dynamically reducing the top and bottom padding from 25px to 5px as the viewer scrolls down the page based on 20 pixel scroll increments up to 80 pixels of scrolling:

Set WP247 Body Classes Scroll setting to “Scroll by Pixel” with a 10 pixel increment and an 80 pixel limit and then add the following to your CSS:

body.is-scroll-20-px header {
padding-top: 20px;
padding-bottom: 20px;
}
body.is-scroll-40-px header {
padding-top: 15px;
padding-bottom: 15px;
}
body.is-scroll-60-px header {
padding-top: 10px;
padding-bottom: 10px;
}
body.is-scroll-max-px header {
padding-top: 5px;
padding-bottom: 5px;
}

DomainExposuresHeadersLast Checked
k*o*.at F 2026-06-20 03:40:05
k*e*w*.de 👤 F 2026-06-13 16:43:48
s*e*a*e*d*c*o*a*s.org F 2026-06-01 06:04:41
p*e*i*i*n*e*i*i*e*r*.com D 2026-05-30 12:13:10
p*e*i*i*n*e*i*i*e*g*o*p.com D 2026-05-30 12:13:10
a*i*a*a*l*s.com (WP 6.8.3) F 2026-05-20 09:31:43
b*h*l*.c*.th (WP 6.6.5) F 2026-05-19 00:17:34
o*m*d*o*.com (WP 6.9.4) F 2026-05-16 11:50:14
c*o*n*f*i*h*.com F 2026-05-14 11:55:36

Top 50 Plugins

Plugin Count
elementor 1,877,439
contact-form-7 1,849,026
elementor-pro 1,091,407
woocommerce 846,449
revslider 641,157
jetpack 480,356
js_composer 449,635
wp-rocket 349,342
gravityforms 320,939
essential-addons-for-elementor-lite 311,027
complianz-gdpr 270,750
cookie-law-info 243,202
instagram-feed 236,716
google-site-kit 230,394
sitepress-multilingual-cms 230,046
google-analytics-for-wordpress 221,265
elementskit-lite 220,182
header-footer-elementor 217,961
bluehost-wordpress-plugin 192,516
gutenberg 166,883
gutenberg-core 166,058
cookie-notice 161,346
litespeed-cache 142,170
the-events-calendar 138,765
wpforms-lite 133,656
gtranslate 133,288
astra-sites 122,709
popup-maker 120,489
tablepress 116,668
woocommerce-payments 115,841
coblocks 103,551
honeypot 102,134
astra-addon 98,706
duracelltomi-google-tag-manager 97,689
wp-smushit 97,158
all-in-one-seo-pack 96,668
layerslider 95,064
bb-plugin 93,172
megamenu 90,993
premium-addons-for-elementor 90,228
akismet 88,345
mailchimp-for-wp 86,753
cleantalk-spam-protect 86,107
woocommerce-gateway-stripe 85,748
ml-slider 85,046
borlabs-cookie 84,045
wp-pagenavi 83,312
fusion-builder 82,779
ewww-image-optimizer 81,960
smart-slider-3 81,282

Top 50 Themes

Theme Count
hello-elementor 641,790
Divi 531,393
astra 438,905
flatsome 149,454
generatepress 135,693
Avada 129,095
pub 114,395
twentytwentyfour 108,383
sydney 104,274
oceanwp 86,838
kadence 82,535
enfold 74,889
salient 68,979
twentyseventeen 58,890
h4 58,600
bb-theme 56,650
betheme 54,213
blocksy 53,376
cocoon-master 52,846
dt-the7 47,991
twentytwentyfive 46,323
neve 41,262
Avada-Child-Theme 38,994
woodmart 34,559
gox 34,477
bridge 34,022
twentytwentyone 33,372
lightning 32,514
twentytwenty 31,415
voxel 29,228
swell 29,174
Impreza 27,746
bricks 27,051
sinatra 25,829
twentytwentythree 24,972
Newspaper 24,936
kubio 22,351
twentytwentytwo 20,553
uncode 19,978
twentysixteen 19,337
epik-redesign 19,296
storefront 18,600
pro 18,247
Total 15,349
extendable 15,101
yith-wonder 14,141
hello-theme-child-master 13,988
yootheme 13,562
themify-ultra 13,538
hestia 13,507