WordPress default and custom classes are gone in
-
I’ve added some custom classes in body tag through body_class(); function in my theme. They are available in non amp version but I can’t find them in the amp version.
Also, WordPress default classes are gone inside of amp.Screenshot of the issue:
https://drive.google.com/file/d/1NEKXfOWKL_ygrdazts9qXSBVwGwhlbk-/view?usp=sharingHere is the custom code I’m using in my theme:
<?php $page_body_class = get_post_meta(get_the_ID(), 'page_body_class', true); ?> <body <?php body_class($page_body_class); ?>>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WordPress default and custom classes are gone in’ is closed to new replies.