• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2764

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Shop
  • Checkout
  • Cart

Remove Body Classes Per Post or Page – Genesis

$150.00

— OR —

  • Description

Description

This code enables you to add 1 single or multiple comma delimited body classes on your edit post page screen which will be removed from your body classes on specific pages and posts only.

You can use this solution to remove body classes for :

  • any theme
  • any template which adds multiple body classes you want removed
  • any plugin which adds body classes
  • any page builder like Elementor which adds multiple body classes

The code adds a text field on all your edit post and edit page screens which you can use to remove multiple body classes like this :

Tested using the Genesis Sample child theme by StudioPress however will work in any WordPress theme with a small teak of the PHP code.

Installation

There’s 2 steps :

Step 1 : Upload the file named form.php to your child theme folder.

Step 2 : Copy & paste the PHP code to the end of your child themes functions file.

Primary Sidebar

Cart

Advertise · WPEngine · Genesis · Log in

  • Account
  • Checkout
  • Cart
 

Loading Comments...
 

You must be logged in to post a comment.