Ginger remove body classes and breaks layout
-
Hello,
for them who have the issue in the subject i found the function that breaks the wordpress layout removing the body classes.
The function is
function ginger_parse_dom($output)
line 140 of gingerfront.core.php inside “front” folderThe solution i found is to add these lines at the end of function
+ $body_element = $doc->getElementsByTagName(‘body’);
+ $body_element[0]->setAttribute(“class”,join( ‘ ‘, get_body_class( $class ) ));
$output = $doc->saveHTML();I hope this will be improved by developers and add to the new version of this plugin.
Bye
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Ginger remove body classes and breaks layout’ is closed to new replies.