Recently I have been working on creating my first wordpress theme. However, when I was trying to add classes to body tag using PHP, the Chrome inspector shows that no classes have been added at all.
- I have tried to move the body_class() PHP line out of the tag, and the appropriate class="(some classes)" loaded up successfully, but when the tag include the PHP scripts, no classes were added.
- Manually adding classes inside the body tag in header.php does not work as well.
Is there any solution? Because my header.php should be following the right logic.
A link to my files:
https://drive.google.com/open?id=1h9YvmYEQYiHWI-N0lkelAUbVbEQwTelz
header.php, then check that's changes effected in the site or not. If the theme is correct maybe the issue for caching. your code is perfect... :) - Ali