Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Remove class from body tag in wordpress

// Remove class from body tag
function alpha_body_class($classes){
   unset($classes[array_search('class-one', $classes)]);
   unset($classes[array_search('class-two', $classes)]);
   unset($classes[array_search('class-three', $classes)]);
   return $classes;
}
add_filter('body_class', 'alpha_body_class');
Comment

PREVIOUS NEXT
Code Example
Php :: how simple get ip address json 
Php :: laravel convert querybuilder to string 
Php :: php strpos 
Php :: livewire call another component 
Php :: wordpress rename post format 
Php :: laravel bd query 
Php :: how to get client ip address in php 
Php :: get admin url wordpress 
Php :: wordpress use jquery in plugin 
Php :: laravel select where with total sum query to get all data with sum 
Php :: php object to string 
Php :: configuration laravel dompdf 
Php :: load session in codeigniter 
Php :: mysql escape apostrophe 
Php :: Laravel Migration - Update Enum Options 
Php :: php check if user exists in database 
Php :: how-to-generate-an-xlsx-using-php 
Php :: get data from csv file in php and print in table 
Php :: laravel multiple copy record 
Php :: laravel passport Route [login] not defined 
Php :: saving an image from pc to php 
Php :: keep line breaks in textarea 
Php :: laravel restrict route 
Php :: acos() php 
Php :: php recortar string 
Php :: php date() 
Php :: laravel array to string conversion 
Php :: php configuration in apache server 2.4 
Php :: php unit expect exception 
Php :: laravel sanctum instalation 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =